summaryrefslogtreecommitdiff
path: root/caja/meson.build
diff options
context:
space:
mode:
authorzhuyaliang <[email protected]>2023-05-19 17:05:11 +0800
committerLuke from DC <[email protected]>2023-05-23 03:04:29 +0000
commite4cdb9e1a846390bafef8e36085242f793464edd (patch)
tree668a8ff5d5d66d33db111d2e6cd3f72df16afaab /caja/meson.build
parent41a0cad8fafe515f56854462dd62c1b1bd94a393 (diff)
downloadengrampa-e4cdb9e1a846390bafef8e36085242f793464edd.tar.bz2
engrampa-e4cdb9e1a846390bafef8e36085242f793464edd.tar.xz
Add meson compilation support
Diffstat (limited to 'caja/meson.build')
-rw-r--r--caja/meson.build37
1 files changed, 37 insertions, 0 deletions
diff --git a/caja/meson.build b/caja/meson.build
new file mode 100644
index 0000000..2324719
--- /dev/null
+++ b/caja/meson.build
@@ -0,0 +1,37 @@
+shared_module('caja-engrampa',
+ sources : [
+ 'caja-engrampa.c',
+ 'engrampa-module.c'
+ ],
+ dependencies : [
+ libm_dep,
+ thread_dep,
+ glib_dep,
+ gthread_dep,
+ gtk_dep,
+ libcaja_extension_dep,
+ use_json_glib ? libjson_glib_dep : [],
+ ],
+ include_directories : config_inc,
+ c_args : c_args,
+ install : true,
+ install_dir : libcaja_extension_dep.get_pkgconfig_variable('extensiondir')
+)
+
+desktop_data = configuration_data()
+desktop_data.set('VERSION', meson.project_version())
+desktop_data.set('PACKAGE_URL', 'https://mate-desktop.org')
+desktop_in_file = configure_file(
+ input : 'libcaja-engrampa.caja-extension.desktop.in.in',
+ output : 'libcaja-engrampa.caja-extension.desktop.in',
+ configuration : desktop_data
+)
+
+i18n.merge_file(
+ input : desktop_in_file,
+ output : 'libcaja-engrampa.caja-extension',
+ type : 'desktop',
+ po_dir : po_dir,
+ install : true,
+ install_dir : join_paths(datadir, 'caja', 'extensions')
+)