include_directories (${SUPERTUX_SOURCE_DIR}/src/)
include_directories (${SUPERTUX_SOURCE_DIR}/external/squirrel/include/)
-include_directories (${SUPERTUX_SOURCE_DIR}/external/)
+include_directories (${SUPERTUX_SOURCE_DIR}/external/tinygettext/)
include_directories (${SUPERTUX_SOURCE_DIR}/external/findlocale/)
include_directories (${SUPERTUX_SOURCE_DIR}/external/obstack/)
FILE(GLOB SUPERTUX_SOURCES_C RELATIVE ${SUPERTUX_SOURCE_DIR} external/obstack/*.c external/findlocale/findlocale.c)
-FILE(GLOB SUPERTUX_SOURCES_CXX RELATIVE ${SUPERTUX_SOURCE_DIR} src/main.cpp src/*/*.cpp src/supertux/menu/*.cpp src/video/sdl/*.cpp external/tinygettext/*.cpp)
+FILE(GLOB SUPERTUX_SOURCES_CXX RELATIVE ${SUPERTUX_SOURCE_DIR} src/main.cpp src/*/*.cpp src/supertux/menu/*.cpp src/video/sdl/*.cpp external/tinygettext/tinygettext/*.cpp)
IF(HAVE_OPENGL)
FILE(GLOB SUPERTUX_OPENGL_SOURCES RELATIVE ${SUPERTUX_SOURCE_DIR} src/video/gl/*.cpp)
## Add binreloc.c if enabled
IF(ENABLE_BINRELOC)
+ include_directories (${SUPERTUX_SOURCE_DIR}/external/binreloc/)
SET(SUPERTUX_SOURCES_C ${SUPERTUX_SOURCES_C} ${SUPERTUX_SOURCE_DIR}/external/binreloc/binreloc.c)
ENDIF(ENABLE_BINRELOC)
self.build_tests()
def build_tinygettext(self):
- env = Environment(CPPPATH=["external/tinygettext/",
- "external/squirrel/include/",
- ".",
- "src"])
+ env = Environment(CPPPATH=[".", "src"])
env.ParseConfig("sdl-config --libs --cflags")
- self.libtinygettext = env.StaticLibrary("tinygettext", Glob("external/tinygettext/*.cpp"))
+ self.libtinygettext = env.StaticLibrary("tinygettext", Glob("external/tinygettext/tinygettext/*.cpp"))
def build_binreloc(self):
env = Environment(CPPPATH=["external/binreloc/", "."])
def build_supertux(self):
self.env = Environment(CPPPATH=["external/squirrel/include/",
"external/findlocale/",
- "external/",
- "external/obstack",
+ "external/binreloc/",
+ "external/obstack/",
+ "external/tinygettext/",
"src/",
"/usr/include/AL/", # yuck
"."],