From d3229bb898a52e39668e4e73407a6e82776549a7 Mon Sep 17 00:00:00 2001 From: Andrey Nazarov Date: Sat, 1 Oct 2022 21:19:11 +0300 Subject: [PATCH] Allow overriding game build options. --- meson.build | 1 + meson_options.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/meson.build b/meson.build index 167321c69..09433cf8a 100644 --- a/meson.build +++ b/meson.build @@ -397,6 +397,7 @@ shared_library('game' + cpu, game_src, link_args: dll_link_args, install: system_wide, install_dir: libdir / get_option('base-game'), + override_options: get_option('game-build-options'), ) config.set('REVISION', meson.project_version().substring(1).split('~')[0].to_int()) diff --git a/meson_options.txt b/meson_options.txt index f3ab738ca..37e3dafe9 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -6,6 +6,7 @@ option('client-ui', type: 'boolean', value: true, description: 'client UI') option('default-game', type: 'string', value: '', description: 'default game directory') option('dynamic-lights', type: 'boolean', value: true, description: 'dynamic lighting') option('game-abi-hack', type: 'feature', value: 'disabled', description: 'game ABI compat hack') +option('game-build-options', type: 'array', value: [], description: 'game build options') option('homedir', type: 'string', value: '~/.q2pro', description: 'default home directory') option('icmp-errors', type: 'feature', value: 'auto', description: 'handle ICMP errors') option('libcurl', type: 'feature', value: 'auto', description: 'libcurl support')