aboutsummaryrefslogtreecommitdiffstats
path: root/examples/pugl_shader_demo.app
diff options
context:
space:
mode:
Diffstat (limited to 'examples/pugl_shader_demo.app')
-rw-r--r--examples/pugl_shader_demo.app/MacOS/meson.build11
-rw-r--r--examples/pugl_shader_demo.app/Resources/meson.build12
-rw-r--r--examples/pugl_shader_demo.app/meson.build21
3 files changed, 44 insertions, 0 deletions
diff --git a/examples/pugl_shader_demo.app/MacOS/meson.build b/examples/pugl_shader_demo.app/MacOS/meson.build
new file mode 100644
index 0000000..3eb9ae1
--- /dev/null
+++ b/examples/pugl_shader_demo.app/MacOS/meson.build
@@ -0,0 +1,11 @@
+executable(
+ 'pugl_shader_demo',
+ [
+ '../../file_utils.c',
+ '../../glad/glad.c',
+ '../../pugl_shader_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, dl_dep])
diff --git a/examples/pugl_shader_demo.app/Resources/meson.build b/examples/pugl_shader_demo.app/Resources/meson.build
new file mode 100644
index 0000000..87e3a71
--- /dev/null
+++ b/examples/pugl_shader_demo.app/Resources/meson.build
@@ -0,0 +1,12 @@
+shaders = [
+ 'header_330.glsl',
+ 'header_420.glsl',
+ 'rect.vert',
+ 'rect.frag',
+]
+
+foreach shader : shaders
+ configure_file(input: files('..' / '..' / 'shaders' / shader),
+ output: shader,
+ copy: true)
+endforeach
diff --git a/examples/pugl_shader_demo.app/meson.build b/examples/pugl_shader_demo.app/meson.build
new file mode 100644
index 0000000..82b4a34
--- /dev/null
+++ b/examples/pugl_shader_demo.app/meson.build
@@ -0,0 +1,21 @@
+config = configuration_data()
+config.set('NAME', 'pugl_shader_demo')
+
+info_plist = configure_file(configuration: config,
+ input: files('../../resources/Info.plist.in'),
+ output: 'Info.plist')
+
+shaders = [
+ 'header_330.glsl',
+ 'header_420.glsl',
+ 'rect.vert',
+ 'rect.frag',
+]
+
+foreach shader : shaders
+ configure_file(input: files('..' / 'shaders' / shader),
+ output: shader,
+ copy: true)
+endforeach
+
+subdir('MacOS')