aboutsummaryrefslogtreecommitdiff
path: root/manual tests/3 standalone binaries/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'manual tests/3 standalone binaries/meson.build')
-rw-r--r--manual tests/3 standalone binaries/meson.build26
1 files changed, 26 insertions, 0 deletions
diff --git a/manual tests/3 standalone binaries/meson.build b/manual tests/3 standalone binaries/meson.build
new file mode 100644
index 0000000..8af9fa1
--- /dev/null
+++ b/manual tests/3 standalone binaries/meson.build
@@ -0,0 +1,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)