summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVlad Voicu <vladv@rosedu.org>2012-03-05 20:08:54 (GMT)
committerKevin Smith <git@kismith.co.uk>2012-03-09 15:04:09 (GMT)
commit91f344444c54f11de132cf22a7ba323727104989 (patch)
treeda1173a237528644c86d3f9aac6eb8212e9c8ecd /SwifTools/SConscript
parent3049bf68ede3e1ce152561f6e8a054cca8dcad56 (diff)
downloadswift-contrib-91f344444c54f11de132cf22a7ba323727104989.zip
swift-contrib-91f344444c54f11de132cf22a7ba323727104989.tar.bz2
Added HAVE_HUNSPELL to flags when building
Diffstat (limited to 'SwifTools/SConscript')
-rw-r--r--SwifTools/SConscript12
1 files changed, 11 insertions, 1 deletions
diff --git a/SwifTools/SConscript b/SwifTools/SConscript
index 41e5b74..d7cff9e 100644
--- a/SwifTools/SConscript
+++ b/SwifTools/SConscript
@@ -7,8 +7,10 @@ Import("env")
if env["SCONS_STAGE"] == "flags" :
env["SWIFTOOLS_FLAGS"] = {
"LIBPATH": [Dir(".")],
- "LIBS": ["SwifTools", "libhunspell-1.3"]
+ "LIBS": ["SwifTools"]
}
+ if env["HAVE_HUNSPELL"] :
+ env.MergeFlags(env["HUNSPELL_FLAGS"])
################################################################################
# Build
@@ -16,6 +18,7 @@ if env["SCONS_STAGE"] == "flags" :
if env["SCONS_STAGE"] == "build" :
swiftools_env = env.Clone()
+
swiftools_env.MergeFlags(swiftools_env["BOOST_FLAGS"])
sources = [
@@ -28,11 +31,18 @@ if env["SCONS_STAGE"] == "build" :
"Linkify.cpp",
"TabComplete.cpp",
"LastLineTracker.cpp",
+ ]
+
+ if swiftools_env["HAVE_HUNSPELL"] :
+ swiftools_env.MergeFlags(swiftools_env["HUNSPELL_FLAGS"])
+ swiftools_env.Append(CPPDEFINES = ["HAVE_HUNSPELL"])
+ sources += [
"SpellCheckerFactory.cpp",
"HunspellChecker.cpp",
"SpellParser.cpp",
]
+
if swiftools_env.get("HAVE_SPARKLE", 0) :
swiftools_env.MergeFlags(swiftools_env["SPARKLE_FLAGS"])
swiftools_env.Append(CPPDEFINES = ["HAVE_SPARKLE"])