model { components { Net(NativeLibrarySpec) { sources { rc { source { srcDir '..' include 'DLLVersion.rc' } } cpp { source { srcDir 'src' include '**/*.cpp' } exportedHeaders { srcDir 'include' } lib project: ':Foundation', library: 'Foundation' } } } } binaries { all { if (targetPlatform.operatingSystem.windows) { linker.args "ws2_32.lib" linker.args "iphlpapi.lib" } } withType(SharedLibraryBinarySpec) { if (toolChain in VisualCpp) { cppCompiler.define "Net_EXPORTS" } } } } task poco { dependsOn "assemble" }