diff options
Diffstat (limited to 'examples/pugl_vulkan_cpp_demo.app')
-rw-r--r-- | examples/pugl_vulkan_cpp_demo.app/MacOS/meson.build | 10 | ||||
-rw-r--r-- | examples/pugl_vulkan_cpp_demo.app/meson.build | 27 |
2 files changed, 37 insertions, 0 deletions
diff --git a/examples/pugl_vulkan_cpp_demo.app/MacOS/meson.build b/examples/pugl_vulkan_cpp_demo.app/MacOS/meson.build new file mode 100644 index 0000000..2ff4e87 --- /dev/null +++ b/examples/pugl_vulkan_cpp_demo.app/MacOS/meson.build @@ -0,0 +1,10 @@ +executable( + 'pugl_vulkan_cpp_demo', + [ + '../../pugl_vulkan_cpp_demo.cpp', + '../../file_utils.c', + ], + include_directories: include_directories('../../../../include', '../../..'), + c_args: example_defines + example_c_args, + cpp_args: example_defines + example_cpp_args, + dependencies: [puglpp_dep, vulkan_backend_dep]) diff --git a/examples/pugl_vulkan_cpp_demo.app/meson.build b/examples/pugl_vulkan_cpp_demo.app/meson.build new file mode 100644 index 0000000..90b2329 --- /dev/null +++ b/examples/pugl_vulkan_cpp_demo.app/meson.build @@ -0,0 +1,27 @@ +config = configuration_data() +config.set('NAME', 'pugl_vulkan_cpp_demo') + +info_plist = configure_file(configuration: config, + input: files('../../resources/Info.plist.in'), + output: 'Info.plist') + +shaders = [ + 'rect.frag.spv', + 'rect.vert.spv', +] + +cp = find_program('../../scripts/cp.py') + +custom_target('rect.vert.spv', + input: rect_vert_spv, + output: 'rect.vert.spv', + command: [cp, '@INPUT@', '@OUTPUT@'], + build_by_default: true) + +custom_target('rect.frag.spv', + input: rect_frag_spv, + output: 'rect.frag.spv', + command: [cp, '@INPUT@', '@OUTPUT@'], + build_by_default: true) + +subdir('MacOS') |