From 1118da579607bac768ae953fecadb6153818488d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 20 May 2022 10:41:34 -0400 Subject: 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. --- examples/pugl_cairo_demo.app/MacOS/meson.build | 7 +++++++ examples/pugl_cairo_demo.app/meson.build | 8 ++++++++ 2 files changed, 15 insertions(+) create mode 100644 examples/pugl_cairo_demo.app/MacOS/meson.build create mode 100644 examples/pugl_cairo_demo.app/meson.build (limited to 'examples/pugl_cairo_demo.app') diff --git a/examples/pugl_cairo_demo.app/MacOS/meson.build b/examples/pugl_cairo_demo.app/MacOS/meson.build new file mode 100644 index 0000000..d50da8a --- /dev/null +++ b/examples/pugl_cairo_demo.app/MacOS/meson.build @@ -0,0 +1,7 @@ +executable( + 'pugl_cairo_demo', + ['../../pugl_cairo_demo.c'], + include_directories: include_directories('../../../../include', '../../..'), + c_args: example_defines + example_c_args, + cpp_args: example_defines + example_cpp_args, + dependencies: [pugl_dep, cairo_backend_dep]) diff --git a/examples/pugl_cairo_demo.app/meson.build b/examples/pugl_cairo_demo.app/meson.build new file mode 100644 index 0000000..59793e1 --- /dev/null +++ b/examples/pugl_cairo_demo.app/meson.build @@ -0,0 +1,8 @@ +config = configuration_data() +config.set('NAME', 'pugl_cairo_demo') + +info_plist = configure_file(configuration: config, + input: files('../../resources/Info.plist.in'), + output: 'Info.plist') + +subdir('MacOS') -- cgit v1.2.1