The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
631 B
31 lines
631 B
10 years ago
|
project('myapp', 'cpp')
|
||
10 years ago
|
|
||
|
sdl = dependency('sdl2')
|
||
|
|
||
10 years ago
|
if meson.get_compiler('cpp').get_id() != 'msvc'
|
||
10 years ago
|
add_global_arguments('-std=c++11', language : 'cpp')
|
||
|
endif
|
||
|
|
||
10 years ago
|
if host.name() == 'darwin'
|
||
|
install_data('myapp.sh',
|
||
|
install_dir : 'Contents/MacOS')
|
||
|
|
||
|
install_data('myapp.icns',
|
||
|
install_dir : 'Contents/Resources')
|
||
|
|
||
|
install_data('Info.plist',
|
||
|
install_dir : 'Contents')
|
||
|
|
||
|
meson.set_install_script('osx_bundler.sh')
|
||
|
endif
|
||
|
|
||
|
if host.name() == 'linux'
|
||
|
install_data('myapp.sh', install_dir : '.')
|
||
|
meson.set_install_script('linux_bundler.sh')
|
||
|
endif
|
||
|
|
||
|
|
||
10 years ago
|
prog = executable('myapp', 'myapp.cpp',
|
||
10 years ago
|
dependencies : sdl,
|
||
|
install : true)
|