mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 15:49:11 +00:00
Meta: Read vcpkg baseline revision from vcpkg.json
Just so we only have to update one location when we update the baseline.
This commit is contained in:
parent
2c13504bfc
commit
16c535a6d2
Notes:
github-actions[bot]
2025-04-22 23:31:01 +00:00
Author: https://github.com/trflynn89
Commit: 16c535a6d2
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4433
1 changed files with 6 additions and 2 deletions
|
@ -1,16 +1,20 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
import json
|
||||||
import os
|
import os
|
||||||
import subprocess
|
|
||||||
import pathlib
|
import pathlib
|
||||||
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
||||||
def main() -> int:
|
def main() -> int:
|
||||||
script_dir = pathlib.Path(__file__).parent.resolve()
|
script_dir = pathlib.Path(__file__).parent.resolve()
|
||||||
|
|
||||||
|
with open(script_dir.parent / "vcpkg.json", "r") as vcpkg_json_file:
|
||||||
|
vcpkg_json = json.load(vcpkg_json_file)
|
||||||
|
|
||||||
git_repo = "https://github.com/microsoft/vcpkg.git"
|
git_repo = "https://github.com/microsoft/vcpkg.git"
|
||||||
git_rev = "d6995a0cf3cafda5e9e52749fad075dd62bfd90c" # main on 2025-05-22
|
git_rev = vcpkg_json["builtin-baseline"]
|
||||||
|
|
||||||
build_dir = script_dir.parent / "Build"
|
build_dir = script_dir.parent / "Build"
|
||||||
build_dir.mkdir(parents=True, exist_ok=True)
|
build_dir.mkdir(parents=True, exist_ok=True)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue