mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-14 11:06:57 +01:00
36 lines
514 B
Groovy
36 lines
514 B
Groovy
|
model {
|
||
|
components {
|
||
|
CppUnit(NativeLibrarySpec) {
|
||
|
sources {
|
||
|
rc {
|
||
|
source {
|
||
|
srcDir '..'
|
||
|
include 'DLLVersion.rc'
|
||
|
}
|
||
|
}
|
||
|
cpp {
|
||
|
source {
|
||
|
srcDir 'src'
|
||
|
include '**/*.cpp'
|
||
|
}
|
||
|
exportedHeaders {
|
||
|
srcDir 'include'
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
binaries {
|
||
|
withType(SharedLibraryBinarySpec) {
|
||
|
if (toolChain in VisualCpp) {
|
||
|
cppCompiler.define "CppUnit_EXPORTS"
|
||
|
}
|
||
|
}
|
||
|
withType(StaticLibraryBinarySpec) {
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
task poco { dependsOn "assemble" }
|
||
|
|
||
|
|