Add widgets sources to union to get rid of repeated source file

This commit is contained in:
loonycyborg 2024-03-25 15:22:02 +03:00
parent 36b02e8fa6
commit 220188b436
No known key found for this signature in database
GPG key ID: 6E8233FAB8F26D61

View file

@ -179,7 +179,7 @@ elif env["PLATFORM"] == 'win32':
client_env.Append(LINKFLAGS=['-Wl,--whole-archive', libwesnoth_widgets, '-Wl,--no-whole-archive'])
elif env["PLATFORM"] == 'android':
client_env["CPPDEFINES"].remove("SDL_MAIN_HANDLED")
wesnoth = client_env.SharedLibrary("#packaging/android/lib/libmain.so", ["wesnoth.cpp"] + sorted(list(set(wesnoth_client_sources).union(set(libwesnoth_sdl_sources)))) + shobjs_lua + libwesnoth_core_sources + libwesnoth_game_sources + libwesnoth_widgets_sources)
wesnoth = client_env.SharedLibrary("#packaging/android/lib/libmain.so", ["wesnoth.cpp"] + sorted(list(set(wesnoth_client_sources).union(set(libwesnoth_sdl_sources)).union(libwesnoth_widgets_sources))) + shobjs_lua + libwesnoth_core_sources + libwesnoth_game_sources)
Export("wesnoth")
else:
wesnoth = client_env.WesnothProgram("wesnoth", ["wesnoth.cpp"] + libwesnoth_objects, have_client_prereqs)