summaryrefslogtreecommitdiffstats
path: root/win32/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'win32/meson.build')
-rw-r--r--win32/meson.build12
1 files changed, 12 insertions, 0 deletions
diff --git a/win32/meson.build b/win32/meson.build
new file mode 100644
index 0000000..9226312
--- /dev/null
+++ b/win32/meson.build
@@ -0,0 +1,12 @@
+version_arr = meson.project_version().split('.')
+version_config = configuration_data()
+version_config.set('PL_MAJOR', version_arr[0])
+version_config.set('PL_MINOR', version_arr[1])
+version_config.set('PL_PATCH', version_arr[2])
+
+libplacebo_rc = configure_file(input: 'libplacebo.rc.in',
+ output: 'libplacebo.rc',
+ configuration: version_config)
+demos_rc = configure_file(input: 'demos.rc.in',
+ output: 'demos.rc',
+ configuration: version_config)