mirror of
https://github.com/pocoproject/poco.git
synced 2025-02-25 07:41:08 +01:00
47 lines
831 B
Groovy
47 lines
831 B
Groovy
model {
|
|
components {
|
|
DataODBC(NativeLibrarySpec) {
|
|
sources {
|
|
rc {
|
|
source {
|
|
srcDir '../..'
|
|
include 'DLLVersion.rc'
|
|
}
|
|
}
|
|
cpp {
|
|
source {
|
|
srcDir 'src'
|
|
include '**/*.cpp'
|
|
exclude 'Unicode_WIN32.cpp'
|
|
exclude 'Unicode_UNIXODBC.cpp'
|
|
}
|
|
exportedHeaders {
|
|
srcDir 'include'
|
|
}
|
|
lib project: ':Data', library: 'Data'
|
|
lib project: ':Foundation', library: 'Foundation'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
binaries {
|
|
all {
|
|
if (toolChain in VisualCpp) {
|
|
cppCompiler.define "THREADSAFE=1"
|
|
}
|
|
}
|
|
withType(SharedLibraryBinarySpec) {
|
|
if (toolChain in VisualCpp) {
|
|
cppCompiler.define "ODBC_EXPORTS"
|
|
linker.args 'odbc32.lib'
|
|
linker.args 'odbccp32.lib'
|
|
}
|
|
}
|
|
withType(StaticLibraryBinarySpec) {
|
|
}
|
|
}
|
|
}
|
|
task poco { dependsOn "assemble" }
|
|
|
|
|