poco/Foundation/build.gradle
zosrothko 5fa3d6094e Backport of pocoproject/feature-gradle to pocoproject/develop (#2127)
* Backport of feature-gradle

Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr>

* Replace '/' by '\' to comply with DOS path

Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr>

* Cleanup

Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr>

* Put environment setting at the Exec task.

Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr>

* Use standard release

Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr>

* Updated mkdoc configuration

Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr>

* Remove lines guarded by POCO_ENABLE_CPP11

Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr>

* Merge remote-tracking branch 'origin/develop' into develop

* Fix NuGet & Wix input dependencies file set.

Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr>

* Remaining fixes for Data2SQL switch.

* Use $global:LastExitCode instead of a local LastExitCode
2018-02-09 08:05:15 -06:00

116 lines
2.5 KiB
Groovy

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 'OpcomChannel.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) {
// addCompilerDefine "Foundation_EXPORTS" ""
cCompiler.define "Foundation_EXPORTS"
cppCompiler.define "Foundation_EXPORTS"
}
}
}
}
task poco { dependsOn "assemble" }