Use GLES on ARM

This commit is contained in:
Zachary Hall 2023-07-17 16:49:31 -07:00
parent 03c596c3ce
commit cafced3bdb

View file

@ -6,7 +6,7 @@ cmake = import('cmake')
if get_option('debug')
add_global_arguments('-DDEBUG', language: 'cpp')
endif
if get_option('gles')
if get_option('gles') or target_machine.cpu_family() == 'aarch64' or target_machine.cpu_family() == 'arm'
add_global_arguments('-DIMGUI_IMPL_OPENGL_ES2', language: 'cpp')
endif
# SDL Mixer X
@ -26,7 +26,7 @@ deps = [
smx_subproj.dependency('SDL2_mixer_ext_Static')
]
if get_option('portals') and host_machine.system() == 'linux'
if get_option('portals') and target_machine.system() == 'linux'
# Dbus CXX
deps += dependency('libportal')
opts += '-DPORTALS'