summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '3rdParty')
-rw-r--r--3rdParty/Boost/SConscript63
-rw-r--r--3rdParty/CppUnit/SConscript42
-rw-r--r--3rdParty/Expat/SConscript23
-rw-r--r--3rdParty/Expat/expat_config.h1
-rw-r--r--3rdParty/LibIDN/SConscript42
-rw-r--r--3rdParty/SQLite/SConscript9
-rw-r--r--3rdParty/ZLib/SConscript22
7 files changed, 201 insertions, 1 deletions
diff --git a/3rdParty/Boost/SConscript b/3rdParty/Boost/SConscript
new file mode 100644
index 0000000..d75ac29
--- /dev/null
+++ b/3rdParty/Boost/SConscript
@@ -0,0 +1,63 @@
+Import("env")
+
+cppdefines = ["BOOST_ALL_NO_LIB", ("BOOST_SIGNALS_NAMESPACE", "bsignals")]
+env["BOOST_FLAGS"] = {
+ "CPPFLAGS": ["-I" + Dir(".").abspath],
+ "CPPDEFINES": cppdefines,
+ "LIBPATH": [Dir(".")],
+ "LIBS": ["Boost"]
+ }
+
+sources = [
+ "libs/date_time/src/gregorian/date_generators.cpp",
+ "libs/date_time/src/gregorian/greg_month.cpp",
+ "libs/date_time/src/gregorian/greg_weekday.cpp",
+ "libs/date_time/src/gregorian/gregorian_types.cpp",
+ "libs/date_time/src/posix_time/posix_time_types.cpp",
+ "libs/system/src/error_code.cpp",
+ "libs/thread/src/tss_null.cpp",
+ "libs/signals/src/connection.cpp",
+ "libs/signals/src/named_slot_map.cpp",
+ "libs/signals/src/signal_base.cpp",
+ "libs/signals/src/slot.cpp",
+ "libs/signals/src/trackable.cpp",
+ "libs/filesystem/src/operations.cpp",
+ "libs/filesystem/src/path.cpp",
+ "libs/filesystem/src/portability.cpp",
+ "libs/filesystem/src/utf8_codecvt_facet.cpp",
+ "libs/regex/src/c_regex_traits.cpp",
+ "libs/regex/src/cpp_regex_traits.cpp",
+ "libs/regex/src/cregex.cpp",
+ "libs/regex/src/fileiter.cpp",
+ "libs/regex/src/icu.cpp",
+ "libs/regex/src/instances.cpp",
+ "libs/regex/src/posix_api.cpp",
+ "libs/regex/src/regex.cpp",
+ "libs/regex/src/regex_debug.cpp",
+ "libs/regex/src/regex_raw_buffer.cpp",
+ "libs/regex/src/regex_traits_defaults.cpp",
+ "libs/regex/src/static_mutex.cpp",
+ "libs/regex/src/w32_regex_traits.cpp",
+ "libs/regex/src/wc_regex_traits.cpp",
+ "libs/regex/src/wide_posix_api.cpp",
+ "libs/regex/src/winstances.cpp",
+ "libs/regex/src/usinstances.cpp"]
+
+if env.get("HAVE_PTHREAD", 0) :
+ sources += [
+ "libs/thread/src/pthread/exceptions.cpp",
+ "libs/thread/src/pthread/once.cpp",
+ "libs/thread/src/pthread/thread.cpp"]
+ env["BOOST_FLAGS"]["LIBS"] += ["pthread"]
+else :
+ sources += [
+ "win32_stubs.cpp",
+ "libs/thread/src/win32/exceptions.cpp",
+ "libs/thread/src/win32/thread.cpp",
+ "libs/thread/src/win32/tss_dll.cpp",
+ "libs/thread/src/win32/tss_pe.cpp"]
+ env["BOOST_FLAGS"]["CPPDEFINES"] += [("_WIN32_WINNT", "0x0501")]
+ if env["PLATFORM"] == "cygwin" :
+ env["BOOST_FLAGS"]["CPPDEFINES"] += ["__USE_W32_SOCKETS"]
+
+env.StaticLibrary("Boost", sources, CPPFLAGS = "-I" + Dir(".").abspath, CPPDEFINES = cppdefines)
diff --git a/3rdParty/CppUnit/SConscript b/3rdParty/CppUnit/SConscript
new file mode 100644
index 0000000..aabb196
--- /dev/null
+++ b/3rdParty/CppUnit/SConscript
@@ -0,0 +1,42 @@
+Import("env")
+
+env["CPPUNIT_FLAGS"] = {
+ "CPPPATH": [env.Dir(".")],
+ "LIBPATH": [env.Dir(".")],
+ "LIBS": ["CppUnit"]
+ }
+
+env.StaticLibrary("CppUnit", [
+ "src/TextTestRunner.cpp",
+ "src/TextTestProgressListener.cpp",
+ "src/BriefTestProgressListener.cpp",
+ "src/TextOutputter.cpp",
+ "src/XmlOutputter.cpp",
+ "src/XmlElement.cpp",
+ "src/XmlDocument.cpp",
+ "src/StringTools.cpp",
+ "src/DefaultProtector.cpp",
+ "src/Protector.cpp",
+ "src/ProtectorChain.cpp",
+ "src/SynchronizedObject.cpp",
+ "src/SourceLine.cpp",
+ "src/TestRunner.cpp",
+ "src/TestFactoryRegistry.cpp",
+ "src/TestSuite.cpp",
+ "src/TestSuiteBuilderContext.cpp",
+ "src/TestResult.cpp",
+ "src/TestResultCollector.cpp",
+ "src/TestSuccessListener.cpp",
+ "src/TestComposite.cpp",
+ "src/TestCase.cpp",
+ "src/TestFailure.cpp",
+ "src/TestLeaf.cpp",
+ "src/TestNamer.cpp",
+ "src/Asserter.cpp",
+ "src/TypeInfoHelper.cpp",
+ "src/Exception.cpp",
+ "src/Message.cpp",
+ "src/AdditionalMessage.cpp",
+ "src/Test.cpp",
+ "src/TestPath.cpp"
+ ], CPPPATH = ".")
diff --git a/3rdParty/Expat/SConscript b/3rdParty/Expat/SConscript
new file mode 100644
index 0000000..cf7b684
--- /dev/null
+++ b/3rdParty/Expat/SConscript
@@ -0,0 +1,23 @@
+Import("env")
+
+env["EXPAT_FLAGS"] = {
+ "CPPDEFINES": ["XML_STATIC"],
+ "CPPPATH": [Dir("src")],
+ "LIBPATH": [Dir(".")],
+ "LIBS": ["Expat"],
+ }
+
+myenv = env.Clone()
+myenv.Append(CPPDEFINES = ["XML_STATIC", "HAVE_EXPAT_CONFIG_H"])
+myenv.Append(CPPPATH = [".", "src"])
+
+conf = Configure(myenv)
+if conf.CheckFunc('memmove') :
+ myenv.Append(CPPDEFINES = ["HAVE_MEMMOVE"])
+conf.Finish()
+
+myenv.StaticLibrary("Expat", [
+ "src/xmltok.c",
+ "src/xmlparse.c",
+ "src/xmlrole.c"
+ ])
diff --git a/3rdParty/Expat/expat_config.h b/3rdParty/Expat/expat_config.h
index ba5f588..46f8a75 100644
--- a/3rdParty/Expat/expat_config.h
+++ b/3rdParty/Expat/expat_config.h
@@ -1,4 +1,3 @@
-#define HAVE_MEMMOVE 1
#define XML_CONTEXT_BYTES 1024
#define XML_NS 1
diff --git a/3rdParty/LibIDN/SConscript b/3rdParty/LibIDN/SConscript
new file mode 100644
index 0000000..7e134dd
--- /dev/null
+++ b/3rdParty/LibIDN/SConscript
@@ -0,0 +1,42 @@
+Import("env")
+
+env["LIBIDN_FLAGS"] = {
+ "CPPDEFINES": ["IDNA_STATIC"],
+ "CPPPATH": [Dir("src")],
+ "LIBPATH": [Dir(".")],
+ "LIBS": ["IDN"],
+ }
+
+myenv = env.Clone()
+
+# Check for strcasecmp() or replacement
+conf = Configure(myenv)
+if not conf.CheckFunc('strcasecmp') :
+ if conf.CheckFunc("stricmp") :
+ myenv.Append(CPPDEFINES = [("strcasecmp", "stricmp")])
+ else :
+ print "Cannot find strcasecmp() or stricmp()"
+ Exit(1)
+if not conf.CheckFunc('strncasecmp') :
+ if conf.CheckFunc("strnicmp") :
+ myenv.Append(CPPDEFINES = [("strncasecmp", "strnicmp")])
+ else :
+ print "Cannot find strncasecmp() or strnicmp()"
+ Exit(1)
+conf.Finish()
+
+myenv.Append(CPPDEFINES = "IDNA_STATIC")
+myenv.Append(CPPPATH = ["src", "stubs"])
+if myenv["PLATFORM"] == "win32" :
+ myenv.Append(CPPPATH = "stubs/win32")
+ env["LIBIDN_FLAGS"]["CPPPATH"] += [Dir("stubs/win32")]
+
+myenv.StaticLibrary("IDN", [
+ "src/stringprep.c",
+ "src/profiles.c",
+ "src/rfc3454.c",
+ "src/punycode.c",
+ "src/idna.c",
+ "src/toutf8.c",
+ "src/nfkc.c"
+ ])
diff --git a/3rdParty/SQLite/SConscript b/3rdParty/SQLite/SConscript
new file mode 100644
index 0000000..c13aa7d
--- /dev/null
+++ b/3rdParty/SQLite/SConscript
@@ -0,0 +1,9 @@
+Import("env")
+
+env["SQLITE_FLAGS"] = {
+ "CPPPATH": [Dir(".")],
+ "LIBPATH": [Dir(".")],
+ "LIBS": ["SQLite"],
+ }
+
+env.StaticLibrary("SQLite", ["sqlite3.c"], CPPPATH = ["."])
diff --git a/3rdParty/ZLib/SConscript b/3rdParty/ZLib/SConscript
new file mode 100644
index 0000000..0cf0f13
--- /dev/null
+++ b/3rdParty/ZLib/SConscript
@@ -0,0 +1,22 @@
+Import("env")
+
+env["ZLIB_FLAGS"] = {
+ "CPPPATH": [Dir("src")],
+ "LIBPATH": [Dir(".")],
+ "LIBS": ["Z"],
+ }
+
+env.StaticLibrary("Z", [
+ "src/adler32.c",
+ "src/compress.c",
+ "src/crc32.c",
+ "src/deflate.c",
+ "src/gzio.c",
+ "src/infback.c",
+ "src/inffast.c",
+ "src/inflate.c",
+ "src/inftrees.c",
+ "src/trees.c",
+ "src/uncompr.c",
+ "src/zutil.c"
+ ])