From 2d2dfb5134d6f2269e6ca754d6f3bdeebfe80a9f Mon Sep 17 00:00:00 2001 From: Gunter Labes Date: Fri, 23 Nov 2007 17:13:10 +0000 Subject: [PATCH] * build wesnoth's sources from the automake file as well --- utils/SConstruct | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/utils/SConstruct b/utils/SConstruct index 6ff1e57f050..7af3fef1ca2 100644 --- a/utils/SConstruct +++ b/utils/SConstruct @@ -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")