poco/Redis/build.gradle
zosrothko 365d1c8626 Add Redis module
Signed-off-by: zosrothko <zosrothko@orange.fr>
2017-11-11 13:30:59 +01:00

38 lines
576 B
Groovy

model {
components {
Redis(NativeLibrarySpec) {
sources {
rc {
source {
srcDir '..'
include 'DLLVersion.rc'
}
}
cpp {
source {
srcDir 'src'
include '**/*.cpp'
}
exportedHeaders {
srcDir 'include'
}
lib project: ':Net', library: 'Net'
lib project: ':Foundation', library: 'Foundation'
}
}
}
}
binaries {
all {
}
withType(SharedLibraryBinarySpec) {
if (toolChain in VisualCpp) {
cppCompiler.define "Redis_EXPORTS"
}
}
}
}
task poco { dependsOn "assemble" }