From: Matthias Braun Date: Sat, 20 Nov 2004 14:49:11 +0000 (+0000) Subject: add defaults to Scons files so that you can use scons -U X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=3ec06447c9a1b2e6e13b80c39e21792a5f0c1659;p=supertux.git add defaults to Scons files so that you can use scons -U SVN-Revision: 2111 --- diff --git a/SConstruct b/SConstruct index 45bce451d..df3865a93 100644 --- a/SConstruct +++ b/SConstruct @@ -143,3 +143,4 @@ env.Append(LIBPATH=["#" + build_dir + "/lib"]) env.Export(["env", "Glob"]) env.SConscript("lib/SConscript", build_dir=build_dir + "/lib", duplicate=0) env.SConscript("src/SConscript", build_dir=build_dir + "/src", duplicate=0) +Default("supertux") diff --git a/lib/SConscript b/lib/SConscript index 6a98af1fd..58c0dd520 100644 --- a/lib/SConscript +++ b/lib/SConscript @@ -1,5 +1,20 @@ Import('*') -libsupertux_src = Glob(dirs=["app", "audio", "gui", "math", - "special", "utils", "video"], pattern="*.cpp") -env.Library(target="supertux", source=libsupertux_src) +libsupertux_src = Glob( + dirs=[ + "app", + "audio", + "gui", + "math", + "special", + "utils", + "video" + ], + pattern="*.cpp" +) +lib = env.Library( + target="supertux", + source=libsupertux_src +) +Default(lib) + diff --git a/src/SConscript b/src/SConscript index 56170c7df..d8f978216 100644 --- a/src/SConscript +++ b/src/SConscript @@ -1,13 +1,13 @@ Import('*') supertux_src = Glob( - dirs=[".", "object"], + dirs=[".", "object", "badguy"], pattern="*.cpp" ) app = env.Program( target="supertux", source = supertux_src ) - -# hacky way for now... AddPostAction(app, "ln -sf $TARGET .") +Default(app) +