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)