poco/PDF/build.gradle
zosrothko d993fb09b7 Poco 1.9.0: Additional fixes for PDF and Encodings (#2169)
* Update gradle for the Encodings module

Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr>

* Add new PDF c++ files to VS projects

* Update gradle build
2018-02-18 10:29:48 -06:00

41 lines
746 B
Groovy

project(":PDF") {
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" }