aboutsummaryrefslogtreecommitdiffstats
path: root/examples/pugl_embed_demo.app
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-05-20 10:41:34 -0400
committerDavid Robillard <d@drobilla.net>2022-05-20 13:17:45 -0400
commit1118da579607bac768ae953fecadb6153818488d (patch)
tree67ff1ae9f7400be070ee30284b5d0bcdbb834b22 /examples/pugl_embed_demo.app
parentd6ad1b79b97974ad3e3bd2a1b2c7474f0dd797b0 (diff)
downloadpugl-1118da579607bac768ae953fecadb6153818488d.tar.gz
pugl-1118da579607bac768ae953fecadb6153818488d.tar.bz2
pugl-1118da579607bac768ae953fecadb6153818488d.zip
MacOS: Build examples as application bundles
This is required on MacOS to make the examples usable. When run as bare programs, they don't show up as normal windows or receive keyboard input.
Diffstat (limited to 'examples/pugl_embed_demo.app')
-rw-r--r--examples/pugl_embed_demo.app/MacOS/meson.build7
-rw-r--r--examples/pugl_embed_demo.app/meson.build8
2 files changed, 15 insertions, 0 deletions
diff --git a/examples/pugl_embed_demo.app/MacOS/meson.build b/examples/pugl_embed_demo.app/MacOS/meson.build
new file mode 100644
index 0000000..4ad3781
--- /dev/null
+++ b/examples/pugl_embed_demo.app/MacOS/meson.build
@@ -0,0 +1,7 @@
+executable(
+ 'pugl_embed_demo',
+ '../../pugl_embed_demo.c',
+ include_directories: include_directories('../../../../include', '../../..'),
+ c_args: example_defines + example_c_args,
+ cpp_args: example_defines + example_cpp_args,
+ dependencies: [pugl_dep, gl_backend_dep])
diff --git a/examples/pugl_embed_demo.app/meson.build b/examples/pugl_embed_demo.app/meson.build
new file mode 100644
index 0000000..3913bad
--- /dev/null
+++ b/examples/pugl_embed_demo.app/meson.build
@@ -0,0 +1,8 @@
+config = configuration_data()
+config.set('NAME', 'pugl_embed_demo')
+
+info_plist = configure_file(configuration: config,
+ input: files('../../resources/Info.plist.in'),
+ output: 'Info.plist')
+
+subdir('MacOS')