mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 17:49:40 +00:00
CMake: Rename all_generated target to better convey intent
This commit is contained in:
parent
25f5936dee
commit
d897bfae91
Notes:
github-actions[bot]
2025-07-03 21:21:22 +00:00
Author: https://github.com/ayeteadoe
Commit: d897bfae91
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5249
Reviewed-by: https://github.com/gmta ✅
6 changed files with 13 additions and 13 deletions
|
@ -20,7 +20,7 @@ function(embed_as_string name source_file output source_variable_name)
|
|||
)
|
||||
|
||||
add_custom_target("generate_${name}" DEPENDS "${output}")
|
||||
add_dependencies(all_generated "generate_${name}")
|
||||
add_dependencies(ladybird_codegen_accumulator "generate_${name}")
|
||||
endfunction()
|
||||
|
||||
function(generate_clang_module_map target_name)
|
||||
|
@ -51,7 +51,7 @@ function(generate_clang_module_map target_name)
|
|||
)
|
||||
|
||||
add_custom_target("generate_${target_name}_module_map" DEPENDS "${module_map_file}")
|
||||
add_dependencies(all_generated "generate_${target_name}_module_map")
|
||||
add_dependencies(ladybird_codegen_accumulator "generate_${target_name}_module_map")
|
||||
add_dependencies("${target_name}" "generate_${target_name}_module_map")
|
||||
|
||||
target_compile_options(${target_name} PUBLIC "SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xcc -ivfsoverlay${vfs_overlay_file}>")
|
||||
|
@ -72,7 +72,7 @@ function(compile_ipc source output)
|
|||
)
|
||||
get_filename_component(output_name ${output} NAME)
|
||||
add_custom_target(generate_${output_name} DEPENDS ${output})
|
||||
add_dependencies(all_generated generate_${output_name})
|
||||
add_dependencies(ladybird_codegen_accumulator generate_${output_name})
|
||||
|
||||
cmake_path(RELATIVE_PATH CMAKE_CURRENT_SOURCE_DIR BASE_DIRECTORY ${SerenityOS_SOURCE_DIR} OUTPUT_VARIABLE current_source_dir_relative)
|
||||
if (ENABLE_INSTALL_HEADERS)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue