summaryrefslogtreecommitdiffstats
path: root/js/misc/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'js/misc/meson.build')
-rw-r--r--js/misc/meson.build15
1 files changed, 15 insertions, 0 deletions
diff --git a/js/misc/meson.build b/js/misc/meson.build
new file mode 100644
index 0000000..2702c3d
--- /dev/null
+++ b/js/misc/meson.build
@@ -0,0 +1,15 @@
+jsconf = configuration_data()
+jsconf.set('PACKAGE_NAME', meson.project_name())
+jsconf.set('PACKAGE_VERSION', meson.project_version())
+jsconf.set('GETTEXT_PACKAGE', meson.project_name())
+jsconf.set('LIBMUTTER_API_VERSION', mutter_api_version)
+jsconf.set10('HAVE_BLUETOOTH', bt_dep.found())
+jsconf.set10('HAVE_NETWORKMANAGER', have_networkmanager)
+jsconf.set('datadir', datadir)
+jsconf.set('libexecdir', libexecdir)
+
+config_js = configure_file(
+ input: 'config.js.in',
+ output: 'config.js',
+ configuration: jsconf
+)