1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 09:57:35 +00:00
serenity/Meta/CMake
Andrew Kaster b8e51425e9 Lagom+CMake: Propagate dependencies for generated custom targets
We have logic for serenity_generated_sources which works well for source
files that are specified in GENERATED_SOURCES prior to calling
serenity_lib or serenity_bin. However, code generated with
invoke_generator, and the LibWeb generators do not always follow the
pattern of the IDL and GML files.

For the LibWeb generators, we can just add_dependencies to LibWeb at the
time we declare the generate_Foo custom target. However for LibLocale,
LibTimeZone, and LibUnicode, we don't have the name of the target
available, so export the name in a variable to set into
GENERATED_SOURCES.

To make this work for Lagom, we need to make sure that lagom_lib and
serenity_bin in Lagom/CMakeLists.txt call serenity_generated_sources on
the target.

This enables the Xcode generator on macOS hosts, at least for Lagom.
2022-10-17 15:55:55 +02:00
..
Superbuild Meta: Make x86-64 target the default 2022-10-03 11:14:53 +02:00
all_the_debug_macros.cmake Kernel: Add support for the FAT32 filesystem 2022-10-14 18:36:40 -06:00
check_for_dependencies.cmake Meta: Do not log CMake version on each CMake invocation 2022-09-11 21:40:15 +01:00
code_generators.cmake CMake: Don't mess with absolute compile_ipc() source paths 2022-10-06 11:23:53 +02:00
common_compile_options.cmake Meta: Move compiler flags into standalone CMake files 2022-05-14 17:53:06 +02:00
common_options.cmake Meta+Tests: Allow running FLAC spec tests 2022-09-02 23:54:50 +01:00
commonmark_spec.cmake Everywhere: Move commonmark.spec.json to /home/anon/Tests 2022-03-20 22:20:59 +01:00
flac_spec_tests.cmake Meta+Tests: Allow running FLAC spec tests 2022-09-02 23:54:50 +01:00
jakt.cmake Meta: Update jakt build support for fully bootstrapped compiler 2022-09-09 11:23:42 +02:00
lagom-install-config.cmake Meta: Update jakt build support for fully bootstrapped compiler 2022-09-09 11:23:42 +02:00
lagom_compile_options.cmake Meta: Update jakt build support for fully bootstrapped compiler 2022-09-09 11:23:42 +02:00
lagom_options.cmake Meta: Add Lagom option to disable building LibWeb 2022-09-13 17:05:20 +02:00
libweb_generators.cmake Lagom+CMake: Propagate dependencies for generated custom targets 2022-10-17 15:55:55 +02:00
locale_data.cmake Meta: Remove unused "prefix" variable from invoke_generator() helper 2022-10-16 21:16:48 +02:00
pnp_ids.cmake Meta: Remove unused "prefix" variable from invoke_generator() helper 2022-10-16 21:16:48 +02:00
processor-count.cmake Meta: Print error if cmake does not exist 2022-10-16 17:49:18 +02:00
serenity_compile_options.cmake Meta: Move compiler flags into standalone CMake files 2022-05-14 17:53:06 +02:00
serenity_components.cmake Meta: Properly ignore targets which don't have a component name 2022-10-15 13:12:42 +02:00
serenity_options.cmake Meta: Add option to disable Kernel Address Sanitizer 2022-05-21 20:23:32 +01:00
time_zone_data.cmake Meta: Remove unused "prefix" variable from invoke_generator() helper 2022-10-16 21:16:48 +02:00
unicode_data.cmake Meta: Remove unused "prefix" variable from invoke_generator() helper 2022-10-16 21:16:48 +02:00
utils.cmake Lagom+CMake: Propagate dependencies for generated custom targets 2022-10-17 15:55:55 +02:00
wasm_spec_tests.cmake Meta: Download WASM spec tests using CMake 2022-09-09 10:31:12 +01:00