mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-poco.git
synced 2025-10-29 09:42:31 +00:00
remove gradle files
This commit is contained in:
@@ -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" }
|
||||
Reference in New Issue
Block a user