summaryrefslogtreecommitdiff
path: root/capplets/default-applications
diff options
context:
space:
mode:
Diffstat (limited to 'capplets/default-applications')
-rw-r--r--capplets/default-applications/icons/meson.build15
-rw-r--r--capplets/default-applications/meson.build54
2 files changed, 69 insertions, 0 deletions
diff --git a/capplets/default-applications/icons/meson.build b/capplets/default-applications/icons/meson.build
new file mode 100644
index 00000000..4311ee95
--- /dev/null
+++ b/capplets/default-applications/icons/meson.build
@@ -0,0 +1,15 @@
+categories_icons = [
+ ['16x16', 'instant-messaging.png'],
+ ['22x22', 'instant-messaging.png'],
+ ['24x24', 'instant-messaging.png'],
+ ['32x32', 'instant-messaging.png'],
+ ['48x48', 'instant-messaging.png'],
+ ['256x256', 'instant-messaging.png'],
+]
+
+foreach icon: categories_icons
+ install_data(
+ join_paths(icon[0], 'categories', icon[1]),
+ install_dir: join_paths(mcc_icondir, 'hicolor', icon[0], 'categories')
+ )
+endforeach
diff --git a/capplets/default-applications/meson.build b/capplets/default-applications/meson.build
new file mode 100644
index 00000000..3c85cf49
--- /dev/null
+++ b/capplets/default-applications/meson.build
@@ -0,0 +1,54 @@
+desktop = 'mate-default-applications-properties.desktop'
+
+i18n.merge_file(
+ type: 'desktop',
+ input: desktop + '.in',
+ output: desktop,
+ po_dir: po_dir,
+ install: true,
+ install_dir: mcc_desktopdir
+)
+
+sources = files(
+ 'mate-da-capplet.c'
+)
+
+sources += gnome.compile_resources(
+ 'mate-default-applications-properties-resources',
+ 'org.mate.mcc.da.gresource.xml',
+ c_name: 'default_applications',
+ export: true
+)
+
+cflags += [
+ '-DAPPLICATIONSDIR="@0@"'.format(mcc_desktopdir),
+]
+
+executable(
+ 'mate-default-applications-properties',
+ sources : sources,
+ include_directories: config_inc,
+ dependencies : [common_deps, libcommon_dep],
+ c_args : cflags,
+ install : true,
+ install_dir : get_option('bindir')
+)
+
+pc_conf = configuration_data()
+pc_conf.set('prefix', mcc_prefix)
+pc_conf.set('datarootdir', mcc_datadir)
+pc_conf.set('datadir', mcc_datadir)
+pc_conf.set('PACKAGE', meson.project_name())
+pc_conf.set('VERSION', meson.project_version())
+
+pc = 'mate-default-applications.pc'
+
+configure_file(
+ input: pc + '.in',
+ output: pc,
+ install: true,
+ install_dir: join_paths(mcc_libdir, 'pkgconfig'),
+ configuration: pc_conf
+)
+
+subdir('icons')