mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-15 03:53:58 +08:00
use vendored raylib from dependencies repo (#37489)
This commit is contained in:
@@ -16,12 +16,17 @@ env.Command(
|
||||
action=f"python3 {generator}",
|
||||
)
|
||||
|
||||
try:
|
||||
import raylib
|
||||
except ImportError:
|
||||
raylib = None
|
||||
|
||||
if GetOption('extras') and arch == "larch64":
|
||||
if GetOption('extras') and arch == "larch64" and raylib is not None:
|
||||
# build installers
|
||||
if arch != "Darwin":
|
||||
raylib_env = env.Clone()
|
||||
raylib_env['LIBPATH'] += [f'#third_party/raylib/{arch}/']
|
||||
raylib_env['CPPPATH'] += [raylib.INCLUDE_DIR]
|
||||
raylib_env['LIBPATH'] += [raylib.LIB_DIR]
|
||||
raylib_env['LINKFLAGS'].append('-Wl,-strip-debug')
|
||||
|
||||
raylib_libs = common + ["raylib"]
|
||||
|
||||
Reference in New Issue
Block a user