blob: 8af9fa114afcd3a8d456c9f78ba2c1e4188dadb8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
project('myapp', 'c')
sdl = dependency('sdl2')
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
prog = executable('myapp', 'myapp.c',
dependencies : sdl,
install : true)
|