diff options
Diffstat (limited to 'SwifTools/SConscript')
-rw-r--r-- | SwifTools/SConscript | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/SwifTools/SConscript b/SwifTools/SConscript index fa2686a..eaf5787 100644 --- a/SwifTools/SConscript +++ b/SwifTools/SConscript @@ -9,6 +9,8 @@ if env["SCONS_STAGE"] == "flags" : "LIBPATH": [Dir(".")], "LIBS": ["SwifTools"] } + if env["HAVE_HUNSPELL"] : + env.MergeFlags(env["HUNSPELL_FLAGS"]) ################################################################################ # Build @@ -30,6 +32,16 @@ if env["SCONS_STAGE"] == "build" : "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"]) |