mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 02:22:57 +01:00
39 lines
690 B
Groovy
39 lines
690 B
Groovy
model {
|
|
components {
|
|
PDF(NativeLibrarySpec) {
|
|
sources {
|
|
c {
|
|
source {
|
|
srcDir 'src'
|
|
include '**/*.c'
|
|
}
|
|
exportedHeaders {
|
|
srcDirs 'include', 'include/Poco/PDF'
|
|
}
|
|
}
|
|
cpp {
|
|
source {
|
|
srcDir 'src'
|
|
include '**/*.cpp'
|
|
}
|
|
exportedHeaders {
|
|
srcDirs 'include', 'include/Poco/PDF'
|
|
}
|
|
lib project: ':Util', library: 'Util'
|
|
lib project: ':XML', library: 'XML'
|
|
lib project: ':Foundation', library: 'Foundation'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
binaries {
|
|
withType(SharedLibraryBinarySpec) {
|
|
if (toolChain in VisualCpp) {
|
|
cppCompiler.define "PDF_EXPORTS"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
task poco { dependsOn "assemble" }
|
|
|