2024-12-03 19:58:00 -08:00
|
|
|
import subprocess
|
|
|
|
|
|
2024-11-05 01:07:07 +08:00
|
|
|
Import('env', 'arch', 'common')
|
|
|
|
|
|
2024-11-28 11:48:48 -08:00
|
|
|
renv = env.Clone()
|
|
|
|
|
|
2025-02-09 13:41:11 -08:00
|
|
|
rayutil = env.Library("rayutil", ['raylib/util.cc'], LIBS='raylib')
|
|
|
|
|
linked_libs = ['raylib', rayutil, common]
|
|
|
|
|
renv['LIBPATH'] += [f'#third_party/raylib/{arch}/']
|
2024-12-03 19:58:00 -08:00
|
|
|
|
2025-02-09 13:41:11 -08:00
|
|
|
mac_frameworks = []
|
|
|
|
|
if arch == "Darwin":
|
|
|
|
|
mac_frameworks += ['OpenCL', 'CoreVideo', 'Cocoa', 'GLUT', 'CoreFoundation', 'OpenGL', 'IOKit']
|
|
|
|
|
elif arch == 'larch64':
|
|
|
|
|
linked_libs += ['GLESv2', 'GL', 'EGL', 'wayland-client', 'wayland-egl']
|
|
|
|
|
else:
|
|
|
|
|
linked_libs += ['OpenCL', 'dl', 'pthread']
|
2024-11-05 01:07:07 +08:00
|
|
|
|
2025-02-09 13:41:11 -08:00
|
|
|
if arch != 'aarch64':
|
|
|
|
|
renv.Program("spinner", ["raylib/spinner.cc"], LIBS=linked_libs, FRAMEWORKS=mac_frameworks)
|