mirror of
https://github.com/pocoproject/poco.git
synced 2025-07-05 01:50:01 +02:00

* Backport of feature-gradle Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr> * Replace '/' by '\' to comply with DOS path Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr> * Cleanup Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr> * Put environment setting at the Exec task. Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr> * Use standard release Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr> * Updated mkdoc configuration Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr> * Remove lines guarded by POCO_ENABLE_CPP11 Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr> * Merge remote-tracking branch 'origin/develop' into develop * Fix NuGet & Wix input dependencies file set. Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr> * Remaining fixes for Data2SQL switch. * Use $global:LastExitCode instead of a local LastExitCode
47 lines
828 B
Groovy
47 lines
828 B
Groovy
model {
|
|
components {
|
|
SQLODBC(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: ':SQL', library: 'SQL'
|
|
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" }
|
|
|
|
|