Build mangoapp and mangohudctl for any CPU architecture

On 32-bit-only machines, building these for the 32-bit architecture makes sense.

Signed-off-by: Simon McVittie <smcv@debian.org>
pull/847/head
Stephan Lachnit 2 years ago committed by flightlessmango
parent b46908bdbc
commit b8b6d61b25

@ -238,14 +238,15 @@ imgui_options = [
sizeof_ptr = cc.sizeof('void*') sizeof_ptr = cc.sizeof('void*')
if sizeof_ptr == 8 if sizeof_ptr == 8
pre_args += '-DMANGOHUD_ARCH="64bit"' pre_args += '-DMANGOHUD_ARCH="64bit"'
if get_option('mangoapp') elif sizeof_ptr == 4
pre_args += '-DMANGOHUD_ARCH="32bit"'
endif
if get_option('mangoapp')
imgui_options += [ imgui_options += [
'opengl=enabled', 'opengl=enabled',
'glfw=enabled', 'glfw=enabled',
] ]
endif
elif sizeof_ptr == 4
pre_args += '-DMANGOHUD_ARCH="32bit"'
endif endif
dearimgui_sp = subproject('imgui', default_options: imgui_options) dearimgui_sp = subproject('imgui', default_options: imgui_options)

@ -215,7 +215,7 @@ if is_unixy
) )
endif endif
if get_option('mangoapp') and sizeof_ptr == 8 if get_option('mangoapp')
pre_args += '-DIMGUI_IMPL_OPENGL_LOADER_GLEW' pre_args += '-DIMGUI_IMPL_OPENGL_LOADER_GLEW'
pre_args += '-DMANGOAPP' pre_args += '-DMANGOAPP'
mangoapp = executable( mangoapp = executable(
@ -254,7 +254,7 @@ if get_option('mangoapp') and sizeof_ptr == 8
) )
endif endif
if get_option('mangohudctl') and sizeof_ptr == 8 if get_option('mangohudctl')
mangoapp = executable( mangoapp = executable(
'mangohudctl', 'mangohudctl',
files('app/control.cpp'), files('app/control.cpp'),

Loading…
Cancel
Save