Skip to content

Commit

Permalink
update build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
pkdawson committed Mar 28, 2024
1 parent 809c237 commit 73d60fe
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
12 changes: 8 additions & 4 deletions gdext/SConstruct
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env python
from glob import glob
from pathlib import Path
import os
import shutil
import subprocess

Expand All @@ -22,10 +23,12 @@ if windows:
elif linux:
triplet = "x64-linux"
else:
subprocess.call("zsh vcpkg-macos.sh", shell=True)
if not os.path.exists("vcpkg_installed/arm64-osx"):
subprocess.call("zsh scripts/vcpkg-macos.sh", shell=True)
triplet = "arm64-osx"

subprocess.call("python gds_bindings.py", shell=True)
if not os.path.exists("gen/imgui_bindings.gen.h"):
subprocess.call("python scripts/gds_bindings.py", shell=True)

sources = Glob("src/*.cpp") + Glob("imgui/*.cpp") + Glob("gen/*.cpp")

Expand All @@ -39,12 +42,13 @@ libs = [env["LIBS"]]

env.Append(CPPPATH=["imgui/misc/freetype/"])
env.Append(CPPPATH=[f"vcpkg_installed/{triplet}/include"])
env.Append(CPPDEFINES=["IMGUI_ENABLE_FREETYPE"]) #, "IMGUI_ENABLE_FREETYPE_LUNASVG"])
env.Append(CPPDEFINES=["IMGUI_ENABLE_FREETYPE"])
# env.Append(CPPDEFINES=["IMGUI_ENABLE_FREETYPE_LUNASVG"])
sources += Glob("imgui/misc/freetype/*.cpp")
libpath += [f"vcpkg_installed/{triplet}/lib"]
libs += [
"freetype",
# "lunasvg",
# "lunasvg",
"bz2",
"libpng16" if windows else "png16",
"zlib" if windows else "z",
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 73d60fe

Please sign in to comment.