Truly independent web browser
Meta: Silence macOS codesigning information warnings
Timothy Flynnfa435dc0f320
diff --git a/Meta/CMake/ladybird_helper_processes.cmake b/Meta/CMake/ladybird_helper_processes.cmakeindex f4d5e76205d..5ae050a370d 100644--- a/Meta/CMake/ladybird_helper_processes.cmake+++ b/Meta/CMake/ladybird_helper_processes.cmake@@ -54,8 +54,6 @@ function(ladybird_sign_helper_process target)install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${target}.release.entitlements" DESTINATION entitlementsCOMPONENT ladybird_Runtime)- add_custom_command(TARGET ${target} POST_BUILD- COMMAND codesign -s - -f -o runtime --entitlements "${entitlements_file}" "$<TARGET_FILE:${target}>"- VERBATIM- )+ ladybird_codesign_command(codesign_command "${target}" "${entitlements_file}" -o runtime "$<TARGET_FILE:${target}>")+ add_custom_command(TARGET ${target} POST_BUILD COMMAND ${codesign_command} VERBATIM)endfunction()diff --git a/Meta/CMake/utils.cmake b/Meta/CMake/utils.cmakeindex b6d12feaf10..2431e6053c3 100644--- a/Meta/CMake/utils.cmake+++ b/Meta/CMake/utils.cmake@@ -12,6 +12,17 @@ function(ladybird_generated_sources target_name)endif()endfunction()+function(ladybird_codesign_command output name entitlements_file)+ set(${output}+ "${CMAKE_COMMAND}"+ "-DLOG=${CMAKE_CURRENT_BINARY_DIR}/${name}-codesign.log"+ -P "${CMAKE_CURRENT_FUNCTION_LIST_DIR}/run_quiet.cmake"+ --+ codesign -s - -f --entitlements "${entitlements_file}" ${ARGN}+ PARENT_SCOPE+ )+endfunction()+function(ladybird_testjs_test test_src sub_dir)cmake_parse_arguments(PARSE_ARGV 2 LADYBIRD_TEST "NO_TEST" "CUSTOM_MAIN;NAME" "LIBS")if ("${LADYBIRD_TEST_CUSTOM_MAIN}" STREQUAL "")diff --git a/UI/CMakeLists.txt b/UI/CMakeLists.txtindex f79827cf8aa..e0bc60fd6ee 100644--- a/UI/CMakeLists.txt+++ b/UI/CMakeLists.txt@@ -33,9 +33,8 @@ function(create_ladybird_bundle target_name)COMMAND "${CMAKE_COMMAND}" -E create_symlink "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}" "${bundle_dir}/Contents/lib")- add_custom_command(TARGET ${target_name} POST_BUILD- COMMAND codesign -s - -v -f --entitlements "${LADYBIRD_ENTITLEMENTS_FILE}" "${bundle_dir}"- )+ ladybird_codesign_command(codesign_command "${target_name}" "${LADYBIRD_ENTITLEMENTS_FILE}" -v "${bundle_dir}")+ add_custom_command(TARGET ${target_name} POST_BUILD COMMAND ${codesign_command} VERBATIM)endif()if (APPLE)@@ -116,9 +115,11 @@ if (APPLE)# WebDriver and the helpers can link into the bundle after ladybird has signed it — and that leaves the seal stale# until something later relinks ladybird. Sign once more with everything in place.set(bundle_signed_stamp "${CMAKE_CURRENT_BINARY_DIR}/ladybird_bundle_signed.stamp")+ ladybird_codesign_command(codesign_command ladybird-bundle "${LADYBIRD_ENTITLEMENTS_FILE}" -v "$<TARGET_BUNDLE_DIR:ladybird>")+add_custom_command(OUTPUT "${bundle_signed_stamp}"- COMMAND codesign -s - -v -f --entitlements "${LADYBIRD_ENTITLEMENTS_FILE}" "$<TARGET_BUNDLE_DIR:ladybird>"+ COMMAND ${codesign_command}COMMAND "${CMAKE_COMMAND}" -E touch "${bundle_signed_stamp}"DEPENDS ladybird WebDriver ${ladybird_helper_processes} "${LADYBIRD_ENTITLEMENTS_FILE}"VERBATIM