Meta: Clean up generated CMake uservars

Prior to this change, running ./Meta/ladybird.sh rebuild would not
remove the user-variables.cmake file that was generated by the build
script. This caused errors when testing out the .devcontainer on my
Mac because the pkg-config binary lived in different dirs in the
container vs host.debug
This commit is contained in:
Cory Virok 2024-10-12 12:59:36 -07:00 committed by Andrew Kaster
parent fd5ee06bbf
commit 9336b14d15
Notes: github-actions[bot] 2024-10-12 21:38:19 +00:00

View file

@ -134,6 +134,10 @@ build_target() {
delete_target() { delete_target() {
[ ! -d "$BUILD_DIR" ] || rm -rf "$BUILD_DIR" [ ! -d "$BUILD_DIR" ] || rm -rf "$BUILD_DIR"
# Delete the vcpkg user variables created by this script if they exist
VCPKG_USER_VARS="$LADYBIRD_SOURCE_DIR/Meta/CMake/vcpkg/user-variables.cmake"
[ ! -f "$VCPKG_USER_VARS" ] || rm "$VCPKG_USER_VARS"
} }
build_vcpkg() { build_vcpkg() {