mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 10:32:57 +01:00
49 lines
780 B
Groovy
49 lines
780 B
Groovy
|
model {
|
||
|
components {
|
||
|
JSON(NativeLibrarySpec) {
|
||
|
sources {
|
||
|
rc {
|
||
|
source {
|
||
|
srcDir '..'
|
||
|
include 'DLLVersion.rc'
|
||
|
}
|
||
|
}
|
||
|
c {
|
||
|
source {
|
||
|
srcDir 'src'
|
||
|
include '**/*.c'
|
||
|
}
|
||
|
exportedHeaders {
|
||
|
srcDir 'include'
|
||
|
}
|
||
|
lib project: ':Foundation', library: 'Foundation'
|
||
|
}
|
||
|
cpp {
|
||
|
source {
|
||
|
srcDir 'src'
|
||
|
include '**/*.cpp'
|
||
|
}
|
||
|
exportedHeaders {
|
||
|
srcDir 'include'
|
||
|
}
|
||
|
lib project: ':Foundation', library: 'Foundation'
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
binaries {
|
||
|
all {
|
||
|
if (toolChain in VisualCpp) {
|
||
|
cCompiler.args "/TP"
|
||
|
}
|
||
|
}
|
||
|
withType(SharedLibraryBinarySpec) {
|
||
|
if (toolChain in VisualCpp) {
|
||
|
cppCompiler.define "JSON_EXPORTS"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
task poco { dependsOn "assemble" }
|
||
|
|