diff options
Diffstat (limited to 'SwifTools/SConscript')
-rw-r--r-- | SwifTools/SConscript | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/SwifTools/SConscript b/SwifTools/SConscript index d383317..177438a 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 @@ -29,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"]) |