* build wesnoth's sources from the automake file as well
This commit is contained in:
parent
32b8aae722
commit
2d2dfb5134
1 changed files with 11 additions and 5 deletions
|
@ -20,11 +20,12 @@ For details see the cross-compiling instructions on the Wiki.
|
|||
|
||||
"""
|
||||
|
||||
sources = glob.glob("src/*.cpp") +\
|
||||
glob.glob("src/widgets/*.cpp") +\
|
||||
glob.glob("src/serialization/*.cpp") +\
|
||||
glob.glob("src/sdl_ttf/*.c")
|
||||
sources.remove("src/loadscreen_empty.cpp")
|
||||
#sources = glob.glob("src/*.cpp") +\
|
||||
# glob.glob("src/widgets/*.cpp") +\
|
||||
# glob.glob("src/serialization/*.cpp") +\
|
||||
# glob.glob("src/sdl_ttf/*.c")
|
||||
#sources.remove("src/loadscreen_empty.cpp")
|
||||
#sources.remove("src/animated_editor.cpp")
|
||||
|
||||
def parse_automake(filename, variable):
|
||||
"""Crude helper function to parse an automake file."""
|
||||
|
@ -48,6 +49,11 @@ def parse_automake(filename, variable):
|
|||
sources.append("src/" + name)
|
||||
return sources
|
||||
|
||||
# read the sources from the automake file
|
||||
sources = parse_automake("src/Makefile.am", "libwesnoth_core_a_SOURCES")
|
||||
sources += parse_automake("src/Makefile.am", "wesnoth_SOURCES")
|
||||
sources = list(set(sources))
|
||||
|
||||
# read editor sources from automake file
|
||||
editor_sources = parse_automake("src/Makefile.am", "libwesnoth_core_a_SOURCES")
|
||||
editor_sources += parse_automake("src/Makefile.am", "wesnoth_editor_SOURCES")
|
||||
|
|
Loading…
Add table
Reference in a new issue