mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 02:22:57 +01:00
d993fb09b7
* 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
47 lines
799 B
Groovy
47 lines
799 B
Groovy
model {
|
|
components {
|
|
Encodings(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 {
|
|
withType(SharedLibraryBinarySpec) {
|
|
if (toolChain in VisualCpp) {
|
|
cCompiler.define "Encodings_EXPORTS"
|
|
cppCompiler.define "Encodings_EXPORTS"
|
|
}
|
|
}
|
|
withType(StaticLibraryBinarySpec) {
|
|
}
|
|
}
|
|
}
|
|
task poco { dependsOn "assemble" }
|
|
|