mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
CMake: Rename serenity_* helper functions/macros to ladybird_*
This commit is contained in:
parent
100b204a68
commit
25f5936dee
Notes:
github-actions[bot]
2025-07-03 21:21:29 +00:00
Author: https://github.com/ayeteadoe
Commit: 25f5936dee
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5249
Reviewed-by: https://github.com/gmta ✅
53 changed files with 104 additions and 104 deletions
|
@ -1,7 +1,7 @@
|
|||
|
||||
include(${CMAKE_CURRENT_LIST_DIR}/code_generators.cmake)
|
||||
|
||||
function(serenity_generated_sources target_name)
|
||||
function(ladybird_generated_sources target_name)
|
||||
if(DEFINED GENERATED_SOURCES)
|
||||
set_source_files_properties(${GENERATED_SOURCES} PROPERTIES GENERATED 1)
|
||||
foreach(generated ${GENERATED_SOURCES})
|
||||
|
@ -12,13 +12,13 @@ function(serenity_generated_sources target_name)
|
|||
endif()
|
||||
endfunction()
|
||||
|
||||
function(serenity_testjs_test test_src sub_dir)
|
||||
function(ladybird_testjs_test test_src sub_dir)
|
||||
cmake_parse_arguments(PARSE_ARGV 2 SERENITY_TEST "" "CUSTOM_MAIN" "LIBS")
|
||||
if ("${SERENITY_TEST_CUSTOM_MAIN}" STREQUAL "")
|
||||
set(SERENITY_TEST_CUSTOM_MAIN "$<TARGET_OBJECTS:JavaScriptTestRunnerMain>")
|
||||
endif()
|
||||
list(APPEND SERENITY_TEST_LIBS LibJS LibCore LibFileSystem)
|
||||
serenity_test(${test_src} ${sub_dir}
|
||||
ladybird_test(${test_src} ${sub_dir}
|
||||
CUSTOM_MAIN "${SERENITY_TEST_CUSTOM_MAIN}"
|
||||
LIBS ${SERENITY_TEST_LIBS})
|
||||
endfunction()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue