mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-12 10:13:51 +01:00
remove gradle files
This commit is contained in:
parent
e84ab92ee0
commit
fea390fe6a
@ -1,32 +0,0 @@
|
||||
model {
|
||||
components {
|
||||
CppParser(NativeLibrarySpec) {
|
||||
sources {
|
||||
rc {
|
||||
source {
|
||||
srcDir '..'
|
||||
include 'DLLVersion.rc'
|
||||
}
|
||||
}
|
||||
cpp {
|
||||
source {
|
||||
srcDir 'src'
|
||||
include '**/*.cpp'
|
||||
}
|
||||
exportedHeaders {
|
||||
srcDir 'include'
|
||||
}
|
||||
lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
withType(SharedLibraryBinarySpec) {
|
||||
if (toolChain in VisualCpp) {
|
||||
cppCompiler.define "CppParser_EXPORTS"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
task poco { dependsOn "assemble" }
|
@ -1,52 +0,0 @@
|
||||
import org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteSpec
|
||||
|
||||
model {
|
||||
components {
|
||||
TestSuite(NativeLibrarySpec) {
|
||||
sources {
|
||||
cpp {
|
||||
source {
|
||||
srcDir 'src'
|
||||
include '**/*.cpp'
|
||||
exclude '*Driver.cpp'
|
||||
}
|
||||
exportedHeaders {
|
||||
srcDir 'src'
|
||||
}
|
||||
lib project: ':CppUnit', library: 'CppUnit'
|
||||
lib project: ':CppParser', library: 'CppParser'
|
||||
lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
testSuites {
|
||||
CppParserTestSuite(org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteSpec) {
|
||||
testing $.components.TestSuite
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
all {
|
||||
if (toolChain in VisualCpp) {
|
||||
if (buildType == buildTypes.debug) {
|
||||
cCompiler.args "/MDd"
|
||||
cppCompiler.args "/MDd"
|
||||
} else
|
||||
if (buildType == buildTypes.release) {
|
||||
cCompiler.args "/MD"
|
||||
cppCompiler.args "/MD"
|
||||
} else {
|
||||
throw new GradleException("Unknown buildType" + buildType)
|
||||
}
|
||||
}
|
||||
if (toolChain in Gcc) {
|
||||
}
|
||||
}
|
||||
withType(org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteBinarySpec) {
|
||||
lib project: ':CppUnit', library: 'CppUnit', linkage: 'shared'
|
||||
}
|
||||
}
|
||||
}
|
||||
task testsuite { dependsOn "assemble" }
|
||||
|
||||
|
@ -1,39 +0,0 @@
|
||||
model {
|
||||
components {
|
||||
CppUnit(NativeLibrarySpec) {
|
||||
sources {
|
||||
rc {
|
||||
source {
|
||||
srcDir '..'
|
||||
include 'DLLVersion.rc'
|
||||
}
|
||||
}
|
||||
cpp {
|
||||
source {
|
||||
srcDir 'src'
|
||||
include '**/*.cpp'
|
||||
}
|
||||
exportedHeaders {
|
||||
srcDir 'include'
|
||||
}
|
||||
//lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
all {
|
||||
cppCompiler.define "POCO_NO_AUTOMATIC_LIBS"
|
||||
}
|
||||
withType(SharedLibraryBinarySpec) {
|
||||
if (toolChain in VisualCpp) {
|
||||
cppCompiler.define "CppUnit_EXPORTS"
|
||||
}
|
||||
}
|
||||
withType(StaticLibraryBinarySpec) {
|
||||
}
|
||||
}
|
||||
}
|
||||
task poco { dependsOn "assemble" }
|
||||
|
||||
|
@ -1,45 +0,0 @@
|
||||
model {
|
||||
components {
|
||||
Crypto(NativeLibrarySpec) {
|
||||
sources {
|
||||
rc {
|
||||
source {
|
||||
srcDir '..'
|
||||
include 'DLLVersion.rc'
|
||||
}
|
||||
}
|
||||
cpp {
|
||||
source {
|
||||
srcDir 'src'
|
||||
include '**/*.cpp'
|
||||
}
|
||||
exportedHeaders {
|
||||
srcDir 'include'
|
||||
}
|
||||
lib library: 'ssl'
|
||||
lib library: 'crypto'
|
||||
lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
all {
|
||||
if (toolChain in VisualCpp) {
|
||||
linker.args "ws2_32.lib"
|
||||
linker.args "iphlpapi.lib"
|
||||
}
|
||||
if (toolChain in Gcc) {
|
||||
// linker.args "-lssl"
|
||||
// linker.args "-lcrypto"
|
||||
}
|
||||
}
|
||||
withType(SharedLibraryBinarySpec) {
|
||||
if (toolChain in VisualCpp) {
|
||||
cppCompiler.define "Crypto_EXPORTS"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
task poco { dependsOn "assemble" }
|
||||
|
@ -1,27 +0,0 @@
|
||||
model {
|
||||
components {
|
||||
genrsakey(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'genrsakey/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Crypto', library: 'Crypto'
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
all {
|
||||
}
|
||||
withType(SharedLibraryBinarySpec) {
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'shared'
|
||||
}
|
||||
withType(StaticLibraryBinarySpec) {
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'static'
|
||||
}
|
||||
withType(NativeExecutableSpec) {
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'static'
|
||||
}
|
||||
}
|
||||
}
|
||||
task sample { dependsOn "assemble" }
|
||||
|
||||
|
@ -1,77 +0,0 @@
|
||||
import org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteSpec
|
||||
|
||||
model {
|
||||
components {
|
||||
withType(NativeComponentSpec) {
|
||||
binaries.withType(NativeBinarySpec) {
|
||||
if (buildType == buildTypes.debug) {
|
||||
if (it instanceof NativeExecutableBinarySpec) {
|
||||
executable.file = toLocalBin(appendDebugSuffix(executable.file), targetPlatform)
|
||||
}
|
||||
} else
|
||||
if (buildType == buildTypes.release) {
|
||||
if (it instanceof NativeExecutableBinarySpec) {
|
||||
executable.file = toLocalBin(executable.file, targetPlatform)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
TestSuite(NativeLibrarySpec) {
|
||||
sources {
|
||||
cpp {
|
||||
source {
|
||||
srcDir 'src'
|
||||
include '**/*.cpp'
|
||||
exclude '*Driver.cpp'
|
||||
}
|
||||
exportedHeaders {
|
||||
srcDir 'src'
|
||||
}
|
||||
lib project: ':CppUnit', library: 'CppUnit'
|
||||
lib project: ':Crypto', library: 'Crypto'
|
||||
lib library: 'ssl'
|
||||
lib library: 'crypto'
|
||||
lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
testSuites {
|
||||
CryptoTestSuite(org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteSpec) {
|
||||
testing $.components.TestSuite
|
||||
binaries.all {
|
||||
String PATH = tasks.run.environment.get("Path")
|
||||
if (targetPlatform.name.equals("win32")) {
|
||||
PATH = "$rootDir/openssl/build/win32/bin/release;$PATH"
|
||||
PATH = "$rootDir/openssl/build/win32/bin/debug;$PATH"
|
||||
} else
|
||||
if (targetPlatform.name.equals("win64")) {
|
||||
PATH = "$rootDir/openssl/build/win64/bin/release;$PATH"
|
||||
PATH = "$rootDir/openssl/build/win64/bin/debug;$PATH"
|
||||
}
|
||||
tasks.run.environment "Path", PATH
|
||||
}
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
withType(org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteBinarySpec) {
|
||||
lib project: ':CppUnit', library: 'CppUnit', linkage: 'shared'
|
||||
if (toolChain in VisualCpp) {
|
||||
if (buildType == buildTypes.debug) {
|
||||
cCompiler.args "/MDd"
|
||||
cppCompiler.args "/MDd"
|
||||
} else
|
||||
if (buildType == buildTypes.release) {
|
||||
cCompiler.args "/MD"
|
||||
cppCompiler.args "/MD"
|
||||
} else {
|
||||
throw new GradleException("Unknown buildType" + buildType)
|
||||
}
|
||||
}
|
||||
if (toolChain in Gcc) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
task testsuite { dependsOn "assemble" }
|
||||
|
@ -1,137 +0,0 @@
|
||||
model {
|
||||
repositories {
|
||||
libs(PrebuiltLibraries) {
|
||||
mysql {
|
||||
binaries.withType(StaticLibraryBinary) {
|
||||
def libName = "foobar"
|
||||
if (buildType == buildTypes.debug) {
|
||||
libName = 'libmysql.lib'
|
||||
if (targetPlatform.name == 'win32') {
|
||||
headers.srcDir new File("$mysql32Home/include")
|
||||
staticLibraryFile = new File("$mysql32Home/lib/$libName")
|
||||
} else
|
||||
if (targetPlatform.name == 'win64') {
|
||||
headers.srcDir new File("$mysql64Home/include")
|
||||
staticLibraryFile = new File("$mysql64Home/lib/$libName")
|
||||
}
|
||||
} else
|
||||
if (buildType == buildTypes.release) {
|
||||
libName = 'libmysql.lib'
|
||||
if (targetPlatform.name == 'win32') {
|
||||
headers.srcDir new File("$mysql32Home/include")
|
||||
staticLibraryFile = new File("$mysql32Home/lib/$libName")
|
||||
} else
|
||||
if (targetPlatform.name == 'win64') {
|
||||
headers.srcDir new File("$mysql64Home/include")
|
||||
staticLibraryFile = new File("$mysql64Home/lib/$libName")
|
||||
}
|
||||
}
|
||||
}
|
||||
binaries.withType(SemiStaticLibraryBinary) {
|
||||
def libName = "foobar"
|
||||
if (buildType == buildTypes.debug) {
|
||||
libName = 'libmysql.lib'
|
||||
if (targetPlatform.name == 'win32') {
|
||||
headers.srcDir new File("$mysql32Home/include")
|
||||
staticLibraryFile = new File("$mysql32Home/lib/$libName")
|
||||
} else
|
||||
if (targetPlatform.name == 'win64') {
|
||||
headers.srcDir new File("$mysql64Home/include")
|
||||
staticLibraryFile = new File("$mysql64Home/lib/$libName")
|
||||
}
|
||||
} else
|
||||
if (buildType == buildTypes.release) {
|
||||
libName = 'libmysql.lib'
|
||||
if (targetPlatform.name == 'win32') {
|
||||
headers.srcDir new File("$mysql32Home/include")
|
||||
staticLibraryFile = new File("$mysql32Home/lib/$libName")
|
||||
} else
|
||||
if (targetPlatform.name == 'win64') {
|
||||
headers.srcDir new File("$mysql64Home/include")
|
||||
staticLibraryFile = new File("$mysql64Home/lib/$libName")
|
||||
}
|
||||
}
|
||||
}
|
||||
binaries.withType(SharedLibraryBinary) {
|
||||
def dllName
|
||||
def linkName
|
||||
if (buildType == buildTypes.debug) {
|
||||
dllName = 'libmysql.dll'
|
||||
linkName = 'libmysql.lib'
|
||||
if (targetPlatform.name == 'win32') {
|
||||
headers.srcDir new File("$mysql32Home/include")
|
||||
sharedLibraryFile = new File("$mysql32Home/lib/$dllName")
|
||||
sharedLibraryLinkFile = new File("$mysql32Home/lib/$linkName")
|
||||
} else
|
||||
if (targetPlatform.name == 'win64') {
|
||||
headers.srcDir new File("$mysql64Home/include")
|
||||
sharedLibraryFile = new File("$mysql64Home/lib/$dllName")
|
||||
sharedLibraryLinkFile = new File("$mysql64Home/lib/$linkName")
|
||||
}
|
||||
} else
|
||||
if (buildType == buildTypes.release) {
|
||||
dllName = 'libmysql.dll'
|
||||
linkName = 'libmysql.lib'
|
||||
if (targetPlatform.name == 'win32') {
|
||||
headers.srcDir new File("$mysql32Home/include")
|
||||
sharedLibraryFile = new File("$mysql32Home/lib/$dllName")
|
||||
sharedLibraryLinkFile = new File("$mysql32Home/lib/$linkName")
|
||||
} else
|
||||
if (targetPlatform.name == 'win64') {
|
||||
headers.srcDir new File("$mysql64Home/include")
|
||||
sharedLibraryFile = new File("$mysql64Home/lib/$dllName")
|
||||
sharedLibraryLinkFile = new File("$mysql64Home/lib/$linkName")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
components {
|
||||
DataMySQL(NativeLibrarySpec) {
|
||||
sources {
|
||||
cpp {
|
||||
source {
|
||||
srcDir 'src'
|
||||
include '**/*.cpp'
|
||||
}
|
||||
exportedHeaders {
|
||||
srcDir 'include'
|
||||
}
|
||||
lib library: 'mysql'
|
||||
lib project: ':Data', library: 'Data'
|
||||
lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
all {
|
||||
cppCompiler.define "THREADSAFE"
|
||||
|
||||
if (toolChain in VisualCpp) {
|
||||
cppCompiler.define "WINVER=0x0600"
|
||||
cppCompiler.define "__LCC__"
|
||||
}
|
||||
|
||||
if (toolChain in Gcc) {
|
||||
cppCompiler.define "NO_TCL"
|
||||
cppCompiler.args ( "-I", "/usr/local/include/mysql/" )
|
||||
cppCompiler.args ( "-I", "/usr/include/mysql/" )
|
||||
cppCompiler.args ( "-I", "/usr/mysql/include/mysql" )
|
||||
cppCompiler.args ( "-I", "/usr/local/mysql/include" )
|
||||
}
|
||||
|
||||
}
|
||||
withType(SharedLibraryBinarySpec) {
|
||||
if (toolChain in VisualCpp) {
|
||||
cppCompiler.define "MySQL_EXPORTS"
|
||||
}
|
||||
}
|
||||
withType(StaticLibraryBinarySpec) {
|
||||
}
|
||||
}
|
||||
}
|
||||
task poco { dependsOn "assemble" }
|
||||
|
||||
|
@ -1,97 +0,0 @@
|
||||
import org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteSpec
|
||||
|
||||
model {
|
||||
components {
|
||||
withType(NativeComponentSpec) {
|
||||
binaries.withType(NativeBinarySpec) {
|
||||
if (buildType == buildTypes.debug) {
|
||||
if (it instanceof NativeExecutableBinarySpec) {
|
||||
executable.file = toLocalBin(appendDebugSuffix(executable.file), targetPlatform)
|
||||
}
|
||||
} else
|
||||
if (buildType == buildTypes.release) {
|
||||
if (it instanceof NativeExecutableBinarySpec) {
|
||||
executable.file = toLocalBin(executable.file, targetPlatform)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
TestSuite(NativeLibrarySpec) {
|
||||
sources {
|
||||
cpp {
|
||||
source {
|
||||
srcDir 'src'
|
||||
include '**/*.cpp'
|
||||
exclude '*Driver.cpp'
|
||||
}
|
||||
exportedHeaders {
|
||||
srcDir 'src'
|
||||
}
|
||||
lib project: ':CppUnit', library: 'CppUnit', linkage: 'shared'
|
||||
lib project: ':Data:MySQL', library: 'mysql', linkage: 'shared'
|
||||
lib project: ':Data:MySQL', library: 'DataMySQL', linkage: 'shared'
|
||||
lib project: ':Data', library: 'Data', linkage: 'shared'
|
||||
lib project: ':Util', library: 'Util'
|
||||
lib project: ':JSON', library: 'JSON'
|
||||
lib project: ':XML', library: 'XML'
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'shared'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
testSuites {
|
||||
MySQLTestSuite(org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteSpec) {
|
||||
testing $.components.TestSuite
|
||||
binaries.all {
|
||||
String PATH = tasks.run.environment.get("Path")
|
||||
if (targetPlatform.name.equals("win32")) {
|
||||
PATH = "$mysql32Home" + "/bin;$PATH"
|
||||
|
||||
} else
|
||||
if (targetPlatform.name.equals("win64")) {
|
||||
PATH = "$mysql64Home" + "/bin;$PATH"
|
||||
}
|
||||
tasks.run.environment "Path", PATH
|
||||
}
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
all {
|
||||
cppCompiler.define "THREADSAFE"
|
||||
cppCompiler.define "__LCC__"
|
||||
}
|
||||
withType(org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteBinarySpec) {
|
||||
lib project: ':CppUnit', library: 'CppUnit', linkage: 'shared'
|
||||
if (toolChain in VisualCpp) {
|
||||
cppCompiler.define "WINVER=0x0600"
|
||||
if (buildType == buildTypes.debug) {
|
||||
cCompiler.args "/MDd"
|
||||
cppCompiler.args "/MDd"
|
||||
} else
|
||||
if (buildType == buildTypes.release) {
|
||||
cCompiler.args "/MD"
|
||||
cppCompiler.args "/MD"
|
||||
} else {
|
||||
throw new GradleException("Unknown buildType" + buildType)
|
||||
}
|
||||
}
|
||||
if (toolChain in Gcc) {
|
||||
def String LIB64SUFFIX = "64"
|
||||
cppCompiler.define "NO_TCL"
|
||||
cppCompiler.args ( "-I", "/usr/local/include/mysql/" )
|
||||
cppCompiler.args ( "-I", "/usr/include/mysql/" )
|
||||
cppCompiler.args ( "-I", "/usr/mysql/include/mysql" )
|
||||
cppCompiler.args ( "-I", "/usr/local/mysql/include" )
|
||||
linker.args ( "-L", "/usr/lib/x86_64-linux-gnu")
|
||||
linker.args ( "-L", "/usr/local/lib$LIB64SUFFIX/mysql" )
|
||||
linker.args ( "-L", "/usr/lib$LIB64SUFFIX/mysql" )
|
||||
linker.args ( "-L", "/usr/mysql/lib$LIB64SUFFIX" )
|
||||
linker.args ( "-L", "/usr/mysql/lib$LIB64SUFFIX/mysql" )
|
||||
linker.args ( "-L", "/usr/local/mysql/lib$LIB64SUFFIX" )
|
||||
linker.args ( "-l", "mysqlclient" )
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
task testsuite { dependsOn "assemble" }
|
||||
|
@ -1,77 +0,0 @@
|
||||
model {
|
||||
components {
|
||||
DataODBC(NativeLibrarySpec) { m ->
|
||||
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 {
|
||||
sources {
|
||||
if (targetPlatform.operatingSystem.windows) {
|
||||
platformWindows(CppSourceSet) {
|
||||
lib m.sources.cpp
|
||||
source {
|
||||
srcDir 'src'
|
||||
include 'Unicode_WIN32.cpp'
|
||||
}
|
||||
lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
} else
|
||||
if (targetPlatform.operatingSystem.macOsX || targetPlatform.operatingSystem.linux) {
|
||||
platformNix(CppSourceSet) {
|
||||
lib m.sources.cpp
|
||||
source {
|
||||
srcDir 'src'
|
||||
include 'Unicode_UNIXODBC.cpp'
|
||||
}
|
||||
lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
all {
|
||||
|
||||
if (toolChain in VisualCpp) {
|
||||
cppCompiler.define "THREADSAFE=1"
|
||||
}
|
||||
if (toolChain in Gcc || toolChain in Clang) {
|
||||
cppCompiler.define "POCO_UNIXODBC"
|
||||
linker.args "-lodbc"
|
||||
}
|
||||
}
|
||||
withType(SharedLibraryBinarySpec) {
|
||||
if (toolChain in VisualCpp) {
|
||||
cppCompiler.define "ODBC_EXPORTS"
|
||||
linker.args 'odbc32.lib'
|
||||
linker.args 'odbccp32.lib'
|
||||
}
|
||||
}
|
||||
withType(StaticLibraryBinarySpec) {
|
||||
}
|
||||
}
|
||||
}
|
||||
task poco { dependsOn "assemble" }
|
||||
|
||||
|
@ -1,76 +0,0 @@
|
||||
import org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteSpec
|
||||
|
||||
model {
|
||||
components {
|
||||
withType(NativeComponentSpec) {
|
||||
binaries.withType(NativeBinarySpec) {
|
||||
if (buildType == buildTypes.debug) {
|
||||
if (it instanceof NativeExecutableBinarySpec) {
|
||||
executable.file = toLocalBin(appendDebugSuffix(executable.file), targetPlatform)
|
||||
}
|
||||
} else
|
||||
if (buildType == buildTypes.release) {
|
||||
if (it instanceof NativeExecutableBinarySpec) {
|
||||
executable.file = toLocalBin(executable.file, targetPlatform)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
TestSuite(NativeLibrarySpec) {
|
||||
sources {
|
||||
cpp {
|
||||
source {
|
||||
srcDir 'src'
|
||||
include '**/*.cpp'
|
||||
exclude '*Driver.cpp'
|
||||
}
|
||||
exportedHeaders {
|
||||
srcDir 'src'
|
||||
}
|
||||
lib project: ':CppUnit', library: 'CppUnit', linkage: 'shared'
|
||||
lib project: ':Data:ODBC', library: 'DataODBC', linkage: 'shared'
|
||||
lib project: ':Data', library: 'Data', linkage: 'shared'
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'shared'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
testSuites {
|
||||
ODBCTestSuite(org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteSpec) {
|
||||
testing $.components.TestSuite
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
all {
|
||||
if (toolChain in VisualCpp) {
|
||||
linker.args 'odbc32.lib'
|
||||
linker.args 'odbccp32.lib'
|
||||
}
|
||||
if (toolChain in Gcc) {
|
||||
linker.args ( "-L", "/usr/lib/x86_64-linux-gnu")
|
||||
linker.args ( "-l", "odbc")
|
||||
}
|
||||
if (toolChain in Clang) {
|
||||
linker.args ( "-l", "odbc")
|
||||
}
|
||||
}
|
||||
withType(org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteBinarySpec) {
|
||||
lib project: ':CppUnit', library: 'CppUnit', linkage: 'shared'
|
||||
if (toolChain in VisualCpp) {
|
||||
if (buildType == buildTypes.debug) {
|
||||
cCompiler.args "/MDd"
|
||||
cppCompiler.args "/MDd"
|
||||
} else
|
||||
if (buildType == buildTypes.release) {
|
||||
cCompiler.args "/MD"
|
||||
cppCompiler.args "/MD"
|
||||
} else {
|
||||
throw new GradleException("Unknown buildType" + buildType)
|
||||
}
|
||||
}
|
||||
if (toolChain in Gcc) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
task testsuite { dependsOn "assemble" }
|
@ -1,339 +0,0 @@
|
||||
model {
|
||||
repositories {
|
||||
libs(PrebuiltLibraries) {
|
||||
intl {
|
||||
binaries.withType(StaticLibraryBinary) {
|
||||
def libName = "foobar"
|
||||
if (buildType == buildTypes.debug) {
|
||||
if (targetPlatform.name == 'win32') {
|
||||
libName = 'libintl.lib'
|
||||
headers.srcDir(new File("$postgres32Home/include"))
|
||||
staticLibraryFile = new File("$postgres32Home/lib/$libName")
|
||||
} else
|
||||
if (targetPlatform.name == 'win64') {
|
||||
libName = 'libintl.lib'
|
||||
headers.srcDir(new File("$postgres64Home/include"))
|
||||
staticLibraryFile = new File("$postgres64Home/lib/$libName")
|
||||
} else
|
||||
if (targetPlatform.operatingSystem.macOsX) {
|
||||
} else
|
||||
if (targetPlatform.operatingSystem.linux) {
|
||||
libName = 'libintl.lib'
|
||||
headers.srcDir(new File("$postgres64LinuxInc"))
|
||||
staticLibraryFile = new File("$postgres64LinuxLib/$libName")
|
||||
}
|
||||
} else
|
||||
if (buildType == buildTypes.release) {
|
||||
if (targetPlatform.name == 'win32') {
|
||||
libName = 'libintl.lib'
|
||||
headers.srcDir(new File("$postgres32Home/include"))
|
||||
staticLibraryFile = new File("$postgres32Home/lib/$libName")
|
||||
} else
|
||||
if (targetPlatform.name == 'win64') {
|
||||
libName = 'libintl.lib'
|
||||
headers.srcDir(new File("$postgres64Home/include"))
|
||||
staticLibraryFile = new File("$postgres64Home/lib/$libName")
|
||||
} else
|
||||
if (targetPlatform.operatingSystem.macOsX) {
|
||||
} else
|
||||
if (targetPlatform.operatingSystem.linux) {
|
||||
libName = 'libintl.lib'
|
||||
headers.srcDir(new File("$postgres64LinuxInc"))
|
||||
staticLibraryFile = new File("$postgres64LinuxLib/$libName")
|
||||
}
|
||||
}
|
||||
}
|
||||
binaries.withType(SharedLibraryBinary) {
|
||||
def dllName
|
||||
def linkName
|
||||
if (buildType == buildTypes.debug) {
|
||||
if (targetPlatform.name == 'win32') {
|
||||
dllName = 'libintl-8.dll'
|
||||
linkName = 'libintl.lib'
|
||||
headers.srcDir(new File("$postgres32Home/include"))
|
||||
sharedLibraryFile = new File("$postgres32Home/bin/$dllName")
|
||||
sharedLibraryLinkFile = new File("$postgres32Home/lib/$linkName")
|
||||
} else
|
||||
if (targetPlatform.name == 'win64') {
|
||||
dllName = 'libintl-8.dll'
|
||||
linkName = 'libintl.lib'
|
||||
headers.srcDir(new File("$postgres64Home/include"))
|
||||
sharedLibraryFile = new File("$postgres64Home/bin/$dllName")
|
||||
sharedLibraryLinkFile = new File("$postgres64Home/lib/$linkName")
|
||||
} else
|
||||
if (targetPlatform.operatingSystem.macOsX) {
|
||||
} else
|
||||
if (targetPlatform.operatingSystem.linux) {
|
||||
dllName = 'libintl-8.so'
|
||||
linkName = 'libintl.a'
|
||||
headers.srcDir(new File("$postgres64LinuxInc"))
|
||||
sharedLibraryFile = new File("$postgres64LinuxLib/bin/$dllName")
|
||||
sharedLibraryLinkFile = new File("$postgres64LinuxLib/$linkName")
|
||||
}
|
||||
} else
|
||||
if (buildType == buildTypes.release) {
|
||||
if (targetPlatform.name == 'win32') {
|
||||
dllName = 'libintl-8.dll'
|
||||
linkName = 'libintl.lib'
|
||||
headers.srcDir(new File("$postgres32Home/include"))
|
||||
sharedLibraryFile = new File("$postgres32Home/bin/$dllName")
|
||||
sharedLibraryLinkFile = new File("$postgres32Home/lib/$linkName")
|
||||
} else
|
||||
if (targetPlatform.name == 'win64') {
|
||||
dllName = 'libintl-8.dll'
|
||||
linkName = 'libintl.lib'
|
||||
headers.srcDir(new File("$postgres64Home/include"))
|
||||
sharedLibraryFile = new File("$postgres64Home/bin/$dllName")
|
||||
sharedLibraryLinkFile = new File("$postgres64Home/lib/$linkName")
|
||||
} else
|
||||
if (targetPlatform.operatingSystem.macOsX) {
|
||||
} else
|
||||
if (targetPlatform.operatingSystem.linux) {
|
||||
dllName = 'libintl-8.so'
|
||||
linkName = 'libintl.a'
|
||||
headers.srcDir(new File("$postgres64LinuxInc"))
|
||||
sharedLibraryFile = new File("$postgres64LinuxLib/bin/$dllName")
|
||||
sharedLibraryLinkFile = new File("$postgres64LinuxLib/$linkName")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
iconv {
|
||||
binaries.withType(StaticLibraryBinary) {
|
||||
def libName = "foobar"
|
||||
if (buildType == buildTypes.debug) {
|
||||
if (targetPlatform.name == 'win32') {
|
||||
libName = 'iconv.lib'
|
||||
headers.srcDir(new File("$postgres32Home/include"))
|
||||
staticLibraryFile = new File("$postgres32Home/lib/$libName")
|
||||
} else
|
||||
if (targetPlatform.name == 'win64') {
|
||||
libName = 'iconv.lib'
|
||||
headers.srcDir(new File("$postgres64Home/include"))
|
||||
staticLibraryFile = new File("$postgres64Home/lib/$libName")
|
||||
} else
|
||||
if (targetPlatform.operatingSystem.macOsX) {
|
||||
} else
|
||||
if (targetPlatform.operatingSystem.linux) {
|
||||
libName = 'iconv.a'
|
||||
headers.srcDir(new File("$postgres64LinuxInc"))
|
||||
staticLibraryFile = new File("$postgres64LinuxLib/$libName")
|
||||
}
|
||||
} else
|
||||
if (buildType == buildTypes.release) {
|
||||
if (targetPlatform.name == 'win32') {
|
||||
libName = 'iconv.lib'
|
||||
headers.srcDir(new File("$postgres32Home/include"))
|
||||
staticLibraryFile = new File("$postgres32Home/lib/$libName")
|
||||
} else
|
||||
if (targetPlatform.name == 'win64') {
|
||||
libName = 'iconv.lib'
|
||||
headers.srcDir(new File("$postgres64Home/include"))
|
||||
staticLibraryFile = new File("$postgres64Home/lib/$libName")
|
||||
} else
|
||||
if (targetPlatform.operatingSystem.macOsX) {
|
||||
} else
|
||||
if (targetPlatform.operatingSystem.linux) {
|
||||
libName = 'iconv.a'
|
||||
headers.srcDir(new File("$postgres64LinuxInc"))
|
||||
staticLibraryFile = new File("$postgres64LinuxLib/$libName")
|
||||
}
|
||||
}
|
||||
}
|
||||
binaries.withType(SharedLibraryBinary) {
|
||||
def dllName
|
||||
def linkName
|
||||
if (buildType == buildTypes.debug) {
|
||||
if (targetPlatform.name == 'win32') {
|
||||
dllName = 'libiconv-2.dll'
|
||||
linkName = 'iconv.lib'
|
||||
headers.srcDir(new File("$postgres32Home/include"))
|
||||
sharedLibraryFile = new File("$postgres32Home/bin/$dllName")
|
||||
sharedLibraryLinkFile = new File("$postgres32Home/lib/$linkName")
|
||||
} else
|
||||
if (targetPlatform.name == 'win64') {
|
||||
dllName = 'libiconv-2.dll'
|
||||
linkName = 'iconv.lib'
|
||||
headers.srcDir(new File("$postgres64Home/include"))
|
||||
sharedLibraryFile = new File("$postgres64Home/bin/$dllName")
|
||||
sharedLibraryLinkFile = new File("$postgres64Home/lib/$linkName")
|
||||
} else
|
||||
if (targetPlatform.operatingSystem.macOsX) {
|
||||
} else
|
||||
if (targetPlatform.operatingSystem.linux) {
|
||||
dllName = 'libiconv-2.so'
|
||||
linkName = 'iconv.a'
|
||||
headers.srcDir(new File("$postgres64LinuxInc"))
|
||||
sharedLibraryFile = new File("$postgres64LinuxLib/bin/$dllName")
|
||||
sharedLibraryLinkFile = new File("$postgres64LinuxLib/$linkName")
|
||||
}
|
||||
} else
|
||||
if (buildType == buildTypes.release) {
|
||||
if (targetPlatform.name == 'win32') {
|
||||
dllName = 'libiconv-2.dll'
|
||||
linkName = 'iconv.lib'
|
||||
headers.srcDir(new File("$postgres32Home/include"))
|
||||
sharedLibraryFile = new File("$postgres32Home/bin/$dllName")
|
||||
sharedLibraryLinkFile = new File("$postgres32Home/lib/$linkName")
|
||||
} else
|
||||
if (targetPlatform.name == 'win64') {
|
||||
dllName = 'libiconv-2.dll'
|
||||
linkName = 'iconv.lib'
|
||||
headers.srcDir(new File("$postgres64Home/include"))
|
||||
sharedLibraryFile = new File("$postgres64Home/bin/$dllName")
|
||||
sharedLibraryLinkFile = new File("$postgres64Home/lib/$linkName")
|
||||
} else
|
||||
if (targetPlatform.operatingSystem.macOsX) {
|
||||
} else
|
||||
if (targetPlatform.operatingSystem.linux) {
|
||||
dllName = 'libiconv-2.so'
|
||||
linkName = 'iconv.a'
|
||||
headers.srcDir(new File("$postgres64LinuxInc"))
|
||||
sharedLibraryFile = new File("$postgres64LinuxLib/bin/$dllName")
|
||||
sharedLibraryLinkFile = new File("$postgres64LinuxLib/$linkName")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
postgres {
|
||||
binaries.withType(StaticLibraryBinary) {
|
||||
def libName = "foobar"
|
||||
if (buildType == buildTypes.debug) {
|
||||
if (targetPlatform.name == 'win32') {
|
||||
libName = 'libpq.lib'
|
||||
headers.srcDir(new File("$postgres32Home/include"))
|
||||
staticLibraryFile = new File("$postgres32Home/lib/$libName")
|
||||
} else
|
||||
if (targetPlatform.name == 'win64') {
|
||||
libName = 'libpq.lib'
|
||||
headers.srcDir(new File("$postgres64Home/include"))
|
||||
staticLibraryFile = new File("$postgres64Home/lib/$libName")
|
||||
} else
|
||||
if (targetPlatform.operatingSystem.macOsX) {
|
||||
} else
|
||||
if (targetPlatform.operatingSystem.linux) {
|
||||
libName = 'libpq.a'
|
||||
headers.srcDir(new File("$postgres64LinuxInc") )
|
||||
staticLibraryFile = new File("$postgres32LinuxLib/$libName")
|
||||
}
|
||||
} else
|
||||
if (buildType == buildTypes.release) {
|
||||
if (targetPlatform.name == 'win32') {
|
||||
libName = 'libpq.lib'
|
||||
headers.srcDir(new File("$postgres32Home/include"))
|
||||
staticLibraryFile = new File("$postgres32Home/lib/$libName")
|
||||
} else
|
||||
if (targetPlatform.name == 'win64') {
|
||||
libName = 'libpq.lib'
|
||||
headers.srcDir(new File("$postgres64Home/include"))
|
||||
staticLibraryFile = new File("$postgres64Home/lib/$libName")
|
||||
} else
|
||||
if (targetPlatform.operatingSystem.macOsX) {
|
||||
} else
|
||||
if (targetPlatform.operatingSystem.linux) {
|
||||
libName = 'libpq.a'
|
||||
headers.srcDir(new File("$postgres64LinuxInc"))
|
||||
staticLibraryFile = new File("$postgres32LinuxLib/$libName")
|
||||
}
|
||||
}
|
||||
}
|
||||
binaries.withType(SharedLibraryBinary) {
|
||||
def dllName
|
||||
def linkName
|
||||
if (buildType == buildTypes.debug) {
|
||||
if (targetPlatform.name == 'win32') {
|
||||
dllName = 'libpq.dll'
|
||||
linkName = 'libpq.lib'
|
||||
headers.srcDir(new File("$postgres32Home/include"))
|
||||
sharedLibraryFile = new File("$postgres32Home/lib/$dllName")
|
||||
sharedLibraryLinkFile = new File("$postgres32Home/lib/$linkName")
|
||||
} else
|
||||
if (targetPlatform.name == 'win64') {
|
||||
dllName = 'libpq.dll'
|
||||
linkName = 'libpq.lib'
|
||||
headers.srcDir(new File("$postgres64Home/include"))
|
||||
sharedLibraryFile = new File("$postgres64Home/lib/$dllName")
|
||||
sharedLibraryLinkFile = new File("$postgres64Home/lib/$linkName")
|
||||
} else
|
||||
if (targetPlatform.operatingSystem.macOsX) {
|
||||
} else
|
||||
if (targetPlatform.operatingSystem.linux) {
|
||||
dllName = 'libpq.so'
|
||||
linkName = 'libpq.a'
|
||||
headers.srcDir( new File("$postgres64LinuxInc") )
|
||||
sharedLibraryFile = new File("$postgres64LinuxLib/$dllName")
|
||||
sharedLibraryLinkFile = new File("$postgres64LinuxLib/$linkName")
|
||||
}
|
||||
} else
|
||||
if (buildType == buildTypes.release) {
|
||||
if (targetPlatform.name == 'win32') {
|
||||
dllName = 'libpq.dll'
|
||||
linkName = 'libpq.lib'
|
||||
headers.srcDir(new File("$postgres32Home/include"))
|
||||
sharedLibraryFile = new File("$postgres32Home/lib/$dllName")
|
||||
sharedLibraryLinkFile = new File("$postgres32Home/lib/$linkName")
|
||||
} else
|
||||
if (targetPlatform.name == 'win64') {
|
||||
dllName = 'libpq.dll'
|
||||
linkName = 'libpq.lib'
|
||||
headers.srcDir(new File("$postgres64Home/include"))
|
||||
sharedLibraryFile = new File("$postgres64Home/lib/$dllName")
|
||||
sharedLibraryLinkFile = new File("$postgres64Home/lib/$linkName")
|
||||
} else
|
||||
if (targetPlatform.operatingSystem.macOsX) {
|
||||
} else
|
||||
if (targetPlatform.operatingSystem.linux) {
|
||||
dllName = 'libpq.so'
|
||||
linkName = 'libpq.a'
|
||||
headers.srcDir(new File("$postgres64LinuxInc"))
|
||||
sharedLibraryFile = new File("$postgres64LinuxLib/$dllName")
|
||||
sharedLibraryLinkFile = new File("$postgres64LinuxLib/$linkName")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
components {
|
||||
DataPostgreSQL(NativeLibrarySpec) {
|
||||
sources {
|
||||
rc {
|
||||
source {
|
||||
srcDir '../..'
|
||||
include 'DLLVersion.rc'
|
||||
}
|
||||
}
|
||||
cpp {
|
||||
source {
|
||||
srcDir 'src'
|
||||
include '**/*.cpp'
|
||||
}
|
||||
exportedHeaders {
|
||||
srcDir 'include'
|
||||
}
|
||||
lib library: 'postgres'
|
||||
lib project: ':Data', library: 'Data'
|
||||
lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
all {
|
||||
if (toolChain in Gcc) {
|
||||
cppCompiler.args ( "-I", "/usr/include/postgresql")
|
||||
linker.args ( "-L", "/usr/lib/x86_64-linux-gnu/")
|
||||
linker.args ( "-l", "pq")
|
||||
}
|
||||
}
|
||||
withType(SharedLibraryBinarySpec) {
|
||||
if (toolChain in VisualCpp) {
|
||||
cppCompiler.define "PostgreSQL_EXPORTS"
|
||||
}
|
||||
}
|
||||
withType(StaticLibraryBinarySpec) {
|
||||
}
|
||||
}
|
||||
}
|
||||
task poco { dependsOn "assemble" }
|
||||
|
@ -1,82 +0,0 @@
|
||||
import org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteSpec
|
||||
|
||||
model {
|
||||
components {
|
||||
withType(NativeComponentSpec) {
|
||||
binaries.withType(NativeBinarySpec) {
|
||||
if (buildType == buildTypes.debug) {
|
||||
if (it instanceof NativeExecutableBinarySpec) {
|
||||
executable.file = toLocalBin(appendDebugSuffix(executable.file), targetPlatform)
|
||||
}
|
||||
} else
|
||||
if (buildType == buildTypes.release) {
|
||||
if (it instanceof NativeExecutableBinarySpec) {
|
||||
executable.file = toLocalBin(executable.file, targetPlatform)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
TestSuite(NativeLibrarySpec) {
|
||||
sources {
|
||||
cpp {
|
||||
source {
|
||||
srcDir 'src'
|
||||
include '**/*.cpp'
|
||||
exclude '*Driver.cpp'
|
||||
}
|
||||
exportedHeaders {
|
||||
srcDir 'src'
|
||||
}
|
||||
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'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
testSuites {
|
||||
PostgreSQLTestSuite(org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteSpec) {
|
||||
testing $.components.TestSuite
|
||||
binaries.all {
|
||||
String PATH = tasks.run.environment.get("Path")
|
||||
if (targetPlatform.name.equals("win32")) {
|
||||
PATH = "$postgres32Home" + "/bin;$PATH"
|
||||
|
||||
} else
|
||||
if (targetPlatform.name.equals("win64")) {
|
||||
PATH = "$postgres64Home" + "/bin;$PATH"
|
||||
}
|
||||
tasks.run.environment "Path", PATH
|
||||
}
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
withType(org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteBinarySpec) {
|
||||
lib project: ':CppUnit', library: 'CppUnit', linkage: 'shared'
|
||||
if (toolChain in VisualCpp) {
|
||||
if (buildType == buildTypes.debug) {
|
||||
cCompiler.args "/MDd"
|
||||
cppCompiler.args "/MDd"
|
||||
} else
|
||||
if (buildType == buildTypes.release) {
|
||||
cCompiler.args "/MD"
|
||||
cppCompiler.args "/MD"
|
||||
} else {
|
||||
throw new GradleException("Unknown buildType" + buildType)
|
||||
}
|
||||
}
|
||||
if (toolChain in Gcc) {
|
||||
linker.args ( "-l", "z")
|
||||
linker.args ( "-l", "pthread")
|
||||
linker.args ( "-l", "dl")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
task testsuite { dependsOn "assemble" }
|
@ -1,85 +0,0 @@
|
||||
model {
|
||||
components {
|
||||
DataSQLite(NativeLibrarySpec) {
|
||||
sources {
|
||||
rc {
|
||||
source {
|
||||
srcDir '../..'
|
||||
include 'DLLVersion.rc'
|
||||
}
|
||||
}
|
||||
c {
|
||||
source {
|
||||
srcDir 'src'
|
||||
include '**/*.c'
|
||||
}
|
||||
exportedHeaders {
|
||||
srcDir 'include'
|
||||
}
|
||||
lib project: ':Data', library: 'Data'
|
||||
lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
cpp {
|
||||
source {
|
||||
srcDir 'src'
|
||||
include '**/*.cpp'
|
||||
}
|
||||
exportedHeaders {
|
||||
srcDir 'include'
|
||||
}
|
||||
lib project: ':Data', library: 'Data'
|
||||
lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
all {
|
||||
if (toolChain in VisualCpp) {
|
||||
cCompiler.define "SQLITE_THREADSAFE=1"
|
||||
cCompiler.define "SQLITE_ENABLE_FTS3"
|
||||
cCompiler.define "SQLITE_ENABLE_FTS3_PARENTHESIS"
|
||||
cCompiler.define "SQLITE_OMIT_UTF16"
|
||||
cCompiler.define "SQLITE_OMIT_PROGRESS_CALLBACK"
|
||||
cCompiler.define "SQLITE_OMIT_COMPLETE"
|
||||
cCompiler.define "SQLITE_OMIT_TCL_VARIABLE"
|
||||
cCompiler.define "SQLITE_OMIT_DEPRECATED"
|
||||
|
||||
cppCompiler.define "SQLITE_THREADSAFE=1"
|
||||
cppCompiler.define "SQLITE_ENABLE_FTS3"
|
||||
cppCompiler.define "SQLITE_ENABLE_FTS3_PARENTHESIS"
|
||||
cppCompiler.define "SQLITE_OMIT_UTF16"
|
||||
cppCompiler.define "SQLITE_OMIT_PROGRESS_CALLBACK"
|
||||
cppCompiler.define "SQLITE_OMIT_COMPLETE"
|
||||
cppCompiler.define "SQLITE_OMIT_TCL_VARIABLE"
|
||||
cppCompiler.define "SQLITE_OMIT_DEPRECATED"
|
||||
} else {
|
||||
cCompiler.args "-I$projectDir/src"
|
||||
cCompiler.define "SQLITE_THREADSAFE=1"
|
||||
cCompiler.define "SQLITE_DISABLE_LFS"
|
||||
cCompiler.define "SQLITE_OMIT_UTF16"
|
||||
cCompiler.define "SQLITE_OMIT_PROGRESS_CALLBACK"
|
||||
cCompiler.define "SQLITE_OMIT_COMPLETE"
|
||||
cCompiler.define "SQLITE_OMIT_TCL_VARIABLE"
|
||||
cCompiler.define "SQLITE_OMIT_DEPRECATED"
|
||||
|
||||
cppCompiler.args "-I$projectDir/src"
|
||||
cppCompiler.define "SQLITE_THREADSAFE=1"
|
||||
cppCompiler.define "SQLITE_DISABLE_LFS"
|
||||
cppCompiler.define "SQLITE_OMIT_UTF16"
|
||||
cppCompiler.define "SQLITE_OMIT_PROGRESS_CALLBACK"
|
||||
cppCompiler.define "SQLITE_OMIT_COMPLETE"
|
||||
cppCompiler.define "SQLITE_OMIT_TCL_VARIABLE"
|
||||
cppCompiler.define "SQLITE_OMIT_DEPRECATED"
|
||||
}
|
||||
}
|
||||
withType(SharedLibraryBinarySpec) {
|
||||
if (toolChain in VisualCpp) {
|
||||
cppCompiler.define "SQLite_EXPORTS"
|
||||
}
|
||||
}
|
||||
withType(StaticLibraryBinarySpec) {
|
||||
}
|
||||
}
|
||||
}
|
||||
task poco { dependsOn "assemble" }
|
@ -1,64 +0,0 @@
|
||||
import org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteSpec
|
||||
|
||||
model {
|
||||
components {
|
||||
withType(NativeComponentSpec) {
|
||||
binaries.withType(NativeBinarySpec) {
|
||||
if (buildType == buildTypes.debug) {
|
||||
if (it instanceof NativeExecutableBinarySpec) {
|
||||
executable.file = toLocalBin(appendDebugSuffix(executable.file), targetPlatform)
|
||||
}
|
||||
} else
|
||||
if (buildType == buildTypes.release) {
|
||||
if (it instanceof NativeExecutableBinarySpec) {
|
||||
executable.file = toLocalBin(executable.file, targetPlatform)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
TestSuite(NativeLibrarySpec) {
|
||||
sources {
|
||||
cpp {
|
||||
source {
|
||||
srcDir 'src'
|
||||
include '**/*.cpp'
|
||||
exclude '*Driver.cpp'
|
||||
}
|
||||
exportedHeaders {
|
||||
srcDir 'src'
|
||||
}
|
||||
lib project: ':CppUnit', library: 'CppUnit', linkage: 'shared'
|
||||
lib project: ':Data:SQLite', library: 'DataSQLite', linkage: 'shared'
|
||||
lib project: ':Data', library: 'Data', linkage: 'shared'
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'shared'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
testSuites {
|
||||
SQLiteTestSuite(org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteSpec) {
|
||||
testing $.components.TestSuite
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
withType(org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteBinarySpec) {
|
||||
lib project: ':CppUnit', library: 'CppUnit', linkage: 'shared'
|
||||
if (toolChain in VisualCpp) {
|
||||
if (buildType == buildTypes.debug) {
|
||||
cCompiler.args "/MDd"
|
||||
cppCompiler.args "/MDd"
|
||||
} else
|
||||
if (buildType == buildTypes.release) {
|
||||
cCompiler.args "/MD"
|
||||
cppCompiler.args "/MD"
|
||||
} else {
|
||||
throw new GradleException("Unknown buildType" + buildType)
|
||||
}
|
||||
}
|
||||
if (toolChain in Gcc) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
task testsuite { dependsOn "assemble" }
|
||||
|
@ -1,35 +0,0 @@
|
||||
model {
|
||||
components {
|
||||
Data(NativeLibrarySpec) {
|
||||
sources {
|
||||
rc {
|
||||
source {
|
||||
srcDir '..'
|
||||
include 'DLLVersion.rc'
|
||||
}
|
||||
}
|
||||
cpp {
|
||||
source {
|
||||
srcDir 'src'
|
||||
include '**/*.cpp'
|
||||
}
|
||||
exportedHeaders {
|
||||
srcDir 'include'
|
||||
}
|
||||
lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
all {
|
||||
}
|
||||
withType(SharedLibraryBinarySpec) {
|
||||
if (toolChain in VisualCpp) {
|
||||
cppCompiler.define "Data_EXPORTS"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
task poco { dependsOn "assemble" }
|
||||
|
@ -1,69 +0,0 @@
|
||||
model {
|
||||
components {
|
||||
Binding(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'Binding/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Data', library: 'Data'
|
||||
cpp.lib project: ':Data:SQLite', library: 'DataSQLite'
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
RecordSet(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'RecordSet/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Data', library: 'Data'
|
||||
cpp.lib project: ':Data:SQLite', library: 'DataSQLite'
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
RowFormatter(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'RowFormatter/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Data', library: 'Data'
|
||||
cpp.lib project: ':Data:SQLite', library: 'DataSQLite'
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
Tuple(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'Tuple/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Data', library: 'Data'
|
||||
cpp.lib project: ':Data:SQLite', library: 'DataSQLite'
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
TypeHandler(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'TypeHandler/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Data', library: 'Data'
|
||||
cpp.lib project: ':Data:SQLite', library: 'DataSQLite'
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
WebNotifier(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'WebNotifier/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Data', library: 'Data'
|
||||
cpp.lib project: ':Data:SQLite', library: 'DataSQLite'
|
||||
cpp.lib project: ':Net', library: 'Net'
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
all {
|
||||
}
|
||||
withType(SharedLibraryBinarySpec) {
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'shared'
|
||||
}
|
||||
withType(StaticLibraryBinarySpec) {
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'static'
|
||||
}
|
||||
withType(NativeExecutableSpec) {
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'static'
|
||||
}
|
||||
}
|
||||
}
|
||||
task samples { dependsOn "assemble" }
|
||||
|
||||
|
@ -1,65 +0,0 @@
|
||||
import org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteSpec
|
||||
|
||||
model {
|
||||
components {
|
||||
withType(NativeComponentSpec) {
|
||||
binaries.withType(NativeBinarySpec) {
|
||||
if (buildType == buildTypes.debug) {
|
||||
if (it instanceof NativeExecutableBinarySpec) {
|
||||
executable.file = toLocalBin(appendDebugSuffix(executable.file), targetPlatform)
|
||||
}
|
||||
} else
|
||||
if (buildType == buildTypes.release) {
|
||||
if (it instanceof NativeExecutableBinarySpec) {
|
||||
executable.file = toLocalBin(executable.file, targetPlatform)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
TestSuite(NativeLibrarySpec) {
|
||||
sources {
|
||||
cpp {
|
||||
source {
|
||||
srcDir 'src'
|
||||
include '**/*.cpp'
|
||||
exclude '*Driver.cpp'
|
||||
exclude 'StatementImpl.cpp'
|
||||
}
|
||||
exportedHeaders {
|
||||
srcDir 'src'
|
||||
}
|
||||
lib project: ':CppUnit', library: 'CppUnit', linkage: 'shared'
|
||||
lib project: ':Data', library: 'Data', linkage: 'shared'
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'shared'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
testSuites {
|
||||
DataTestSuite(org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteSpec) {
|
||||
testing $.components.TestSuite
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
withType(org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteBinarySpec) {
|
||||
lib project: ':CppUnit', library: 'CppUnit', linkage: 'shared'
|
||||
if (toolChain in VisualCpp) {
|
||||
if (buildType == buildTypes.debug) {
|
||||
cCompiler.args "/MDd"
|
||||
cppCompiler.args "/MDd"
|
||||
} else
|
||||
if (buildType == buildTypes.release) {
|
||||
cCompiler.args "/MD"
|
||||
cppCompiler.args "/MD"
|
||||
} else {
|
||||
throw new GradleException("Unknown buildType" + buildType)
|
||||
}
|
||||
}
|
||||
if (toolChain in Gcc) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
task testsuite { dependsOn "assemble" }
|
||||
|
||||
|
@ -1,46 +0,0 @@
|
||||
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" }
|
||||
|
@ -1,30 +0,0 @@
|
||||
model {
|
||||
components {
|
||||
TextConverter(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'TextConverter/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Encodings', library: 'Encodings'
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
all {
|
||||
}
|
||||
withType(SharedLibraryBinarySpec) {
|
||||
lib project: ':Encodings', library: 'Encodings', linkage: 'shared'
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'shared'
|
||||
}
|
||||
withType(StaticLibraryBinarySpec) {
|
||||
lib project: ':Encodings', library: 'Encodings', linkage: 'static'
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'static'
|
||||
}
|
||||
withType(NativeExecutableSpec) {
|
||||
lib project: ':Encodings', library: 'Encodings', linkage: 'static'
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'static'
|
||||
}
|
||||
}
|
||||
}
|
||||
task samples { dependsOn "assemble" }
|
||||
|
||||
|
@ -1,81 +0,0 @@
|
||||
import org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteSpec
|
||||
|
||||
model {
|
||||
components {
|
||||
withType(NativeComponentSpec) {
|
||||
binaries.withType(NativeBinarySpec) {
|
||||
if (buildType == buildTypes.debug) {
|
||||
if (it instanceof NativeExecutableBinarySpec) {
|
||||
executable.file = toLocalBin(appendDebugSuffix(executable.file), targetPlatform)
|
||||
}
|
||||
} else
|
||||
if (buildType == buildTypes.release) {
|
||||
if (it instanceof NativeExecutableBinarySpec) {
|
||||
executable.file = toLocalBin(executable.file, targetPlatform)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
TestSuite(NativeLibrarySpec) { m ->
|
||||
sources {
|
||||
cpp {
|
||||
source {
|
||||
srcDir 'src'
|
||||
include '**/*.cpp'
|
||||
exclude 'Win*.cpp'
|
||||
exclude 'Driver.cpp'
|
||||
}
|
||||
exportedHeaders {
|
||||
srcDir 'src'
|
||||
}
|
||||
lib project: ':CppUnit', library: 'CppUnit', linkage: 'shared'
|
||||
lib project: ':Encodings', library: 'Encodings', linkage: 'shared'
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'shared'
|
||||
}
|
||||
}
|
||||
binaries.all {
|
||||
if (targetPlatform.operatingSystem.windows) {
|
||||
sources {
|
||||
platformWindows(CppSourceSet) {
|
||||
lib m.sources.cpp
|
||||
source {
|
||||
srcDir 'src'
|
||||
include 'Win*.cpp'
|
||||
exclude '*Driver.cpp'
|
||||
}
|
||||
exportedHeaders {
|
||||
srcDir 'src'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
testSuites {
|
||||
EncodingsTestSuite(org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteSpec) {
|
||||
testing $.components.TestSuite
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
withType(org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteBinarySpec) {
|
||||
lib project: ':CppUnit', library: 'CppUnit', linkage: 'shared'
|
||||
if (toolChain in VisualCpp) {
|
||||
if (buildType == buildTypes.debug) {
|
||||
cCompiler.args "/MDd"
|
||||
cppCompiler.args "/MDd"
|
||||
} else
|
||||
if (buildType == buildTypes.release) {
|
||||
cCompiler.args "/MD"
|
||||
cppCompiler.args "/MD"
|
||||
} else {
|
||||
throw new GradleException("Unknown buildType" + buildType)
|
||||
}
|
||||
}
|
||||
if (toolChain in Gcc) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
task testsuite { dependsOn "assemble" }
|
||||
|
@ -1,113 +0,0 @@
|
||||
model {
|
||||
components {
|
||||
Foundation(NativeLibrarySpec) { m ->
|
||||
sources {
|
||||
//
|
||||
// mc {
|
||||
// source {
|
||||
// srcDir 'src'
|
||||
// include '**/*.mc'
|
||||
// }
|
||||
// }
|
||||
rc {
|
||||
source {
|
||||
srcDir '..'
|
||||
include 'DLLVersion.rc'
|
||||
}
|
||||
}
|
||||
c {
|
||||
source {
|
||||
srcDir 'src'
|
||||
include '**/*.c'
|
||||
}
|
||||
exportedHeaders {
|
||||
srcDir 'include'
|
||||
}
|
||||
}
|
||||
cpp {
|
||||
source {
|
||||
srcDir 'src'
|
||||
include '**/*.cpp'
|
||||
exclude 'ByteOrder.cpp'
|
||||
exclude 'String.cpp'
|
||||
exclude 'SignalHandler.cpp'
|
||||
exclude 'Environment_*.cpp'
|
||||
exclude 'FPEnvironment_*.cpp'
|
||||
exclude 'Timezone_*.cpp'
|
||||
exclude 'DirectoryIterator_*.cpp'
|
||||
exclude 'File_*.cpp'
|
||||
exclude 'FileStream_*.cpp'
|
||||
exclude 'Path_*.cpp'
|
||||
exclude 'LogFile_*.cpp'
|
||||
exclude 'NamedEvent_*.cpp'
|
||||
exclude 'NamedMutex_*.cpp'
|
||||
exclude 'PipeImpl_*.cpp'
|
||||
exclude 'Process_*.cpp'
|
||||
exclude 'SharedMemory_*.cpp'
|
||||
exclude 'SharedLibrary_*.cpp'
|
||||
exclude 'Event_*.cpp'
|
||||
exclude 'Mutex_*.cpp'
|
||||
exclude 'RWLock_*.cpp'
|
||||
exclude 'Semaphore_*.cpp'
|
||||
exclude 'Thread_*.cpp'
|
||||
|
||||
exclude 'EventLogChannel.cpp'
|
||||
exclude 'UnWindows.cpp'
|
||||
exclude 'WindowsConsoleChannel.cpp'
|
||||
exclude 'AndroidLogChannel.cpp'
|
||||
exclude 'SyslogChannel.cpp'
|
||||
|
||||
}
|
||||
exportedHeaders {
|
||||
srcDir 'include'
|
||||
}
|
||||
}
|
||||
}
|
||||
binaries.all {
|
||||
sources {
|
||||
if (targetPlatform.operatingSystem.windows) {
|
||||
platformWindows(CppSourceSet) {
|
||||
lib m.sources.cpp
|
||||
source {
|
||||
srcDir 'src'
|
||||
include 'EventLogChannel.cpp'
|
||||
include 'UnWindows.cpp'
|
||||
include 'WindowsConsoleChannel.cpp'
|
||||
}
|
||||
}
|
||||
} else
|
||||
if (targetPlatform.operatingSystem.macOsX || targetPlatform.operatingSystem.linux) {
|
||||
platformNix(CppSourceSet) {
|
||||
lib m.sources.cpp
|
||||
source {
|
||||
srcDir 'src'
|
||||
include 'SignalHandler.cpp'
|
||||
include 'SyslogChannel.cpp'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
all {
|
||||
if (toolChain in VisualCpp) {
|
||||
linker.args "ws2_32.lib"
|
||||
linker.args "iphlpapi.lib"
|
||||
}
|
||||
}
|
||||
withType(NativeExecutableSpec) {
|
||||
}
|
||||
withType(StaticLibraryBinarySpec) {
|
||||
}
|
||||
withType(SharedLibraryBinarySpec) {
|
||||
if (toolChain in VisualCpp) {
|
||||
cCompiler.define "Foundation_EXPORTS"
|
||||
cppCompiler.define "Foundation_EXPORTS"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
task poco { dependsOn "assemble" }
|
||||
|
@ -1,146 +0,0 @@
|
||||
model {
|
||||
components {
|
||||
ActiveMethod(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'ActiveMethod/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
Activity(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'ActiveMethod/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
base64decode(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'base64decode/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
base64encode(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'base64encode/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
Benchmark(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'Benchmark/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
BinaryReaderWriter(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'BinaryReaderWriter/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
DateTime(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'DateTime/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
deflate(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'deflate/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
dir(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'dir/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
grep(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'grep/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
hmacmd5(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'hmacmd5/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
inflate(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'inflate/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
LineEndingConverter(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'LineEndingConverter/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
Logger(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'Logger/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
LogRotation(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'LogRotation/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
md5(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'md5/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
NotificationQueue(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'NotificationQueue/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
StringTokenizer(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'StringTokenizer/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
Timer(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'Timer/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
URI(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'URI/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
uuidgen(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'uuidgen/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
all {
|
||||
}
|
||||
withType(SharedLibraryBinarySpec) {
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'shared'
|
||||
}
|
||||
withType(StaticLibraryBinarySpec) {
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'static'
|
||||
}
|
||||
withType(NativeExecutableSpec) {
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'static'
|
||||
}
|
||||
}
|
||||
}
|
||||
task samples { dependsOn "assemble" }
|
||||
|
||||
|
@ -1,120 +0,0 @@
|
||||
import org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteSpec
|
||||
|
||||
model {
|
||||
components {
|
||||
/*
|
||||
withType(NativeComponentSpec) {
|
||||
binaries.withType(NativeBinarySpec) {
|
||||
if (buildType == buildTypes.debug) {
|
||||
if (it instanceof NativeExecutableBinarySpec) {
|
||||
executable.file = toLocalBin(appendDebugSuffix(executable.file), targetPlatform)
|
||||
}
|
||||
} else
|
||||
if (buildType == buildTypes.release) {
|
||||
if (it instanceof NativeExecutableBinarySpec) {
|
||||
executable.file = toLocalBin(executable.file, targetPlatform)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
TestLibrary(NativeLibrarySpec) {
|
||||
sources {
|
||||
cpp {
|
||||
source {
|
||||
srcDir 'src'
|
||||
include 'TestLibrary.cpp'
|
||||
include 'TestPlugin.cpp'
|
||||
}
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'shared'
|
||||
}
|
||||
}
|
||||
}
|
||||
TestApp(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp {
|
||||
source {
|
||||
srcDir 'src'
|
||||
include 'TestApp.cpp'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
TestSuite(NativeLibrarySpec) {
|
||||
sources {
|
||||
cpp {
|
||||
source {
|
||||
srcDir 'src'
|
||||
include '**/*.cpp'
|
||||
exclude '*Driver.cpp'
|
||||
exclude '*_WINCE.cpp'
|
||||
exclude 'TestApp*.cpp'
|
||||
}
|
||||
exportedHeaders {
|
||||
srcDir 'src'
|
||||
}
|
||||
lib project: ':CppUnit', library: 'CppUnit', linkage: 'shared'
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'shared'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
testSuites {
|
||||
FoundationTestSuite(org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteSpec) {
|
||||
testing $.components.TestSuite
|
||||
binaries.all {
|
||||
|
||||
String PATH = ""
|
||||
if (targetPlatform.name.startsWith("win"))
|
||||
PATH = tasks.run.environment.get("Path")
|
||||
else
|
||||
PATH = tasks.run.environment.get("PATH")
|
||||
|
||||
String testAppDir = project.buildDir
|
||||
testAppDir += "/exe" + "/testApp"
|
||||
testAppDir += "/" + targetPlatform.name
|
||||
if (buildType == buildTypes.debug)
|
||||
testAppDir += "/debug"
|
||||
else
|
||||
if (buildType == buildTypes.release)
|
||||
testAppDir += "/release"
|
||||
|
||||
|
||||
if (targetPlatform.name.startsWith("win"))
|
||||
testAppDir = testAppDir.replace('/', '\\')
|
||||
|
||||
|
||||
PATH = testAppDir + File.pathSeparator + PATH
|
||||
if (targetPlatform.name.startsWith("win"))
|
||||
tasks.run.environment "Path", PATH
|
||||
else
|
||||
tasks.run.environment "PATH", PATH
|
||||
}
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
withType(org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteBinarySpec) {
|
||||
lib project: ':CppUnit', library: 'CppUnit', linkage: 'shared'
|
||||
lib library: 'TestLibrary', linkage: 'shared'
|
||||
|
||||
if (toolChain in VisualCpp) {
|
||||
if (buildType == buildTypes.debug) {
|
||||
cCompiler.args "/MDd"
|
||||
cppCompiler.args "/MDd"
|
||||
} else
|
||||
if (buildType == buildTypes.release) {
|
||||
cCompiler.args "/MD"
|
||||
cppCompiler.args "/MD"
|
||||
}
|
||||
}
|
||||
if (toolChain in Gcc) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
task testsuite { dependsOn "assemble" }
|
||||
|
||||
tasks.withType(RunTestExecutable) {
|
||||
environment "POCO_BASE", "$rootDir"
|
||||
args test
|
||||
}
|
@ -1,48 +0,0 @@
|
||||
model {
|
||||
components {
|
||||
JSON(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 {
|
||||
all {
|
||||
if (toolChain in VisualCpp) {
|
||||
cCompiler.args "/TP"
|
||||
}
|
||||
}
|
||||
withType(SharedLibraryBinarySpec) {
|
||||
if (toolChain in VisualCpp) {
|
||||
cppCompiler.define "JSON_EXPORTS"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
task poco { dependsOn "assemble" }
|
||||
|
@ -1,27 +0,0 @@
|
||||
model {
|
||||
components {
|
||||
Benchmark(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'Benchmark/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':JSON', library: 'JSON'
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
all {
|
||||
}
|
||||
withType(SharedLibraryBinarySpec) {
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'shared'
|
||||
}
|
||||
withType(StaticLibraryBinarySpec) {
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'static'
|
||||
}
|
||||
withType(NativeExecutableSpec) {
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'static'
|
||||
}
|
||||
}
|
||||
}
|
||||
task samples { dependsOn "assemble" }
|
||||
|
||||
|
@ -1,63 +0,0 @@
|
||||
import org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteSpec
|
||||
|
||||
model {
|
||||
components {
|
||||
withType(NativeComponentSpec) {
|
||||
binaries.withType(NativeBinarySpec) {
|
||||
if (buildType == buildTypes.debug) {
|
||||
if (it instanceof NativeExecutableBinarySpec) {
|
||||
executable.file = toLocalBin(appendDebugSuffix(executable.file), targetPlatform)
|
||||
}
|
||||
} else
|
||||
if (buildType == buildTypes.release) {
|
||||
if (it instanceof NativeExecutableBinarySpec) {
|
||||
executable.file = toLocalBin(executable.file, targetPlatform)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
TestSuite(NativeLibrarySpec) {
|
||||
sources {
|
||||
cpp {
|
||||
source {
|
||||
srcDir 'src'
|
||||
include '**/*.cpp'
|
||||
exclude '*Driver.cpp'
|
||||
}
|
||||
exportedHeaders {
|
||||
srcDir 'src'
|
||||
}
|
||||
lib project: ':CppUnit', library: 'CppUnit', linkage: 'shared'
|
||||
lib project: ':JSON', library: 'JSON', linkage: 'shared'
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'shared'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
testSuites {
|
||||
JSONTestSuite(org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteSpec) {
|
||||
testing $.components.TestSuite
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
withType(org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteBinarySpec) {
|
||||
lib project: ':CppUnit', library: 'CppUnit', linkage: 'shared'
|
||||
if (toolChain in VisualCpp) {
|
||||
if (buildType == buildTypes.debug) {
|
||||
cCompiler.args "/MDd"
|
||||
cppCompiler.args "/MDd"
|
||||
} else
|
||||
if (buildType == buildTypes.release) {
|
||||
cCompiler.args "/MD"
|
||||
cppCompiler.args "/MD"
|
||||
} else {
|
||||
throw new GradleException("Unknown buildType" + buildType)
|
||||
}
|
||||
}
|
||||
if (toolChain in Gcc) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
task testsuite { dependsOn "assemble" }
|
||||
|
@ -1,37 +0,0 @@
|
||||
model {
|
||||
components {
|
||||
MongoDB(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 "MongoDB_EXPORTS"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
task poco { dependsOn "assemble" }
|
||||
|
||||
|
@ -1,28 +0,0 @@
|
||||
model {
|
||||
components {
|
||||
SQLToMongo(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'SQLToMongo/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':MongoDB', library: 'MongoDB'
|
||||
cpp.lib project: ':Net', library: 'Net'
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
all {
|
||||
}
|
||||
withType(SharedLibraryBinarySpec) {
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'shared'
|
||||
}
|
||||
withType(StaticLibraryBinarySpec) {
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'static'
|
||||
}
|
||||
withType(NativeExecutableSpec) {
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'static'
|
||||
}
|
||||
}
|
||||
}
|
||||
task samples { dependsOn "assemble" }
|
||||
|
||||
|
@ -1,63 +0,0 @@
|
||||
import org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteSpec
|
||||
|
||||
model {
|
||||
components {
|
||||
withType(NativeComponentSpec) {
|
||||
binaries.withType(NativeBinarySpec) {
|
||||
if (buildType == buildTypes.debug) {
|
||||
if (it instanceof NativeExecutableBinarySpec) {
|
||||
executable.file = toLocalBin(appendDebugSuffix(executable.file), targetPlatform)
|
||||
}
|
||||
} else
|
||||
if (buildType == buildTypes.release) {
|
||||
if (it instanceof NativeExecutableBinarySpec) {
|
||||
executable.file = toLocalBin(executable.file, targetPlatform)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
TestSuite(NativeLibrarySpec) {
|
||||
sources {
|
||||
cpp {
|
||||
source {
|
||||
srcDir 'src'
|
||||
include '**/*.cpp'
|
||||
exclude '*Driver.cpp'
|
||||
}
|
||||
exportedHeaders {
|
||||
srcDir 'src'
|
||||
}
|
||||
lib project: ':CppUnit', library: 'CppUnit', linkage: 'shared'
|
||||
lib project: ':MongoDB', library: 'MongoDB', linkage: 'shared'
|
||||
lib project: ':Net', library: 'Net', linkage: 'shared'
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'shared'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
testSuites {
|
||||
MongoDBTestSuite(org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteSpec) {
|
||||
testing $.components.TestSuite
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
withType(org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteBinarySpec) {
|
||||
lib project: ':CppUnit', library: 'CppUnit', linkage: 'shared'
|
||||
if (toolChain in VisualCpp) {
|
||||
if (buildType == buildTypes.debug) {
|
||||
cCompiler.args "/MDd"
|
||||
cppCompiler.args "/MDd"
|
||||
} else
|
||||
if (buildType == buildTypes.release) {
|
||||
cCompiler.args "/MD"
|
||||
cppCompiler.args "/MD"
|
||||
} else {
|
||||
throw new GradleException("Unknown buildType" + buildType)
|
||||
}
|
||||
}
|
||||
if (toolChain in Gcc) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
task testsuite { dependsOn "assemble" }
|
@ -1,40 +0,0 @@
|
||||
model {
|
||||
components {
|
||||
Net(NativeLibrarySpec) {
|
||||
sources {
|
||||
rc {
|
||||
source {
|
||||
srcDir '..'
|
||||
include 'DLLVersion.rc'
|
||||
}
|
||||
}
|
||||
cpp {
|
||||
source {
|
||||
srcDir 'src'
|
||||
include '**/*.cpp'
|
||||
}
|
||||
exportedHeaders {
|
||||
srcDir 'include'
|
||||
}
|
||||
lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
all {
|
||||
if (targetPlatform.operatingSystem.windows) {
|
||||
linker.args "ws2_32.lib"
|
||||
linker.args "iphlpapi.lib"
|
||||
}
|
||||
}
|
||||
withType(SharedLibraryBinarySpec) {
|
||||
if (toolChain in VisualCpp) {
|
||||
cppCompiler.define "Net_EXPORTS"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
task poco { dependsOn "assemble" }
|
||||
|
||||
|
@ -1,118 +0,0 @@
|
||||
model {
|
||||
components {
|
||||
dict(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'dict/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Net', library: 'Net'
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
download(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'download/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Net', library: 'Net'
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
EchoServer(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'EchoServer/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Net', library: 'Net'
|
||||
cpp.lib project: ':Util', library: 'Util'
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
HTTPFormServer(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'HTTPFormServer/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Net', library: 'Net'
|
||||
cpp.lib project: ':Util', library: 'Util'
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
httpget(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'httpget/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Net', library: 'Net'
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
HTTPLoadTest(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'HTTPLoadTest/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Net', library: 'Net'
|
||||
cpp.lib project: ':Util', library: 'Util'
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
HTTPTimeServer(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'HTTPTimeServer/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Net', library: 'Net'
|
||||
cpp.lib project: ':Util', library: 'Util'
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
ifconfig(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'ifconfig/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Net', library: 'Net'
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
Mail(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'Mail/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Net', library: 'Net'
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
Ping(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'Ping/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Net', library: 'Net'
|
||||
cpp.lib project: ':Util', library: 'Util'
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
SMTPLogger(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'SMTPLogger/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Net', library: 'Net'
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
TimeServer(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'TimeServer/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Net', library: 'Net'
|
||||
cpp.lib project: ':Util', library: 'Util'
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
WebSocketServer(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'WebSocketServer/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Net', library: 'Net'
|
||||
cpp.lib project: ':Util', library: 'Util'
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
all {
|
||||
}
|
||||
withType(SharedLibraryBinarySpec) {
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'shared'
|
||||
}
|
||||
withType(StaticLibraryBinarySpec) {
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'static'
|
||||
}
|
||||
withType(NativeExecutableSpec) {
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'static'
|
||||
}
|
||||
}
|
||||
}
|
||||
task samples { dependsOn "assemble" }
|
||||
|
||||
|
@ -1,69 +0,0 @@
|
||||
import org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteSpec
|
||||
|
||||
model {
|
||||
components {
|
||||
withType(NativeComponentSpec) {
|
||||
binaries.withType(NativeBinarySpec) {
|
||||
if (buildType == buildTypes.debug) {
|
||||
if (it instanceof NativeExecutableBinarySpec) {
|
||||
executable.file = toLocalBin(appendDebugSuffix(executable.file), targetPlatform)
|
||||
}
|
||||
} else
|
||||
if (buildType == buildTypes.release) {
|
||||
if (it instanceof NativeExecutableBinarySpec) {
|
||||
executable.file = toLocalBin(executable.file, targetPlatform)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
TestSuite(NativeLibrarySpec) {
|
||||
sources {
|
||||
cpp {
|
||||
source {
|
||||
srcDir 'src'
|
||||
include '**/*.cpp'
|
||||
exclude '*Driver.cpp'
|
||||
}
|
||||
exportedHeaders {
|
||||
srcDir 'src'
|
||||
}
|
||||
lib project: ':CppUnit', library: 'CppUnit', linkage: 'shared'
|
||||
lib project: ':Net', library: 'Net', linkage: 'shared'
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'shared'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
testSuites {
|
||||
NetTestSuite(org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteSpec) {
|
||||
testing $.components.TestSuite
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
all {
|
||||
if (targetPlatform.operatingSystem.windows) {
|
||||
linker.args "ws2_32.lib"
|
||||
linker.args "iphlpapi.lib"
|
||||
}
|
||||
}
|
||||
withType(org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteBinarySpec) {
|
||||
lib project: ':CppUnit', library: 'CppUnit', linkage: 'shared'
|
||||
if (toolChain in VisualCpp) {
|
||||
if (buildType == buildTypes.debug) {
|
||||
cCompiler.args "/MDd"
|
||||
cppCompiler.args "/MDd"
|
||||
} else
|
||||
if (buildType == buildTypes.release) {
|
||||
cCompiler.args "/MD"
|
||||
cppCompiler.args "/MD"
|
||||
} else {
|
||||
throw new GradleException("Unknown buildType" + buildType)
|
||||
}
|
||||
}
|
||||
if (toolChain in Gcc) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
task testsuite { dependsOn "assemble" }
|
||||
|
@ -1,41 +0,0 @@
|
||||
model {
|
||||
components {
|
||||
NetSSL(NativeLibrarySpec) {
|
||||
sources {
|
||||
rc {
|
||||
source {
|
||||
srcDir '..'
|
||||
include 'DLLVersion.rc'
|
||||
}
|
||||
}
|
||||
cpp {
|
||||
source {
|
||||
srcDir 'src'
|
||||
include '**/*.cpp'
|
||||
}
|
||||
exportedHeaders {
|
||||
srcDir 'include'
|
||||
}
|
||||
lib library: 'ssl'
|
||||
lib library: 'crypto'
|
||||
lib project: ':Crypto', library: 'Crypto'
|
||||
lib project: ':Net', library: 'Net'
|
||||
lib project: ':Util', library: 'Util'
|
||||
lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
withType(SharedLibraryBinarySpec) {
|
||||
if (toolChain in VisualCpp) {
|
||||
cppCompiler.define "NetSSL_EXPORTS"
|
||||
}
|
||||
}
|
||||
withType(StaticLibraryBinarySpec) {
|
||||
}
|
||||
}
|
||||
}
|
||||
task poco { dependsOn "assemble" }
|
||||
|
||||
|
@ -1,68 +0,0 @@
|
||||
model {
|
||||
components {
|
||||
download(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'download/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Net', library: 'Net'
|
||||
cpp.lib project: ':NetSSL_OpenSSL', library: 'NetSSL'
|
||||
cpp.lib project: ':Crypto', library: 'Crypto'
|
||||
cpp.lib library: 'crypto'
|
||||
cpp.lib library: 'ssl'
|
||||
cpp.lib project: ':Util', library: 'Util'
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
HTTPSTimeServer(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'EchoServer/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Net', library: 'Net'
|
||||
cpp.lib project: ':NetSSL_OpenSSL', library: 'NetSSL'
|
||||
cpp.lib project: ':Crypto', library: 'Crypto'
|
||||
cpp.lib library: 'crypto'
|
||||
cpp.lib library: 'ssl'
|
||||
cpp.lib project: ':Util', library: 'Util'
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
Mail(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'HTTPFormServer/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Net', library: 'Net'
|
||||
cpp.lib project: ':NetSSL_OpenSSL', library: 'NetSSL'
|
||||
cpp.lib project: ':Crypto', library: 'Crypto'
|
||||
cpp.lib library: 'crypto'
|
||||
cpp.lib library: 'ssl'
|
||||
cpp.lib project: ':Util', library: 'Util'
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
TwitterClient(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'httpget/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Net', library: 'Net'
|
||||
cpp.lib project: ':NetSSL_OpenSSL', library: 'NetSSL'
|
||||
cpp.lib project: ':Crypto', library: 'Crypto'
|
||||
cpp.lib library: 'crypto'
|
||||
cpp.lib library: 'ssl'
|
||||
cpp.lib project: ':Util', library: 'Util'
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
all {
|
||||
}
|
||||
withType(SharedLibraryBinarySpec) {
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'shared'
|
||||
}
|
||||
withType(StaticLibraryBinarySpec) {
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'static'
|
||||
}
|
||||
withType(NativeExecutableSpec) {
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'static'
|
||||
}
|
||||
}
|
||||
}
|
||||
task samples { dependsOn "assemble" }
|
||||
|
||||
|
@ -1,74 +0,0 @@
|
||||
import org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteSpec
|
||||
|
||||
model {
|
||||
components {
|
||||
withType(NativeComponentSpec) {
|
||||
binaries.withType(NativeBinarySpec) {
|
||||
if (buildType == buildTypes.debug) {
|
||||
if (it instanceof NativeExecutableBinarySpec) {
|
||||
executable.file = toLocalBin(appendDebugSuffix(executable.file), targetPlatform)
|
||||
}
|
||||
} else
|
||||
if (buildType == buildTypes.release) {
|
||||
if (it instanceof NativeExecutableBinarySpec) {
|
||||
executable.file = toLocalBin(executable.file, targetPlatform)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
TestSuite(NativeLibrarySpec) {
|
||||
sources {
|
||||
cpp {
|
||||
source {
|
||||
srcDir 'src'
|
||||
include '**/*.cpp'
|
||||
exclude '*Driver.cpp'
|
||||
}
|
||||
exportedHeaders {
|
||||
srcDir 'src'
|
||||
}
|
||||
lib project: ':CppUnit', library: 'CppUnit'
|
||||
lib library: 'crypto'
|
||||
lib library: 'ssl'
|
||||
lib project: ':Crypto', library: 'Crypto'
|
||||
lib project: ':Net', library: 'Net'
|
||||
lib project: ':NetSSL_OpenSSL', library: 'NetSSL'
|
||||
lib project: ':Util', library: 'Util'
|
||||
lib project: ':JSON', library: 'JSON'
|
||||
lib project: ':XML', library: 'XML'
|
||||
lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
binaries.all {
|
||||
if (targetPlatform.operatingSystem.windows) {
|
||||
lib library: 'WS2_32', linkage: 'static'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
testSuites {
|
||||
NetSSLTestSuite(org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteSpec) {
|
||||
testing $.components.TestSuite
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
withType(org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteBinarySpec) {
|
||||
lib project: ':CppUnit', library: 'CppUnit', linkage: 'shared'
|
||||
if (toolChain in VisualCpp) {
|
||||
if (buildType == buildTypes.debug) {
|
||||
cCompiler.args "/MDd"
|
||||
cppCompiler.args "/MDd"
|
||||
} else
|
||||
if (buildType == buildTypes.release) {
|
||||
cCompiler.args "/MD"
|
||||
cppCompiler.args "/MD"
|
||||
} else {
|
||||
throw new GradleException("Unknown buildType" + buildType)
|
||||
}
|
||||
}
|
||||
if (toolChain in Gcc) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
task testsuite { dependsOn "assemble" }
|
@ -1,46 +0,0 @@
|
||||
model {
|
||||
components {
|
||||
NetSSLWin(NativeLibrarySpec) {
|
||||
binaries.all {
|
||||
if (targetPlatform.operatingSystem.windows) {
|
||||
sources {
|
||||
rc(WindowsResourceSet) {
|
||||
source {
|
||||
srcDir '..'
|
||||
include 'DLLVersion.rc'
|
||||
}
|
||||
}
|
||||
cpp(CppSourceSet) {
|
||||
source {
|
||||
srcDir 'src'
|
||||
include '**/*.cpp'
|
||||
}
|
||||
exportedHeaders {
|
||||
srcDir 'include'
|
||||
}
|
||||
lib project: ':Crypto', library: 'Crypto'
|
||||
lib project: ':Net', library: 'Net'
|
||||
lib project: ':Util', library: 'Util'
|
||||
lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
all {
|
||||
if (toolChain in VisualCpp) {
|
||||
linker.args "Crypt32.lib"
|
||||
linker.args 'ws2_32.lib'
|
||||
linker.args 'iphlpapi.lib'
|
||||
}
|
||||
}
|
||||
withType(SharedLibraryBinarySpec) {
|
||||
if (toolChain in VisualCpp) {
|
||||
cppCompiler.define "NetSSL_Win_EXPORTS"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
task poco { dependsOn "assemble" }
|
@ -1,56 +0,0 @@
|
||||
model {
|
||||
components {
|
||||
download(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'dict/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Net', library: 'Net'
|
||||
cpp.lib project: ':NetSSL_OpenSSL', library: 'NetSSL'
|
||||
cpp.lib project: ':Crypto', library: 'Crypto'
|
||||
cpp.lib library: 'crypto'
|
||||
cpp.lib library: 'ssl'
|
||||
cpp.lib project: ':Util', library: 'Util'
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
HTTPSTimeServer(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'download/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Net', library: 'Net'
|
||||
cpp.lib project: ':NetSSL_OpenSSL', library: 'NetSSL'
|
||||
cpp.lib project: ':Crypto', library: 'Crypto'
|
||||
cpp.lib library: 'crypto'
|
||||
cpp.lib library: 'ssl'
|
||||
cpp.lib project: ':Util', library: 'Util'
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
Mail(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'EchoServer/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Net', library: 'Net'
|
||||
cpp.lib project: ':NetSSL_OpenSSL', library: 'NetSSL'
|
||||
cpp.lib project: ':Crypto', library: 'Crypto'
|
||||
cpp.lib library: 'crypto'
|
||||
cpp.lib library: 'ssl'
|
||||
cpp.lib project: ':Util', library: 'Util'
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
all {
|
||||
}
|
||||
withType(SharedLibraryBinarySpec) {
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'shared'
|
||||
}
|
||||
withType(StaticLibraryBinarySpec) {
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'static'
|
||||
}
|
||||
withType(NativeExecutableSpec) {
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'static'
|
||||
}
|
||||
}
|
||||
}
|
||||
task samples { dependsOn "assemble" }
|
||||
|
||||
|
@ -1,70 +0,0 @@
|
||||
import org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteSpec
|
||||
|
||||
model {
|
||||
components {
|
||||
withType(NativeComponentSpec) {
|
||||
binaries.withType(NativeBinarySpec) {
|
||||
if (buildType == buildTypes.debug) {
|
||||
if (it instanceof NativeExecutableBinarySpec) {
|
||||
executable.file = toLocalBin(appendDebugSuffix(executable.file), targetPlatform)
|
||||
}
|
||||
} else
|
||||
if (buildType == buildTypes.release) {
|
||||
if (it instanceof NativeExecutableBinarySpec) {
|
||||
executable.file = toLocalBin(executable.file, targetPlatform)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
TestSuite(NativeLibrarySpec) {
|
||||
sources {
|
||||
cpp {
|
||||
source {
|
||||
srcDir 'src'
|
||||
include '**/*.cpp'
|
||||
exclude '*Driver.cpp'
|
||||
}
|
||||
exportedHeaders {
|
||||
srcDir 'src'
|
||||
}
|
||||
lib project: ':CppUnit', library: 'CppUnit'
|
||||
lib library: 'crypto'
|
||||
lib library: 'ssl'
|
||||
lib project: ':Crypto', library: 'Crypto'
|
||||
lib project: ':Net', library: 'Net'
|
||||
lib project: ':NetSSL_OpenSSL', library: 'NetSSL'
|
||||
lib project: ':Util', library: 'Util'
|
||||
lib project: ':JSON', library: 'JSON'
|
||||
lib project: ':XML', library: 'XML'
|
||||
lib project: ':Foundation', library: 'Foundation'
|
||||
lib library: 'WS2_32', linkage: 'static'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
testSuites {
|
||||
NetSSLTestSuite(org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteSpec) {
|
||||
testing $.components.TestSuite
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
withType(org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteBinarySpec) {
|
||||
lib project: ':CppUnit', library: 'CppUnit', linkage: 'shared'
|
||||
if (toolChain in VisualCpp) {
|
||||
if (buildType == buildTypes.debug) {
|
||||
cCompiler.args "/MDd"
|
||||
cppCompiler.args "/MDd"
|
||||
} else
|
||||
if (buildType == buildTypes.release) {
|
||||
cCompiler.args "/MD"
|
||||
cppCompiler.args "/MD"
|
||||
} else {
|
||||
throw new GradleException("Unknown buildType" + buildType)
|
||||
}
|
||||
}
|
||||
if (toolChain in Gcc) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
task testsuite { dependsOn "assemble" }
|
@ -1,38 +0,0 @@
|
||||
model {
|
||||
components {
|
||||
PDF(NativeLibrarySpec) {
|
||||
sources {
|
||||
c {
|
||||
source {
|
||||
srcDir 'src'
|
||||
include '**/*.c'
|
||||
}
|
||||
exportedHeaders {
|
||||
srcDirs 'include', 'include/Poco/PDF'
|
||||
}
|
||||
}
|
||||
cpp {
|
||||
source {
|
||||
srcDir 'src'
|
||||
include '**/*.cpp'
|
||||
}
|
||||
exportedHeaders {
|
||||
srcDirs 'include', 'include/Poco/PDF'
|
||||
}
|
||||
lib project: ':Util', library: 'Util'
|
||||
lib project: ':XML', library: 'XML'
|
||||
lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
withType(SharedLibraryBinarySpec) {
|
||||
if (toolChain in VisualCpp) {
|
||||
cppCompiler.define "PDF_EXPORTS"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
task poco { dependsOn "assemble" }
|
||||
|
@ -1,34 +0,0 @@
|
||||
model {
|
||||
components {
|
||||
Image(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'Image/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':PDF', library: 'PDF'
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
Text(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'Image/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':PDF', library: 'PDF'
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
all {
|
||||
}
|
||||
withType(SharedLibraryBinarySpec) {
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'shared'
|
||||
}
|
||||
withType(StaticLibraryBinarySpec) {
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'static'
|
||||
}
|
||||
withType(NativeExecutableSpec) {
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'static'
|
||||
}
|
||||
}
|
||||
}
|
||||
task samples { dependsOn "assemble" }
|
||||
|
||||
|
@ -1,61 +0,0 @@
|
||||
import org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteSpec
|
||||
|
||||
model {
|
||||
components {
|
||||
withType(NativeComponentSpec) {
|
||||
binaries.withType(NativeBinarySpec) {
|
||||
if (buildType == buildTypes.debug) {
|
||||
if (it instanceof NativeExecutableBinarySpec) {
|
||||
executable.file = toLocalBin(appendDebugSuffix(executable.file), targetPlatform)
|
||||
}
|
||||
} else
|
||||
if (buildType == buildTypes.release) {
|
||||
if (it instanceof NativeExecutableBinarySpec) {
|
||||
executable.file = toLocalBin(executable.file, targetPlatform)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
TestSuite(NativeLibrarySpec) {
|
||||
sources {
|
||||
cpp {
|
||||
source {
|
||||
srcDir 'src'
|
||||
include '**/*.cpp'
|
||||
exclude '*Driver.cpp'
|
||||
}
|
||||
exportedHeaders {
|
||||
srcDir 'src'
|
||||
}
|
||||
lib project: ':CppUnit', library: 'CppUnit'
|
||||
lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
testSuites {
|
||||
PDFTestSuite(org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteSpec) {
|
||||
testing $.components.TestSuite
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
withType(org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteBinarySpec) {
|
||||
lib project: ':CppUnit', library: 'CppUnit', linkage: 'shared'
|
||||
if (toolChain in VisualCpp) {
|
||||
if (buildType == buildTypes.debug) {
|
||||
cCompiler.args "/MDd"
|
||||
cppCompiler.args "/MDd"
|
||||
} else
|
||||
if (buildType == buildTypes.release) {
|
||||
cCompiler.args "/MD"
|
||||
cppCompiler.args "/MD"
|
||||
} else {
|
||||
throw new GradleException("Unknown buildType" + buildType)
|
||||
}
|
||||
}
|
||||
if (toolChain in Gcc) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
task testsuite { dependsOn "assemble" }
|
@ -1,28 +0,0 @@
|
||||
model {
|
||||
components {
|
||||
File2page(NativeExecutableSpec) {
|
||||
baseName 'f2pc'
|
||||
sources {
|
||||
cpp {
|
||||
source {
|
||||
srcDir 'src'
|
||||
include '**/*.cpp'
|
||||
}
|
||||
exportedHeaders {
|
||||
srcDir 'include'
|
||||
}
|
||||
lib project: ':Net', library: 'Net'
|
||||
lib project: ':Util', library: 'Util'
|
||||
lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
binaries.withType(NativeExecutableSpec) {
|
||||
lib project: ':Net', library: 'Net', linkage: 'shared'
|
||||
lib project: ':Util', library: 'Util', linkage: 'shared'
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'shared'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,25 +0,0 @@
|
||||
model {
|
||||
components {
|
||||
cpspc(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp {
|
||||
source {
|
||||
srcDir 'src'
|
||||
include '**/*.cpp'
|
||||
}
|
||||
exportedHeaders {
|
||||
srcDir 'include'
|
||||
}
|
||||
lib project: ':Net', library: 'Net', linkage: 'shared'
|
||||
lib project: ':Util', library: 'Util', linkage: 'shared'
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'shared'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
}
|
||||
}
|
||||
task poco { dependsOn "assemble" }
|
||||
|
||||
|
@ -1,28 +0,0 @@
|
||||
model {
|
||||
components {
|
||||
HTTPTimeServer(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'HTTPTimeServer/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Net', library: 'Net'
|
||||
cpp.lib project: ':Util', library: 'Util'
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
all {
|
||||
}
|
||||
withType(SharedLibraryBinarySpec) {
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'shared'
|
||||
}
|
||||
withType(StaticLibraryBinarySpec) {
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'static'
|
||||
}
|
||||
withType(NativeExecutableSpec) {
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'static'
|
||||
}
|
||||
}
|
||||
}
|
||||
task samples { dependsOn "assemble" }
|
||||
|
||||
|
@ -1,44 +0,0 @@
|
||||
model {
|
||||
components {
|
||||
withType(NativeComponentSpec) {
|
||||
binaries.withType(NativeBinarySpec) {
|
||||
if (buildType == buildTypes.debug) {
|
||||
if (it instanceof NativeExecutableBinarySpec) {
|
||||
executable.file = toLocalBin(appendDebugSuffix(executable.file), targetPlatform)
|
||||
}
|
||||
} else
|
||||
if (buildType == buildTypes.release) {
|
||||
if (it instanceof NativeExecutableBinarySpec) {
|
||||
executable.file = toLocalBin(executable.file, targetPlatform)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
PocoDoc(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp {
|
||||
source {
|
||||
srcDir 'src'
|
||||
include '**/*.cpp'
|
||||
}
|
||||
exportedHeaders {
|
||||
srcDir 'include'
|
||||
}
|
||||
lib project: ':CppParser', library: 'CppParser'
|
||||
lib project: ':Util', library: 'Util'
|
||||
lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
withType(NativeExecutableSpec) {
|
||||
if (toolChain in VisualCpp) {
|
||||
}
|
||||
if (toolChain in Gcc) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,138 +0,0 @@
|
||||
<AppConfig>
|
||||
<PocoDoc>
|
||||
<files>
|
||||
<include>
|
||||
${PocoBuild}/*/include/Poco/*.h
|
||||
${PocoBuild}/*/include/Poco/*/*.h
|
||||
${PocoBuild}/*/include/Poco/*/*/*.h
|
||||
${PocoBuild}/*/include/Poco/*/*.h
|
||||
${PocoBuild}/*/*/include/Poco/*/*/*.h
|
||||
</include>
|
||||
<exclude>
|
||||
*_*.h,
|
||||
expat*.h,
|
||||
zconf.h,
|
||||
zlib.h,
|
||||
Alignment.h,
|
||||
QName.h,
|
||||
CppUnitException.h,
|
||||
Constants.h,
|
||||
inffast.h,
|
||||
PDF/include/*.h,
|
||||
CppParser/include/*.h,
|
||||
Data/include/*.h
|
||||
Data/*/include/*.h
|
||||
</exclude>
|
||||
</files>
|
||||
<pages>
|
||||
${PocoBuild}/doc/*.page,
|
||||
${PocoBuild}/*/doc/*.page
|
||||
${PocoBuild}/*/*/doc/*.page
|
||||
</pages>
|
||||
<resources>
|
||||
${PocoBase}/PocoDoc/resources/css,
|
||||
${PocoBase}/PocoDoc/resources/js,
|
||||
${PocoBase}/PocoDoc/resources/images,
|
||||
${PocoBase}/PocoDoc/resources/index.thtml,
|
||||
${PocoBuild}/*/doc/images
|
||||
</resources>
|
||||
<compiler>
|
||||
<windows>
|
||||
<exec>cl.exe</exec>
|
||||
<options>
|
||||
${Includes},
|
||||
/I${PocoBase}/openssl/include
|
||||
/I${VCH}/include,
|
||||
/I${WDK}/shared
|
||||
/I${WDK}/um
|
||||
/I${WDK}/ucrt
|
||||
/nologo,
|
||||
/D_DEBUG,
|
||||
/E,
|
||||
/C,
|
||||
/DPOCO_NO_GCC_API_ATTRIBUTE,
|
||||
/DPOCO_NO_WINDOWS_H
|
||||
</options>
|
||||
<path>${CLP}</path>
|
||||
<usePipe>true</usePipe>
|
||||
</windows>
|
||||
<unix>
|
||||
<exec>${CXX}</exec>
|
||||
<options>
|
||||
${CXXFLAGS}
|
||||
${Includes},
|
||||
-I/usr/local/mysql/include,
|
||||
-I/usr/include/mysql,
|
||||
-I/usr/include/postgresql,
|
||||
-D_DEBUG,
|
||||
-E,
|
||||
-C,
|
||||
-DPOCO_NO_GCC_API_ATTRIBUTE,
|
||||
-DPOCO_NO_WINDOWS_H
|
||||
</options>
|
||||
<path></path>
|
||||
<usePipe>true</usePipe>
|
||||
</unix>
|
||||
</compiler>
|
||||
<language>EN</language>
|
||||
<charset>utf-8</charset>
|
||||
<software>POCO C++ Libraries</software>
|
||||
<company>Applied Informatics Software Engineering GmbH and Contributors</company>
|
||||
<companyURI>http://pocoproject.org/</companyURI>
|
||||
</PocoDoc>
|
||||
<Translations>
|
||||
<EN>
|
||||
<All_Base_Classes>All Base Classes</All_Base_Classes>
|
||||
<All_Symbols>All Symbols</All_Symbols>
|
||||
<Anonymous>Anonymous</Anonymous>
|
||||
<Constructors>Constructors</Constructors>
|
||||
<Class>Class</Class>
|
||||
<Deprecated>Deprecated</Deprecated>
|
||||
<Description>Description</Description>
|
||||
<Destructor>Destructor</Destructor>
|
||||
<Direct_Base_Classes>Direct Base Classes</Direct_Base_Classes>
|
||||
<Enumerations>Enumerations</Enumerations>
|
||||
<Functions>Functions</Functions>
|
||||
<Header>Header</Header>
|
||||
<iff>if and only if</iff>
|
||||
<Inheritance>Inheritance</Inheritance>
|
||||
<Inherited_Functions>Inherited Functions</Inherited_Functions>
|
||||
<is_deprecated>is deprecated and should no longer be used</is_deprecated>
|
||||
<Known_Derived_Classes>Known Derived Classes</Known_Derived_Classes>
|
||||
<Library>Library</Library>
|
||||
<Member_Functions>Member Functions</Member_Functions>
|
||||
<Member_Summary>Member Summary</Member_Summary>
|
||||
<more>more...</more>
|
||||
<Namespaces>Namespaces</Namespaces>
|
||||
<Namespace>Namespace</Namespace>
|
||||
<Nested_Classes>Nested Classes</Nested_Classes>
|
||||
<Package>Package</Package>
|
||||
<Packages>Packages</Packages>
|
||||
<Package_Index>Package Index</Package_Index>
|
||||
<See_also>See also</See_also>
|
||||
<Struct>Struct</Struct>
|
||||
<Symbol_Index>Symbol Index</Symbol_Index>
|
||||
<This>This</This>
|
||||
<Types>Types</Types>
|
||||
<Variables>Variables</Variables>
|
||||
<TOC>Contents</TOC>
|
||||
<Guides>User Guides and Tutorials</Guides>
|
||||
<AAAIntroduction>Introduction</AAAIntroduction>
|
||||
</EN>
|
||||
</Translations>
|
||||
|
||||
<logging>
|
||||
<loggers>
|
||||
<root>
|
||||
<channel>c1</channel>
|
||||
<level>warning</level>
|
||||
</root>
|
||||
</loggers>
|
||||
<channels>
|
||||
<c1>
|
||||
<class>ConsoleChannel</class>
|
||||
<pattern>%s: [%p] %t</pattern>
|
||||
</c1>
|
||||
</channels>
|
||||
</logging>
|
||||
</AppConfig>
|
@ -1,37 +0,0 @@
|
||||
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" }
|
||||
|
||||
|
@ -1,63 +0,0 @@
|
||||
import org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteSpec
|
||||
|
||||
model {
|
||||
components {
|
||||
withType(NativeComponentSpec) {
|
||||
binaries.withType(NativeBinarySpec) {
|
||||
if (buildType == buildTypes.debug) {
|
||||
if (it instanceof NativeExecutableBinarySpec) {
|
||||
executable.file = toLocalBin(appendDebugSuffix(executable.file), targetPlatform)
|
||||
}
|
||||
} else
|
||||
if (buildType == buildTypes.release) {
|
||||
if (it instanceof NativeExecutableBinarySpec) {
|
||||
executable.file = toLocalBin(executable.file, targetPlatform)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
TestSuite(NativeLibrarySpec) {
|
||||
sources {
|
||||
cpp {
|
||||
source {
|
||||
srcDir 'src'
|
||||
include '**/*.cpp'
|
||||
exclude '*Driver.cpp'
|
||||
}
|
||||
exportedHeaders {
|
||||
srcDir 'src'
|
||||
}
|
||||
lib project: ':CppUnit', library: 'CppUnit', linkage: 'shared'
|
||||
lib project: ':Redis', library: 'Redis', linkage: 'shared'
|
||||
lib project: ':Net', library: 'Net', linkage: 'shared'
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'shared'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
testSuites {
|
||||
RedisTestSuite(org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteSpec) {
|
||||
testing $.components.TestSuite
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
withType(org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteBinarySpec) {
|
||||
lib project: ':CppUnit', library: 'CppUnit', linkage: 'shared'
|
||||
if (toolChain in VisualCpp) {
|
||||
if (buildType == buildTypes.debug) {
|
||||
cCompiler.args "/MDd"
|
||||
cppCompiler.args "/MDd"
|
||||
} else
|
||||
if (buildType == buildTypes.release) {
|
||||
cCompiler.args "/MD"
|
||||
cppCompiler.args "/MD"
|
||||
} else {
|
||||
throw new GradleException("Unknown buildType" + buildType)
|
||||
}
|
||||
}
|
||||
if (toolChain in Gcc) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
task testsuite { dependsOn "assemble" }
|
@ -1,26 +0,0 @@
|
||||
model {
|
||||
components {
|
||||
un7zip(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'dict/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
all {
|
||||
}
|
||||
withType(SharedLibraryBinarySpec) {
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'shared'
|
||||
}
|
||||
withType(StaticLibraryBinarySpec) {
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'static'
|
||||
}
|
||||
withType(NativeExecutableSpec) {
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'static'
|
||||
}
|
||||
}
|
||||
}
|
||||
task samples { dependsOn "assemble" }
|
||||
|
||||
|
@ -1,60 +0,0 @@
|
||||
model {
|
||||
components {
|
||||
Util(NativeLibrarySpec) { m ->
|
||||
sources {
|
||||
rc {
|
||||
source {
|
||||
srcDir '..'
|
||||
include 'DLLVersion.rc'
|
||||
}
|
||||
}
|
||||
c {
|
||||
source {
|
||||
srcDir 'src'
|
||||
include '**/*.c'
|
||||
}
|
||||
exportedHeaders {
|
||||
srcDir 'include'
|
||||
}
|
||||
}
|
||||
cpp {
|
||||
source {
|
||||
srcDir 'src'
|
||||
include '**/*.cpp'
|
||||
exclude '**/Win*.cpp'
|
||||
}
|
||||
exportedHeaders {
|
||||
srcDir 'include'
|
||||
}
|
||||
lib project: ':Foundation', library: 'Foundation'
|
||||
lib project: ':XML', library: 'XML'
|
||||
lib project: ':JSON', library: 'JSON'
|
||||
}
|
||||
}
|
||||
binaries.all {
|
||||
if (targetPlatform.operatingSystem.windows) {
|
||||
sources {
|
||||
platformWindows(CppSourceSet) {
|
||||
lib m.sources.cpp
|
||||
source {
|
||||
srcDir 'src'
|
||||
include '**/Win*.cpp'
|
||||
}
|
||||
lib project: ':Foundation', library: 'Foundation'
|
||||
lib project: ':XML', library: 'XML'
|
||||
lib project: ':JSON', library: 'JSON'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
withType(SharedLibraryBinarySpec) {
|
||||
if (toolChain in VisualCpp) {
|
||||
cppCompiler.define "Util_EXPORTS"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
task poco { dependsOn "assemble" }
|
@ -1,48 +0,0 @@
|
||||
model {
|
||||
components {
|
||||
pkill(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'pkill/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Util', library: 'Util'
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
SampleApp(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'SampleApp/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Util', library: 'Util'
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
SampleServer(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'SampleServer/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Util', library: 'Util'
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
Units(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'Units/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Util', library: 'Util'
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
all {
|
||||
}
|
||||
withType(SharedLibraryBinarySpec) {
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'shared'
|
||||
}
|
||||
withType(StaticLibraryBinarySpec) {
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'static'
|
||||
}
|
||||
withType(NativeExecutableSpec) {
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'static'
|
||||
}
|
||||
}
|
||||
}
|
||||
task samples { dependsOn "assemble" }
|
||||
|
||||
|
@ -1,86 +0,0 @@
|
||||
import org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteSpec
|
||||
|
||||
model {
|
||||
components {
|
||||
withType(NativeComponentSpec) {
|
||||
binaries.withType(NativeBinarySpec) {
|
||||
if (buildType == buildTypes.debug) {
|
||||
if (it instanceof NativeExecutableBinarySpec) {
|
||||
executable.file = toLocalBin(appendDebugSuffix(executable.file), targetPlatform)
|
||||
}
|
||||
} else
|
||||
if (buildType == buildTypes.release) {
|
||||
if (it instanceof NativeExecutableBinarySpec) {
|
||||
executable.file = toLocalBin(executable.file, targetPlatform)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
TestSuite(NativeLibrarySpec) { m ->
|
||||
sources {
|
||||
cpp {
|
||||
source {
|
||||
srcDir 'src'
|
||||
include '**/*.cpp'
|
||||
exclude 'Win*.cpp'
|
||||
exclude 'Driver.cpp'
|
||||
}
|
||||
exportedHeaders {
|
||||
srcDir 'src'
|
||||
}
|
||||
lib project: ':CppUnit', library: 'CppUnit', linkage: 'shared'
|
||||
lib project: ':JSON', library: 'JSON', linkage: 'shared'
|
||||
lib project: ':XML', library: 'XML', linkage: 'shared'
|
||||
lib project: ':Util', library: 'Util', linkage: 'shared'
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'shared'
|
||||
}
|
||||
}
|
||||
binaries.all {
|
||||
if (targetPlatform.operatingSystem.windows) {
|
||||
sources {
|
||||
platformWindows(CppSourceSet) {
|
||||
lib m.sources.cpp
|
||||
source {
|
||||
srcDir 'src'
|
||||
include 'Win*.cpp'
|
||||
exclude '*Driver.cpp'
|
||||
}
|
||||
exportedHeaders {
|
||||
srcDir 'src'
|
||||
}
|
||||
lib project: ':CppUnit', library: 'CppUnit', linkage: 'shared'
|
||||
lib project: ':Util', library: 'Util', linkage: 'shared'
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'shared'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
testSuites {
|
||||
UtilTestSuite(org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteSpec) {
|
||||
testing $.components.TestSuite
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
withType(org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteBinarySpec) {
|
||||
lib project: ':CppUnit', library: 'CppUnit', linkage: 'shared'
|
||||
if (toolChain in VisualCpp) {
|
||||
if (buildType == buildTypes.debug) {
|
||||
cCompiler.args "/MDd"
|
||||
cppCompiler.args "/MDd"
|
||||
} else
|
||||
if (buildType == buildTypes.release) {
|
||||
cCompiler.args "/MD"
|
||||
cppCompiler.args "/MD"
|
||||
} else {
|
||||
throw new GradleException("Unknown buildType" + buildType)
|
||||
}
|
||||
}
|
||||
if (toolChain in Gcc) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
task testsuite { dependsOn "assemble" }
|
||||
|
@ -1,57 +0,0 @@
|
||||
model {
|
||||
components {
|
||||
XML(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 {
|
||||
all {
|
||||
cCompiler.define "XML_STATIC"
|
||||
cCompiler.define "XML_NS"
|
||||
cCompiler.define "XML_DTD"
|
||||
cCompiler.define "HAVE_EXPAT_CONFIG_H"
|
||||
|
||||
cppCompiler.define "XML_STATIC"
|
||||
cppCompiler.define "XML_NS"
|
||||
cppCompiler.define "XML_DTD"
|
||||
cppCompiler.define "HAVE_EXPAT_CONFIG_H"
|
||||
}
|
||||
withType(SharedLibraryBinarySpec) {
|
||||
if (toolChain in VisualCpp) {
|
||||
cCompiler.define "XML_EXPORTS"
|
||||
cppCompiler.define "XML_EXPORTS"
|
||||
}
|
||||
}
|
||||
withType(StaticLibraryBinarySpec) {
|
||||
}
|
||||
}
|
||||
}
|
||||
task poco { dependsOn "assemble" }
|
||||
|
@ -1,49 +0,0 @@
|
||||
model {
|
||||
components {
|
||||
data(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'data/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':XML', library: 'XML', linkage: 'shared'
|
||||
cpp.lib project: ':Foundation', library: 'Foundation', linkage: 'shared'
|
||||
}
|
||||
}
|
||||
DOMParser(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'DOMParser/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':XML', library: 'XML', linkage: 'shared'
|
||||
cpp.lib project: ':Foundation', library: 'Foundation', linkage: 'shared'
|
||||
}
|
||||
}
|
||||
DOMWriter(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'DOMWriter/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':XML', library: 'XML', linkage: 'shared'
|
||||
cpp.lib project: ':Foundation', library: 'Foundation', linkage: 'shared'
|
||||
}
|
||||
}
|
||||
PrettyPrint(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'PrettyPrint/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':XML', library: 'XML', linkage: 'shared'
|
||||
cpp.lib project: ':Foundation', library: 'Foundation', linkage: 'shared'
|
||||
}
|
||||
}
|
||||
// RoundTrip(NativeExecutableSpec) {
|
||||
// sources {
|
||||
// cpp.source { srcDir 'RoundTrip/src' include '**/*.cpp' }
|
||||
// cpp.lib project: ':XML', library: 'XML', linkage: 'shared'
|
||||
// cpp.lib project: ':Foundation', library: 'Foundation', linkage: 'shared'
|
||||
// }
|
||||
// }
|
||||
SAXParser(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'SAXParser/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':XML', library: 'XML', linkage: 'shared'
|
||||
cpp.lib project: ':Foundation', library: 'Foundation', linkage: 'shared'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
task samples { dependsOn "assemble" }
|
||||
|
||||
|
@ -1,62 +0,0 @@
|
||||
import org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteSpec
|
||||
|
||||
model {
|
||||
components {
|
||||
withType(NativeComponentSpec) {
|
||||
binaries.withType(NativeBinarySpec) {
|
||||
if (buildType == buildTypes.debug) {
|
||||
if (it instanceof NativeExecutableBinarySpec) {
|
||||
executable.file = toLocalBin(appendDebugSuffix(executable.file), targetPlatform)
|
||||
}
|
||||
} else
|
||||
if (buildType == buildTypes.release) {
|
||||
if (it instanceof NativeExecutableBinarySpec) {
|
||||
executable.file = toLocalBin(executable.file, targetPlatform)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
TestSuite(NativeLibrarySpec) {
|
||||
sources {
|
||||
cpp {
|
||||
source {
|
||||
srcDir 'src'
|
||||
include '**/*.cpp'
|
||||
exclude '*Driver.cpp'
|
||||
}
|
||||
exportedHeaders {
|
||||
srcDir 'src'
|
||||
}
|
||||
lib project: ':CppUnit', library: 'CppUnit', linkage: 'shared'
|
||||
lib project: ':XML', library: 'XML', linkage: 'shared'
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'shared'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
testSuites {
|
||||
XMLTestSuite(org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteSpec) {
|
||||
testing $.components.TestSuite
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
withType(org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteBinarySpec) {
|
||||
lib project: ':CppUnit', library: 'CppUnit', linkage: 'shared'
|
||||
if (toolChain in VisualCpp) {
|
||||
if (buildType == buildTypes.debug) {
|
||||
cCompiler.args "/MDd"
|
||||
cppCompiler.args "/MDd"
|
||||
} else
|
||||
if (buildType == buildTypes.release) {
|
||||
cCompiler.args "/MD"
|
||||
cppCompiler.args "/MD"
|
||||
} else {
|
||||
throw new GradleException("Unknown buildType" + buildType)
|
||||
}
|
||||
}
|
||||
if (toolChain in Gcc) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
task testsuite { dependsOn "assemble" }
|
@ -1,38 +0,0 @@
|
||||
model {
|
||||
components {
|
||||
Zip(NativeLibrarySpec) {
|
||||
sources {
|
||||
rc {
|
||||
source {
|
||||
srcDir '..'
|
||||
include 'DLLVersion.rc'
|
||||
}
|
||||
}
|
||||
cpp {
|
||||
source {
|
||||
srcDir 'src'
|
||||
include '**/*.cpp'
|
||||
}
|
||||
exportedHeaders {
|
||||
srcDir 'include'
|
||||
}
|
||||
lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
all {
|
||||
}
|
||||
withType(SharedLibraryBinarySpec) {
|
||||
if (toolChain in VisualCpp) {
|
||||
cppCompiler.define "Zip_EXPORTS"
|
||||
}
|
||||
}
|
||||
withType(StaticLibraryBinarySpec) {
|
||||
}
|
||||
}
|
||||
}
|
||||
task poco { dependsOn "assemble" }
|
||||
|
||||
|
@ -1,36 +0,0 @@
|
||||
model {
|
||||
components {
|
||||
zip(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'zip/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Zip', library: 'Zip'
|
||||
cpp.lib project: ':Util', library: 'Util'
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
unzip(NativeExecutableSpec) {
|
||||
sources {
|
||||
cpp.source { srcDir 'unzip/src' include '**/*.cpp' }
|
||||
cpp.lib project: ':Zip', library: 'Zip'
|
||||
cpp.lib project: ':Util', library: 'Util'
|
||||
cpp.lib project: ':Foundation', library: 'Foundation'
|
||||
}
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
all {
|
||||
}
|
||||
withType(SharedLibraryBinarySpec) {
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'shared'
|
||||
}
|
||||
withType(StaticLibraryBinarySpec) {
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'static'
|
||||
}
|
||||
withType(NativeExecutableSpec) {
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'static'
|
||||
}
|
||||
}
|
||||
}
|
||||
task samples { dependsOn "assemble" }
|
||||
|
||||
|
@ -1,62 +0,0 @@
|
||||
import org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteSpec
|
||||
|
||||
model {
|
||||
components {
|
||||
withType(NativeComponentSpec) {
|
||||
binaries.withType(NativeBinarySpec) {
|
||||
if (buildType == buildTypes.debug) {
|
||||
if (it instanceof NativeExecutableBinarySpec) {
|
||||
executable.file = toLocalBin(appendDebugSuffix(executable.file), targetPlatform)
|
||||
}
|
||||
} else
|
||||
if (buildType == buildTypes.release) {
|
||||
if (it instanceof NativeExecutableBinarySpec) {
|
||||
executable.file = toLocalBin(executable.file, targetPlatform)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
TestSuite(NativeLibrarySpec) {
|
||||
sources {
|
||||
cpp {
|
||||
source {
|
||||
srcDir 'src'
|
||||
include '**/*.cpp'
|
||||
exclude '*Driver.cpp'
|
||||
}
|
||||
exportedHeaders {
|
||||
srcDir 'src'
|
||||
}
|
||||
lib project: ':CppUnit', library: 'CppUnit', linkage: 'shared'
|
||||
lib project: ':Zip', library: 'Zip', linkage: 'shared'
|
||||
lib project: ':Foundation', library: 'Foundation', linkage: 'shared'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
testSuites {
|
||||
ZipTestSuite(org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteSpec) {
|
||||
testing $.components.TestSuite
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
withType(org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteBinarySpec) {
|
||||
lib project: ':CppUnit', library: 'CppUnit', linkage: 'shared'
|
||||
if (toolChain in VisualCpp) {
|
||||
if (buildType == buildTypes.debug) {
|
||||
cCompiler.args "/MDd"
|
||||
cppCompiler.args "/MDd"
|
||||
} else
|
||||
if (buildType == buildTypes.release) {
|
||||
cCompiler.args "/MD"
|
||||
cppCompiler.args "/MD"
|
||||
} else {
|
||||
throw new GradleException("Unknown buildType" + buildType)
|
||||
}
|
||||
}
|
||||
if (toolChain in Gcc) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
task testsuite { dependsOn "assemble" }
|
@ -1,69 +0,0 @@
|
||||
def os = org.gradle.internal.os.OperatingSystem.current()
|
||||
rootProject.name = 'Poco'
|
||||
rootProject.dir = new File('../')
|
||||
|
||||
include ':CppUnit'
|
||||
include ':Encodings'
|
||||
include ':Foundation'
|
||||
include ':XML'
|
||||
include ':JSON'
|
||||
include ':Util'
|
||||
include ':Net'
|
||||
include ':Crypto'
|
||||
include ':NetSSL_OpenSSL'
|
||||
if (os.windows) {
|
||||
include ':NetSSL_Win'
|
||||
}
|
||||
include ':Data'
|
||||
include ':Data:ODBC'
|
||||
include ':Data:SQLite'
|
||||
//include ':Data:MySQL'
|
||||
//include ':Data:PostgreSQL'
|
||||
include ':Zip'
|
||||
include ':PageCompiler'
|
||||
include ':PageCompiler:File2Page'
|
||||
include ':PDF'
|
||||
include ':CppParser'
|
||||
include ':MongoDB'
|
||||
include ':Redis'
|
||||
include ':PocoDoc'
|
||||
include ':ProGen'
|
||||
|
||||
include ':Encodings:testsuite'
|
||||
include ':Foundation:testsuite'
|
||||
include ':XML:testsuite'
|
||||
include ':JSON:testsuite'
|
||||
include ':Util:testsuite'
|
||||
include ':Net:testsuite'
|
||||
include ':Crypto:testsuite'
|
||||
include ':NetSSL_OpenSSL:testsuite'
|
||||
if (os.windows) {
|
||||
include ':NetSSL_Win:testsuite'
|
||||
}
|
||||
include ':Data:testsuite'
|
||||
include ':Data:ODBC:testsuite'
|
||||
include ':Data:SQLite:testsuite'
|
||||
//include ':Data:MySQL:testsuite'
|
||||
//include ':Data:PostgreSQL:testsuite' // needs OpenSSL setup
|
||||
include ':MongoDB:testsuite'
|
||||
include ':Redis:testsuite'
|
||||
include ':CppParser:testsuite'
|
||||
include ':Zip:testsuite'
|
||||
|
||||
include ':Encodings:samples'
|
||||
include ':Foundation:samples'
|
||||
include ':Data:samples'
|
||||
include ':NetSSL_OpenSSL:samples'
|
||||
if (os.windows) {
|
||||
include ':NetSSL_Win:samples'
|
||||
}
|
||||
include ':JSON:samples'
|
||||
include ':MongoDB:samples'
|
||||
include ':Net:samples'
|
||||
include ':PageCompiler:samples'
|
||||
include ':PDF:samples'
|
||||
include ':Util:samples'
|
||||
include ':XML:samples'
|
||||
include ':SevenZip:samples'
|
||||
include ':Zip:samples'
|
||||
|
Loading…
Reference in New Issue
Block a user