From fb8bc08a6748ef02b4378abf328aa2dcf9d54813 Mon Sep 17 00:00:00 2001 From: Jan Date: Thu, 13 Oct 2022 00:33:10 +0200 Subject: [PATCH] allow defining the arch tuple via meson (#1153) --- meson.build | 3 +++ meson_options.txt | 1 + 2 files changed, 4 insertions(+) diff --git a/meson.build b/meson.build index 49095390..adb7cebf 100644 --- a/meson.build +++ b/meson.build @@ -52,6 +52,9 @@ lite_cargs = ['-DSDL_MAIN_HANDLED', '-DPCRE2_STATIC'] if get_option('renderer') or host_machine.system() == 'darwin' lite_cargs += '-DLITE_USE_SDL_RENDERER' endif +if get_option('arch_tuple') != '' + lite_cargs += '-DLITE_ARCH_TUPLE="@0@"'.format(get_option('arch_tuple')) +endif #=============================================================================== # Linker Settings #=============================================================================== diff --git a/meson_options.txt b/meson_options.txt index 5d80efce..9cfcc353 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -3,3 +3,4 @@ option('source-only', type : 'boolean', value : false, description: 'Configure s option('portable', type : 'boolean', value : false, description: 'Portable install') option('renderer', type : 'boolean', value : false, description: 'Use SDL renderer') option('dirmonitor_backend', type : 'combo', value : '', choices : ['', 'inotify', 'fsevents', 'kqueue', 'win32', 'dummy'], description: 'define what dirmonitor backend to use') +option('arch_tuple', type : 'string', value : '', description: 'Specify a custom architecture tuple') \ No newline at end of file