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