You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
621 B
18 lines
621 B
Import('env', 'arch', 'common')
|
|
|
|
renv = env.Clone()
|
|
|
|
rayutil = env.Library("rayutil", ['raylib/util.cc'], LIBS='raylib')
|
|
linked_libs = ['raylib', rayutil, common]
|
|
renv['LIBPATH'] += [f'#third_party/raylib/{arch}/']
|
|
|
|
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']
|
|
|
|
if arch != 'aarch64':
|
|
renv.Program("spinner", ["raylib/spinner.cc"], LIBS=linked_libs, FRAMEWORKS=mac_frameworks)
|
|
|