poco/PDF/build.gradle

39 lines
690 B
Groovy
Raw Normal View History

2018-09-25 08:50:25 +02:00
model {
components {
PDF(NativeLibrarySpec) {
sources {
c {
source {
srcDir 'src'
include '**/*.c'
2017-10-31 09:07:53 +01:00
}
2018-09-25 08:50:25 +02:00
exportedHeaders {
srcDirs 'include', 'include/Poco/PDF'
2017-10-31 09:07:53 +01:00
}
}
2018-09-25 08:50:25 +02:00
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'
}
2017-10-31 09:07:53 +01:00
}
}
2018-09-25 08:50:25 +02:00
}
binaries {
withType(SharedLibraryBinarySpec) {
if (toolChain in VisualCpp) {
cppCompiler.define "PDF_EXPORTS"
2017-10-31 09:07:53 +01:00
}
}
}
}
task poco { dependsOn "assemble" }