Skip to content

Commit

Permalink
scons installs vcpkg deps
Browse files Browse the repository at this point in the history
  • Loading branch information
pkdawson committed Mar 28, 2024
1 parent 73d60fe commit dbb0662
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 6 additions & 2 deletions gdext/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,16 @@ if config == "release":

if windows:
triplet = "x64-windows-static"
if not os.path.exists("vcpkg_installed"):
subprocess.call(f"%VCPKG_ROOT%/vcpkg install --triplet {triplet}", shell=True)
elif linux:
triplet = "x64-linux"
if not os.path.exists("vcpkg_installed"):
subprocess.call("$VCPKG_ROOT/vcpkg install", shell=True)
else:
if not os.path.exists("vcpkg_installed/arm64-osx"):
subprocess.call("zsh scripts/vcpkg-macos.sh", shell=True)
triplet = "arm64-osx"
if not os.path.exists("vcpkg_installed"):
subprocess.call("zsh scripts/vcpkg-macos.sh", shell=True)

if not os.path.exists("gen/imgui_bindings.gen.h"):
subprocess.call("python scripts/gds_bindings.py", shell=True)
Expand Down
3 changes: 1 addition & 2 deletions gdext/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"dependencies": [
"freetype",
"lunasvg"
"freetype"
]
}

0 comments on commit dbb0662

Please sign in to comment.