summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-04-30 10:11:43 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-04-30 16:34:38 (GMT)
commitd81d2608c35bef14ba1fd024b0ec4d48de03dfcc (patch)
treea733ba5174e1fca46c6396c6f3ed0d182841e4c9 /Swiften/SConscript
parenta10cc927d11bf5a2ef30c07e168922b192a52561 (diff)
downloadswift-d81d2608c35bef14ba1fd024b0ec4d48de03dfcc.zip
swift-d81d2608c35bef14ba1fd024b0ec4d48de03dfcc.tar.bz2
Split off libswiften package.
Diffstat (limited to 'Swiften/SConscript')
-rw-r--r--Swiften/SConscript40
1 files changed, 22 insertions, 18 deletions
diff --git a/Swiften/SConscript b/Swiften/SConscript
index 641aadc..803ed8b 100644
--- a/Swiften/SConscript
+++ b/Swiften/SConscript
@@ -335,25 +335,29 @@ if env["SCONS_STAGE"] == "build" :
swiften_header = "#pragma once\n"
swiften_includes = []
top_path = env.Dir("..").abspath
- public_dirs = ["Avatars", "Base", "Chat", "Client", "Component", "Disco", "Entity", "Elements", "JID", "MUC", "Network", "Parser", "Presence", "Queries", "Roster", "Serializer", "StringCodecs", "TLS", "VCards"]
- for public_dir in public_dirs :
- for root, dirs, files in os.walk(env.Dir(public_dir).abspath) :
- if root.endswith("UnitTest") :
+ for root, dirs, files in os.walk(env.Dir(".").abspath) :
+ if root.endswith("UnitTest") :
+ continue
+ for file in files :
+ if not file.endswith(".h") :
continue
- for file in files :
- if not file.endswith(".h") :
- continue
- include = os.path.relpath(os.path.join(root, file), top_path)
- swiften_includes.append(include)
- if root.endswith("OpenSSL") :
- continue
- if file.startswith("CAres") or file.startswith("LibXML") or file.startswith("Expat") :
- continue
- swiften_header += "#include <" + include + ">\n"
- swiften_includes.append(include)
- for file in ["EventLoop/SimpleEventLoop.h"] :
- swiften_header += "#include <Swiften/" + file + ">\n"
- swiften_includes.append("Swiften/" + file)
+ include = os.path.relpath(os.path.join(root, file), top_path)
+ swiften_includes.append(include)
+ # Private modules
+ if root.endswith("Config") or root.endswith("Compress") :
+ continue
+
+ # Library-specfifc private modules
+ if root.endswith("OpenSSL") or root.endswith("Cocoa") or root.endswith("Qt") or root.endswith("IDN") or root.endswith("Avahi") or root.endswith("Bonjour") :
+ continue
+
+ # Library-specific files
+ if file.startswith("CAres") or file.startswith("LibXML") or file.startswith("Expat") :
+ continue
+ if file == "Swiften.h" :
+ continue
+ swiften_header += "#include <" + include + ">\n"
+ swiften_includes.append(include)
swiften_env.WriteVal("Swiften.h", swiften_env.Value(swiften_header))
swiften_includes.append("Swiften/Swiften.h")