X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;ds=inline;f=SConscript;h=2df0288e4ea3809d001180e460ec78e83f86cdf2;hb=9ca6ad8086995cde21a4ae247dac53de336c15ec;hp=13b6d4d129781d7037118da5ced5e13e849b92b6;hpb=08813a74da6ac1fd045a105e4e8105f1d7f716f0;p=supertux.git diff --git a/SConscript b/SConscript index 13b6d4d12..2df0288e4 100644 --- a/SConscript +++ b/SConscript @@ -19,6 +19,7 @@ class Project: self.build_squirrel() self.build_tinygettext() self.build_binreloc() + self.build_findlocale() self.build_supertux() self.build_tests() @@ -34,6 +35,10 @@ class Project: env = Environment(CPPPATH=["external/binreloc/", "."]) self.libbinreloc = env.StaticLibrary("binreloc", "external/binreloc/binreloc.c") + def build_findlocale(self): + env = Environment(CPPPATH=["external/findlocale/", "."]) + self.libfindlocale = env.StaticLibrary("findlocale", "external/findlocale/findlocale.c") + def build_squirrel(self): env = Environment(CPPPATH=["external/squirrel/include/"]) self.libsquirrel = env.StaticLibrary("squirrel", @@ -43,6 +48,7 @@ class Project: def build_supertux(self): self.env = Environment(CPPPATH=["external/squirrel/include/", + "external/findlocale/", "external/", "external/obstack", "src/", @@ -66,7 +72,7 @@ class Project: self.env.ParseConfig("sdl-config --libs --cflags") self.env.ParseConfig("pkg-config --libs --cflags openal") self.env.ParseConfig("pkg-config --libs --cflags vorbis vorbisfile ogg") - self.env.Append(LIBS=[self.libsquirrel, self.libbinreloc, self.libtinygettext]) + self.env.Append(LIBS=[self.libsquirrel, self.libbinreloc, self.libtinygettext, self.libfindlocale]) self.env.Append(LIBS=["SDL_image", "curl", "GL", "physfs"]) # Create config.h @@ -86,7 +92,7 @@ class Project: version_h.close() # base source - supertux_sources = Glob("src/*.cpp") + Glob("src/*/*.cpp") + supertux_sources = Glob("src/*.cpp") + Glob("src/*/*.cpp") + Glob("src/supertux/menu/*.cpp") # optional video drivers supertux_sources += Glob("src/video/gl/*.cpp")