diff --git a/SConstruct b/SConstruct index f9384c6090d..4d356dabf8c 100644 --- a/SConstruct +++ b/SConstruct @@ -60,7 +60,7 @@ SConscript('src/SConstruct', exports='env') Help("""\ Available build targets include: - all wesnoth wesnoth_editor wesnothd campaignd exploder + all wesnoth wesnoth_editor wesnothd campaignd exploder cutter The 'install' target installs whatever you currently have built. If you have built tools and Python is available the Python helper modules diff --git a/src/SConstruct b/src/SConstruct index e0a3fbe3277..244f23ccc35 100644 --- a/src/SConstruct +++ b/src/SConstruct @@ -1,7 +1,7 @@ Import('env') all = env.Alias("all", ["wesnoth", "wesnoth_editor", "wesnothd", "campaignd", - "exploder"]) + "cutter", "exploder"]) env.Default("all") # @@ -219,6 +219,17 @@ env.Program("wesnothd", wesnothd_sources, LIBS = ['wesnoth_core', 'wesnothd'] + commonlibs, LIBPATH = [".", "/lib", "/usr/lib"]) +cutter_sources = [ + "tools/cutter.cpp", + "tools/exploder_utils.cpp", + "tools/exploder_cutter.cpp", + "tools/dummy_video.cpp", + ] +env.Program("cutter", cutter_sources, + CPPPATH = ['.', "/usr/include/SDL"], + LIBS = ['wesnoth_core', 'wesnoth_sdl', 'wesnothd'] + commonlibs, + LIBPATH = [".", "/lib", "/usr/lib"]) + exploder_sources = [ "tools/exploder.cpp", "tools/exploder_utils.cpp",