apply plugin: 'windows-resources' // tag::resource-only-library[] model { components { helloRes(NativeLibrarySpec) { binaries.all { rcCompiler.args "/v" linker.args "/noentry", "/machine:x86" } // tag::windows-resource-set[] sources { rc { source { srcDirs "src/hello/rc" } exportedHeaders { srcDirs "src/hello/headers" } } } // end::windows-resource-set[] } } } // end::resource-only-library[]