added libwesnoth-core.a files for editor cross-compilation
This commit is contained in:
parent
3d9f3f0a31
commit
9c0968edcf
1 changed files with 5 additions and 2 deletions
|
@ -30,7 +30,10 @@ def parse_automake(filename, variable):
|
|||
return sources
|
||||
|
||||
# read editor sources from automake file
|
||||
editor_sources = parse_automake("src/Makefile.am", "wesnoth_editor_SOURCES")
|
||||
editor_sources = parse_automake("src/Makefile.am", "libwesnoth_core_a_SOURCES")
|
||||
editor_sources += parse_automake("src/Makefile.am", "wesnoth_editor_SOURCES")
|
||||
# there shouldn't be doubles, but well, let's remove them :)
|
||||
editor_sources = list(set(editor_sources))
|
||||
|
||||
env = Environment()
|
||||
|
||||
|
@ -49,7 +52,7 @@ env.Append(CPPPATH = ["../win-deps/include/python24"])
|
|||
env.Append(LIBPATH = ["../win-deps/lib"])
|
||||
|
||||
# Compilation settings
|
||||
env.Append(CCFLAGS = ["-O2", "-mthreads", "-DHAVE_PYTHON"])
|
||||
env.Append(CCFLAGS = ["-mthreads", "-DHAVE_PYTHON"])
|
||||
env.Append(LINKFLAGS = ["-s", "-mwindows", "-lmingwthrd"])
|
||||
env.Append(CPPPATH = ["src", "src/widgets"])
|
||||
env.Append(LIBS = ["mingw32", "SDLmain", "SDL", "SDL_net", "SDL_mixer", "SDL_image",
|
||||
|
|
Loading…
Add table
Reference in a new issue