32 lines
577 B
Meson
32 lines
577 B
Meson
|
project('bloody-gun',
|
||
|
'cpp',
|
||
|
version: '0.0.0',
|
||
|
default_options: [
|
||
|
'warning_level=3',
|
||
|
'cpp_std=c++17'
|
||
|
])
|
||
|
|
||
|
datadir = get_option('prefix') / get_option('datadir') / 'bloody_gun'
|
||
|
|
||
|
conf = configuration_data()
|
||
|
conf.set('version', meson.project_version())
|
||
|
conf.set('datadir', datadir)
|
||
|
|
||
|
configure_file(
|
||
|
input: 'src/conf.in.hpp',
|
||
|
output: 'conf.hpp',
|
||
|
configuration: conf
|
||
|
)
|
||
|
|
||
|
executable(
|
||
|
'bloody-gun',
|
||
|
sources: [
|
||
|
'src/main.cpp',
|
||
|
],
|
||
|
dependencies: [
|
||
|
],
|
||
|
install: true
|
||
|
)
|
||
|
|
||
|
install_subdir('assets', install_dir: datadir)
|