From ba73ad5b1cdbdbdcf24562842f624d24588c0b5c Mon Sep 17 00:00:00 2001 From: Peter Li Date: Wed, 9 Apr 2025 21:42:56 -0700 Subject: [PATCH] updating build script --- lib/sdl3/shadercross/build_shadercross.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/sdl3/shadercross/build_shadercross.py b/lib/sdl3/shadercross/build_shadercross.py index 0f446f1..4932c08 100755 --- a/lib/sdl3/shadercross/build_shadercross.py +++ b/lib/sdl3/shadercross/build_shadercross.py @@ -30,6 +30,15 @@ WORKING_DIR = os.path.join(origDir, "build_temp") os.makedirs(WORKING_DIR, exist_ok=True) BIN_INSTALL_DIR = os.path.join(origDir, 'bin') + + from sys import platform +if platform == "linux" or platform == "linux2": + BIN_INSTALL_DIR = os.path.join(BIN_INSTALL_DIR, 'linux') +elif platform == "darwin": + BIN_INSTALL_DIR = os.path.join(BIN_INSTALL_DIR, 'osx') +elif platform == "win32": + BIN_INSTALL_DIR = os.path.join(BIN_INSTALL_DIR, 'win64') + LIB_INSTALL_DIR = BIN_INSTALL_DIR #os.path.join(origDir, 'lib') os.makedirs(BIN_INSTALL_DIR, exist_ok=True)