From 741480732b12a8dc4a401ba1c9d647a2ce53b56f Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Mon, 2 Oct 2023 21:39:20 +0300 Subject: [PATCH 63/63] Meson: Generate specenum headers See osdn #48703 Signed-off-by: Marko Lindqvist --- meson.build | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 70685ab287..6b6e6bd8e4 100644 --- a/meson.build +++ b/meson.build @@ -1202,6 +1202,16 @@ else servericon = [] endif +terrain_enums = custom_target('terrain_enums', + command: ['gen_headers/generate_enums.py' , '@OUTPUT@', '@INPUT@'], + output: 'terrain_enums_gen.h', + input: join_paths('gen_headers/enums', 'terrain_enums.def')) + +manual_enums = custom_target('manual_enums', + command: ['gen_headers/generate_enums.py' , '@OUTPUT@', '@INPUT@'], + output: 'manual_enums_gen.h', + input: join_paths('gen_headers/enums', 'manual_enums.def')) + common_lib = library('freeciv', 'utility/astring.c', 'utility/bitvector.c', @@ -1318,7 +1328,7 @@ common_lib = library('freeciv', 'common/workertask.c', 'common/worklist.c', include_directories : common_inc, - sources: [specenum, pack_common, + sources: [specenum, terrain_enums, pack_common, tolua_com_a, tolua_com_z, tolua_game, tolua_signal], link_whole: fc_deps, dependencies: [zlib_dep, @@ -4260,6 +4270,7 @@ executable('freeciv-manual', 'tools/manual/manual_settings.c', 'tools/manual/manual_terrain.c', 'client/helpdata.c', + sources: [manual_enums], link_with: [common_lib, server_lib, tool_lib, ais], include_directories: [tool_inc, include_directories('client', 'client/include')], -- 2.40.1