aboutsummaryrefslogtreecommitdiff
path: root/manual tests/4 standalone binaries/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'manual tests/4 standalone binaries/meson.build')
-rw-r--r--manual tests/4 standalone binaries/meson.build30
1 files changed, 30 insertions, 0 deletions
diff --git a/manual tests/4 standalone binaries/meson.build b/manual tests/4 standalone binaries/meson.build
new file mode 100644
index 0000000..e5e6ee0
--- /dev/null
+++ b/manual tests/4 standalone binaries/meson.build
@@ -0,0 +1,30 @@
+project('myapp', 'cpp')
+
+sdl = dependency('sdl2')
+
+if meson.get_compiler('cpp').get_id() != 'msvc'
+ add_global_arguments('-std=c++11', language : 'cpp')
+endif
+
+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.cpp',
+dependencies : sdl,
+install : true)