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,16 +238,17 @@ imgui_options = [
sizeof_ptr = cc.sizeof('void*')
if sizeof_ptr == 8
pre_args += '-DMANGOHUD_ARCH="64bit"'
if get_option('mangoapp')
imgui_options += [
'opengl=enabled',
'glfw=enabled',
]
endif
elif sizeof_ptr == 4
pre_args += '-DMANGOHUD_ARCH="32bit"'
endif
if get_option('mangoapp')
imgui_options += [
'opengl=enabled',
'glfw=enabled',
]
endif
dearimgui_sp = subproject('imgui', default_options: imgui_options)
dearimgui_dep = dearimgui_sp.get_variable('imgui_dep')

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

Loading…
Cancel
Save