Skip to content

Commit

Permalink
Allow overriding game build options.
Browse files Browse the repository at this point in the history
  • Loading branch information
skullernet committed Oct 1, 2022
1 parent ad90930 commit d3229bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
1 change: 1 addition & 0 deletions meson_options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit d3229bb

Please sign in to comment.