mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-12 10:13:51 +01:00
Update for Data/PostgreSQL
This commit is contained in:
parent
e9db9bddb1
commit
36fbbb7a6d
@ -19,7 +19,7 @@ model {
|
||||
} else
|
||||
if (targetPlatform.operatingSystem.linux) {
|
||||
libName = 'libintl.lib'
|
||||
headers.srcDir(new File("$postgres64LinuxInc/include"))
|
||||
headers.srcDir(new File("$postgres64LinuxInc"))
|
||||
staticLibraryFile = new File("$postgres64LinuxLib/$libName")
|
||||
}
|
||||
} else
|
||||
@ -38,7 +38,7 @@ model {
|
||||
} else
|
||||
if (targetPlatform.operatingSystem.linux) {
|
||||
libName = 'libintl.lib'
|
||||
headers.srcDir(new File("$postgres64LinuxInc/include"))
|
||||
headers.srcDir(new File("$postgres64LinuxInc"))
|
||||
staticLibraryFile = new File("$postgres64LinuxLib/$libName")
|
||||
}
|
||||
}
|
||||
@ -66,7 +66,7 @@ model {
|
||||
if (targetPlatform.operatingSystem.linux) {
|
||||
dllName = 'libintl-8.so'
|
||||
linkName = 'libintl.a'
|
||||
headers.srcDir(new File("$postgres64LinuxInc/include"))
|
||||
headers.srcDir(new File("$postgres64LinuxInc"))
|
||||
sharedLibraryFile = new File("$postgres64LinuxLib/bin/$dllName")
|
||||
sharedLibraryLinkFile = new File("$postgres64LinuxLib/$linkName")
|
||||
}
|
||||
@ -91,7 +91,7 @@ model {
|
||||
if (targetPlatform.operatingSystem.linux) {
|
||||
dllName = 'libintl-8.so'
|
||||
linkName = 'libintl.a'
|
||||
headers.srcDir(new File("$postgres64LinuxInc/include"))
|
||||
headers.srcDir(new File("$postgres64LinuxInc"))
|
||||
sharedLibraryFile = new File("$postgres64LinuxLib/bin/$dllName")
|
||||
sharedLibraryLinkFile = new File("$postgres64LinuxLib/$linkName")
|
||||
}
|
||||
@ -116,7 +116,7 @@ model {
|
||||
} else
|
||||
if (targetPlatform.operatingSystem.linux) {
|
||||
libName = 'iconv.a'
|
||||
headers.srcDir(new File("$postgres64LinuxInc/include"))
|
||||
headers.srcDir(new File("$postgres64LinuxInc"))
|
||||
staticLibraryFile = new File("$postgres64LinuxLib/$libName")
|
||||
}
|
||||
} else
|
||||
@ -135,7 +135,7 @@ model {
|
||||
} else
|
||||
if (targetPlatform.operatingSystem.linux) {
|
||||
libName = 'iconv.a'
|
||||
headers.srcDir(new File("$postgres64LinuxInc/include"))
|
||||
headers.srcDir(new File("$postgres64LinuxInc"))
|
||||
staticLibraryFile = new File("$postgres64LinuxLib/$libName")
|
||||
}
|
||||
}
|
||||
@ -163,7 +163,7 @@ model {
|
||||
if (targetPlatform.operatingSystem.linux) {
|
||||
dllName = 'libiconv-2.so'
|
||||
linkName = 'iconv.a'
|
||||
headers.srcDir(new File("$postgres64LinuxInc/include"))
|
||||
headers.srcDir(new File("$postgres64LinuxInc"))
|
||||
sharedLibraryFile = new File("$postgres64LinuxLib/bin/$dllName")
|
||||
sharedLibraryLinkFile = new File("$postgres64LinuxLib/$linkName")
|
||||
}
|
||||
@ -188,7 +188,7 @@ model {
|
||||
if (targetPlatform.operatingSystem.linux) {
|
||||
dllName = 'libiconv-2.so'
|
||||
linkName = 'iconv.a'
|
||||
headers.srcDir(new File("$postgres64LinuxInc/include"))
|
||||
headers.srcDir(new File("$postgres64LinuxInc"))
|
||||
sharedLibraryFile = new File("$postgres64LinuxLib/bin/$dllName")
|
||||
sharedLibraryLinkFile = new File("$postgres64LinuxLib/$linkName")
|
||||
}
|
||||
@ -213,7 +213,7 @@ model {
|
||||
} else
|
||||
if (targetPlatform.operatingSystem.linux) {
|
||||
libName = 'libpq.a'
|
||||
headers.srcDir(new File("$postgres64LinuxInc/include") )
|
||||
headers.srcDir(new File("$postgres64LinuxInc") )
|
||||
staticLibraryFile = new File("$postgres32LinuxLib/$libName")
|
||||
}
|
||||
} else
|
||||
@ -232,7 +232,7 @@ model {
|
||||
} else
|
||||
if (targetPlatform.operatingSystem.linux) {
|
||||
libName = 'libpq.a'
|
||||
headers.srcDir(new File("$postgres64LinuxInc/include"))
|
||||
headers.srcDir(new File("$postgres64LinuxInc"))
|
||||
staticLibraryFile = new File("$postgres32LinuxLib/$libName")
|
||||
}
|
||||
}
|
||||
@ -260,7 +260,7 @@ model {
|
||||
if (targetPlatform.operatingSystem.linux) {
|
||||
dllName = 'libpq.so'
|
||||
linkName = 'libpq.a'
|
||||
headers.srcDir( new File("$postgres64LinuxInc/include") )
|
||||
headers.srcDir( new File("$postgres64LinuxInc") )
|
||||
sharedLibraryFile = new File("$postgres64LinuxLib/$dllName")
|
||||
sharedLibraryLinkFile = new File("$postgres64LinuxLib/$linkName")
|
||||
}
|
||||
@ -285,7 +285,7 @@ model {
|
||||
if (targetPlatform.operatingSystem.linux) {
|
||||
dllName = 'libpq.so'
|
||||
linkName = 'libpq.a'
|
||||
headers.srcDir(new File("$postgres64LinuxInc/include"))
|
||||
headers.srcDir(new File("$postgres64LinuxInc"))
|
||||
sharedLibraryFile = new File("$postgres64LinuxLib/$dllName")
|
||||
sharedLibraryLinkFile = new File("$postgres64LinuxLib/$linkName")
|
||||
}
|
||||
|
@ -27,13 +27,15 @@ model {
|
||||
exportedHeaders {
|
||||
srcDir 'src'
|
||||
}
|
||||
lib project: ':CppUnit', library: 'CppUnit'
|
||||
lib project: ':Data:PostgreSQL', library: 'DataPostgreSQL'
|
||||
lib project: ':Data:PostgreSQL', library: 'postgres'
|
||||
lib project: ':Data:PostgreSQL', library: 'DataPostgreSQL'
|
||||
lib project: ':Data:PostgreSQL', library: 'intl'
|
||||
lib project: ':Data:PostgreSQL', library: 'iconv'
|
||||
lib project: ':Data', library: 'Data'
|
||||
lib project: ':Foundation', library: 'Foundation'
|
||||
lib project: ':CppUnit', library: 'CppUnit'
|
||||
lib library: 'ssl'
|
||||
lib library: 'crypto'
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -59,6 +61,9 @@ model {
|
||||
}
|
||||
}
|
||||
if (toolChain in Gcc) {
|
||||
linker.args ( "-l", "z")
|
||||
linker.args ( "-l", "pthread")
|
||||
linker.args ( "-l", "dl")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -43,7 +43,7 @@ include ':Data:testsuite'
|
||||
include ':Data:ODBC:testsuite'
|
||||
include ':Data:SQLite:testsuite'
|
||||
//include ':Data:MySQL:testsuite'
|
||||
include ':Data:PostgreSQL:testsuite'
|
||||
//include ':Data:PostgreSQL:testsuite' // needs OpenSSL setup
|
||||
include ':MongoDB:testsuite'
|
||||
include ':Redis:testsuite'
|
||||
include ':CppParser:testsuite'
|
||||
|
Loading…
Reference in New Issue
Block a user