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")
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)
+
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)
+