summaryrefslogtreecommitdiff
path: root/capplets
diff options
context:
space:
mode:
authorzhuyaliang <[email protected]>2023-10-19 11:41:29 +0800
committerLuke from DC <[email protected]>2023-12-27 04:24:30 +0000
commitbca3b80da6b3653ada9e0546a3fd053cdc4651d0 (patch)
tree91882520deb84786b2b2a7bf20470039d19265c8 /capplets
parentc2e94e1925f3c7acfa3fd3352dc8fdafe6375adc (diff)
downloadmate-control-center-bca3b80da6b3653ada9e0546a3fd053cdc4651d0.tar.bz2
mate-control-center-bca3b80da6b3653ada9e0546a3fd053cdc4651d0.tar.xz
Add meson build support
Diffstat (limited to 'capplets')
-rw-r--r--capplets/about-me/meson.build41
-rw-r--r--capplets/accessibility/at-properties/meson.build49
-rw-r--r--capplets/appearance/data/meson.build46
-rw-r--r--capplets/appearance/meson.build50
-rw-r--r--capplets/common/meson.build46
-rw-r--r--capplets/default-applications/icons/meson.build15
-rw-r--r--capplets/default-applications/meson.build54
-rw-r--r--capplets/display/meson.build60
-rw-r--r--capplets/keybindings/meson.build70
-rw-r--r--capplets/keyboard/meson.build42
-rw-r--r--capplets/meson.build13
-rw-r--r--capplets/mouse/meson.build36
-rw-r--r--capplets/network/meson.build35
-rw-r--r--capplets/system-info/meson.build37
-rw-r--r--capplets/time-admin/data/meson.build15
-rw-r--r--capplets/time-admin/meson.build2
-rw-r--r--capplets/time-admin/src/meson.build29
-rw-r--r--capplets/windows/meson.build36
18 files changed, 676 insertions, 0 deletions
diff --git a/capplets/about-me/meson.build b/capplets/about-me/meson.build
new file mode 100644
index 00000000..690eab0b
--- /dev/null
+++ b/capplets/about-me/meson.build
@@ -0,0 +1,41 @@
+desktop = 'mate-about-me.desktop'
+
+i18n.merge_file(
+ type: 'desktop',
+ input: desktop + '.in',
+ output: desktop,
+ po_dir: po_dir,
+ install: true,
+ install_dir: mcc_desktopdir
+)
+
+sources = files(
+ 'e-image-chooser.c',
+ 'mate-about-me.c',
+ 'mate-about-me-fingerprint.c',
+ 'mate-about-me-password.c'
+)
+
+sources += gnome.compile_resources(
+ 'mate-about-me-resources',
+ 'org.mate.mcc.am.gresource.xml',
+ c_name: 'about_me',
+ export: true
+)
+
+cflags += [
+ '-DDATADIR="@0@"'.format(mcc_datadir),
+ '-DMATECC_DATA_DIR="@0@"'.format(mcc_pkgdatadir),
+ '-DMATECC_PIXMAP_DIR="@0@"'.format(mcc_pixmaps),
+ '-DMATELOCALEDIR="@0@"'.format(mcc_localedir),
+]
+
+executable(
+ 'mate-about-me',
+ sources : sources,
+ include_directories: config_inc,
+ dependencies : [common_deps, libcommon_dep],
+ c_args : cflags,
+ install : true,
+ install_dir : get_option('bindir')
+)
diff --git a/capplets/accessibility/at-properties/meson.build b/capplets/accessibility/at-properties/meson.build
new file mode 100644
index 00000000..f3f70ee2
--- /dev/null
+++ b/capplets/accessibility/at-properties/meson.build
@@ -0,0 +1,49 @@
+desktop = 'mate-at-properties.desktop'
+
+i18n.merge_file(
+ type: 'desktop',
+ input: desktop + '.in',
+ output: desktop,
+ po_dir: po_dir,
+ install: true,
+ install_dir: mcc_desktopdir
+)
+
+sources = files(
+ 'main.c',
+ 'dm-util.c'
+)
+
+sources += gnome.compile_resources(
+ 'mate-at-properties-resources',
+ 'org.mate.mcc.accessibility.at.gresource.xml',
+ c_name: 'accessibility',
+ export: true
+)
+
+cflags += [
+ '-DDATADIR="@0@"'.format(mcc_datadir),
+ '-DMATECC_DATA_DIR="@0@"'.format(mcc_pkgdatadir),
+ '-DPIXMAPDIR="@0@"'.format(mcc_pixmaps),
+ '-DMATELOCALEDIR="@0@"'.format(mcc_localedir),
+]
+
+executable(
+ 'mate-at-properties',
+ sources : sources,
+ include_directories: config_inc,
+ dependencies : [common_deps, libcommon_dep],
+ c_args : cflags,
+ install : true,
+ install_dir : get_option('bindir')
+)
+
+install_data (
+ 'at-startup.png',
+ install_dir : mcc_pixmaps
+)
+
+install_data (
+ 'at-support.png',
+ install_dir : mcc_pixmaps
+)
diff --git a/capplets/appearance/data/meson.build b/capplets/appearance/data/meson.build
new file mode 100644
index 00000000..fe2a7b43
--- /dev/null
+++ b/capplets/appearance/data/meson.build
@@ -0,0 +1,46 @@
+desktops = [
+ 'mate-appearance-properties.desktop',
+ 'mate-theme-installer.desktop'
+]
+
+foreach desktop: desktops
+ i18n.merge_file(
+ type: 'desktop',
+ input: desktop + '.in',
+ output: desktop,
+ po_dir: po_dir,
+ install: true,
+ install_dir: mcc_desktopdir
+ )
+endforeach
+
+icons = [
+ 'gtk-theme-thumbnailing.png',
+ 'icon-theme-thumbnailing.png',
+ 'mouse-cursor-normal-large.png',
+ 'mouse-cursor-normal.png',
+ 'mouse-cursor-white-large.png',
+ 'mouse-cursor-white.png',
+ 'subpixel-bgr.png',
+ 'subpixel-rgb.png',
+ 'subpixel-vbgr.png',
+ 'subpixel-vrgb.png',
+ 'theme-thumbnailing.png',
+ 'window-theme-thumbnailing.png'
+]
+
+foreach icon: icons
+ install_data (
+ icon,
+ install_dir : mcc_pixmaps
+ )
+endforeach
+
+ i18n.merge_file(
+ input: 'mate-theme-package.xml.in',
+ output: 'mate-theme-package.xml',
+ type: 'xml',
+ po_dir: po_dir,
+ install: true,
+ install_dir: mcc_mime,
+ )
diff --git a/capplets/appearance/meson.build b/capplets/appearance/meson.build
new file mode 100644
index 00000000..f75c33d9
--- /dev/null
+++ b/capplets/appearance/meson.build
@@ -0,0 +1,50 @@
+sources = files(
+ 'appearance-desktop.c',
+ 'appearance-font.c',
+ 'appearance-main.c',
+ 'appearance-style.c',
+ 'appearance-support.c',
+ 'appearance-themes.c',
+ 'appearance-ui.c',
+ 'mate-wp-info.c',
+ 'mate-wp-item.c',
+ 'mate-wp-xml.c',
+ 'theme-installer.c',
+ 'theme-save.c',
+ 'theme-util.c'
+)
+
+sources += gnome.compile_resources(
+ 'mate-appearance-properties-resources',
+ 'org.mate.mcc.appearance.gresource.xml',
+ c_name: 'appearance',
+ export: true
+)
+
+cflags += [
+ '-DDATADIR="@0@"'.format(mcc_datadir),
+ '-DMATECC_DATA_DIR="@0@"'.format(mcc_pkgdatadir),
+ '-DMATECC_PIXMAP_DIR="@0@"'.format(mcc_pixmaps),
+ '-DMATELOCALEDIR="@0@"'.format(mcc_localedir),
+ '-DBACKGROUND_DATADIR="@0@"'.format(mcc_background),
+ '-DWALLPAPER_DATADIR="@0@"'.format(mcc_wallpaperdir),
+ '-DMATE_DESKTOP_USE_UNSTABLE_API',
+]
+
+deps = [
+ common_deps,
+ libxml_dep,
+ accounts_dep
+]
+
+executable(
+ 'mate-appearance-properties',
+ sources : sources,
+ include_directories: config_inc,
+ dependencies : [deps, libcommon_dep],
+ c_args : cflags,
+ install : true,
+ install_dir : get_option('bindir')
+)
+
+subdir('data')
diff --git a/capplets/common/meson.build b/capplets/common/meson.build
new file mode 100644
index 00000000..17f8f91f
--- /dev/null
+++ b/capplets/common/meson.build
@@ -0,0 +1,46 @@
+common_inc = include_directories('.')
+cflags = [
+ '-DMATECC_DATA_DIR="@0@"'.format(mcc_pkgdatadir),
+ '-DMATEDATADIR="@0@"'.format(mcc_datadir),
+ '-DMATELOCALEDIR="@0@"'.format(mcc_localedir),
+ '-DGTK_ENGINE_DIR="/usr/lib/gtk-3.0/3.0.0/theming-engines"',
+ '-DG_LOG_DOMAIN="capplet-common"',
+ '-DINSTALL_PREFIX="@0@"'.format(mcc_prefix),
+ '-DPIXMAP_DIR="@0@"'.format(mcc_pixmaps),
+]
+
+sources = [
+ 'activate-settings-daemon.c',
+ 'capplet-util.c',
+ 'dconf-util.c',
+ 'file-transfer-dialog.c',
+ 'mate-theme-apply.c',
+ 'mate-theme-info.c',
+ 'gtkrc-utils.c',
+ 'theme-thumbnail.c',
+ 'wm-common.c',
+]
+gmodule_dep = cc.find_library('gmodule-2.0')
+libcommon = static_library(
+ 'common',
+ sources: sources,
+ include_directories: config_inc,
+ dependencies: [common_deps,gmodule_dep],
+ c_args: cflags,
+ #link_args: ldflags,
+ install: false,
+)
+
+libcommon_dep = declare_dependency(
+ include_directories: common_inc,
+ link_with: libcommon
+)
+
+executable(
+ 'mate-theme-test',
+ sources : 'mate-theme-test.c',
+ dependencies : [common_deps, libcommon_dep],
+ include_directories: config_inc,
+ c_args : cflags,
+ install : false,
+)
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')
diff --git a/capplets/display/meson.build b/capplets/display/meson.build
new file mode 100644
index 00000000..26790973
--- /dev/null
+++ b/capplets/display/meson.build
@@ -0,0 +1,60 @@
+sources = files(
+ 'xrandr-capplet.c',
+ 'scrollarea.c',
+)
+
+sources += gnome.compile_resources(
+ 'mate-display-properties-resources',
+ 'org.mate.mcc.display.gresource.xml',
+ c_name: 'display',
+ export: true
+)
+
+sources += gnome.genmarshal('foo-marshal', prefix : 'foo_marshal', sources : 'foo-marshal.list')
+cflags = [
+ '-DDATADIR="@0@"'.format(mcc_datadir),
+ '-DMATECC_DATA_DIR="@0@"'.format(mcc_pkgdatadir),
+ '-DSBINDIR="@0@"'.format(mcc_sbindir),
+ '-DMATELOCALEDIR="@0@"'.format(mcc_localedir),
+]
+
+executable(
+ 'mate-display-properties',
+ sources : sources,
+ include_directories: config_inc,
+ dependencies : [common_deps, libcommon_dep],
+ c_args : cflags,
+ install : true,
+ install_dir : get_option('bindir')
+)
+
+executable(
+ 'mate-display-properties-install-systemwide',
+ sources : 'mate-display-properties-install-systemwide.c',
+ include_directories: config_inc,
+ dependencies : [common_deps, libcommon_dep],
+ c_args : cflags,
+ install : true,
+ install_dir : get_option('sbindir')
+)
+
+desktop = 'mate-display-properties.desktop'
+
+i18n.merge_file(
+ type: 'desktop',
+ input: desktop + '.in',
+ output: desktop,
+ po_dir: po_dir,
+ install: true,
+ install_dir: mcc_desktopdir
+)
+
+policy = 'org.mate.randr.policy'
+
+i18n.merge_file(
+ input: policy + '.in',
+ output: policy,
+ po_dir: po_dir,
+ install: true,
+ install_dir: mcc_policydir,
+)
diff --git a/capplets/keybindings/meson.build b/capplets/keybindings/meson.build
new file mode 100644
index 00000000..020a412f
--- /dev/null
+++ b/capplets/keybindings/meson.build
@@ -0,0 +1,70 @@
+desktop = 'mate-keybinding.desktop'
+
+i18n.merge_file(
+ type: 'desktop',
+ input: desktop + '.in',
+ output: desktop,
+ po_dir: po_dir,
+ install: true,
+ install_dir: mcc_desktopdir
+)
+
+sources = files(
+ 'mate-keybinding-properties.c',
+ 'eggcellrendererkeys.c',
+ 'eggaccelerators.c'
+)
+
+sources += gnome.compile_resources(
+ 'mate-keybinding-properties-resources',
+ 'org.mate.mcc.keybindings.gresource.xml',
+ c_name: 'keybindings',
+ export: true
+)
+
+cflags += [
+ '-DMATECC_DATA_DIR="@0@"'.format(mcc_pkgdatadir),
+]
+
+executable(
+ 'mate-keybinding-properties',
+ sources : sources,
+ include_directories: config_inc,
+ dependencies : [common_deps, libcommon_dep, dconf_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-keybindings.pc'
+
+configure_file(
+ input: pc + '.in',
+ output: pc,
+ install: true,
+ install_dir: join_paths(mcc_libdir, 'pkgconfig'),
+ configuration: pc_conf
+)
+
+xml_files = [
+ '00-multimedia-key.xml',
+ '01-desktop-key.xml'
+]
+
+foreach file: xml_files
+ i18n.merge_file(
+ input: file + '.in',
+ output: file,
+ po_dir: po_dir,
+ data_dirs: its_dir,
+ install: true,
+ install_dir: join_paths(mcc_pkgdatadir, 'keybindings')
+ )
+endforeach
diff --git a/capplets/keyboard/meson.build b/capplets/keyboard/meson.build
new file mode 100644
index 00000000..22fa4a6f
--- /dev/null
+++ b/capplets/keyboard/meson.build
@@ -0,0 +1,42 @@
+desktop = 'mate-keyboard.desktop'
+
+i18n.merge_file(
+ type: 'desktop',
+ input: desktop + '.in',
+ output: desktop,
+ po_dir: po_dir,
+ install: true,
+ install_dir: mcc_desktopdir
+)
+
+sources = files(
+ 'mate-keyboard-properties.c',
+ 'mate-keyboard-properties-a11y.c',
+ 'mate-keyboard-properties-xkb.c',
+ 'mate-keyboard-properties-xkbmc.c',
+ 'mate-keyboard-properties-xkblt.c',
+ 'mate-keyboard-properties-xkbltadd.c',
+ 'mate-keyboard-properties-xkbot.c',
+ 'mate-keyboard-properties-xkbpv.c'
+)
+
+sources += gnome.compile_resources(
+ 'mate-keyboard-properties-resources',
+ 'org.mate.mcc.keyboard.gresource.xml',
+ c_name: 'keyboard',
+ export: true
+)
+
+cflags += [
+ '-DMATECC_DATA_DIR="@0@"'.format(mcc_pkgdatadir),
+]
+
+executable(
+ 'mate-keyboard-properties',
+ sources : sources,
+ include_directories: config_inc,
+ dependencies : [common_deps, libcommon_dep, xklavier_dep, matekbd_dep, matekbdui_dep],
+ c_args : cflags,
+ install : true,
+ install_dir : get_option('bindir')
+)
diff --git a/capplets/meson.build b/capplets/meson.build
new file mode 100644
index 00000000..015de1c3
--- /dev/null
+++ b/capplets/meson.build
@@ -0,0 +1,13 @@
+subdir('common')
+subdir('about-me')
+subdir('accessibility/at-properties')
+subdir('appearance')
+subdir('default-applications')
+subdir('display')
+subdir('keybindings')
+subdir('keyboard')
+subdir('mouse')
+subdir('network')
+subdir('system-info')
+subdir('time-admin')
+subdir('windows')
diff --git a/capplets/mouse/meson.build b/capplets/mouse/meson.build
new file mode 100644
index 00000000..dfa9072e
--- /dev/null
+++ b/capplets/mouse/meson.build
@@ -0,0 +1,36 @@
+desktop = 'mate-settings-mouse.desktop'
+
+i18n.merge_file(
+ type: 'desktop',
+ input: desktop + '.in',
+ output: desktop,
+ po_dir: po_dir,
+ install: true,
+ install_dir: mcc_desktopdir
+)
+
+sources = files(
+ 'mate-mouse-properties.c',
+ 'msd-input-helper.c'
+)
+
+sources += gnome.compile_resources(
+ 'mate-mouse-properties-resources',
+ 'org.mate.mcc.mouse.gresource.xml',
+ c_name: 'mouse',
+ export: true
+)
+
+cflags = [
+ '-DMATECC_DATA_DIR="@0@"'.format(mcc_pkgdatadir),
+]
+
+executable(
+ 'mate-mouse-properties',
+ sources : sources,
+ include_directories: config_inc,
+ dependencies : [common_deps, libcommon_dep, xi_dep],
+ c_args : cflags,
+ install : true,
+ install_dir : get_option('bindir')
+)
diff --git a/capplets/network/meson.build b/capplets/network/meson.build
new file mode 100644
index 00000000..5fa40544
--- /dev/null
+++ b/capplets/network/meson.build
@@ -0,0 +1,35 @@
+desktop = 'mate-network-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-network-properties.c',
+)
+
+sources += gnome.compile_resources(
+ 'mate-network-properties-resources',
+ 'org.mate.mcc.network.gresource.xml',
+ c_name: 'network',
+ export: true
+)
+
+cflags += [
+ '-DMATECC_DATA_DIR="@0@"'.format(mcc_pkgdatadir),
+]
+
+executable(
+ 'mate-network-properties',
+ sources : sources,
+ include_directories: config_inc,
+ dependencies : [common_deps, libcommon_dep],
+ c_args : cflags,
+ install : true,
+ install_dir : get_option('bindir')
+)
diff --git a/capplets/system-info/meson.build b/capplets/system-info/meson.build
new file mode 100644
index 00000000..85707452
--- /dev/null
+++ b/capplets/system-info/meson.build
@@ -0,0 +1,37 @@
+desktop = 'mate-system-info.desktop'
+
+i18n.merge_file(
+ type: 'desktop',
+ input: desktop + '.in',
+ output: desktop,
+ po_dir: po_dir,
+ install: true,
+ install_dir: mcc_desktopdir
+)
+
+sources = files(
+ 'main.c',
+ 'mate-system-info.c',
+ 'info-cleanup.c'
+)
+
+sources += gnome.compile_resources(
+ 'mate-system-info-resources',
+ 'system-info.gresource.xml',
+ c_name: 'mate_system_info',
+ export: true
+)
+
+cflags += [
+ '-DMATECC_DATA_DIR="@0@"'.format(mcc_pkgdatadir),
+]
+
+executable(
+ 'mate-system-info',
+ sources : sources,
+ include_directories: config_inc,
+ dependencies : [common_deps, libcommon_dep, gtop_dep, udisks2_dep],
+ c_args : cflags,
+ install : true,
+ install_dir : get_option('bindir')
+)
diff --git a/capplets/time-admin/data/meson.build b/capplets/time-admin/data/meson.build
new file mode 100644
index 00000000..28645e14
--- /dev/null
+++ b/capplets/time-admin/data/meson.build
@@ -0,0 +1,15 @@
+desktop = 'mate-time-admin.desktop'
+
+i18n.merge_file(
+ type: 'desktop',
+ input: desktop + '.in',
+ output: desktop,
+ po_dir: po_dir,
+ install: true,
+ install_dir: mcc_desktopdir
+)
+
+install_subdir(
+ 'map',
+ install_dir: join_paths(mcc_datadir, 'mate-time-admin')
+)
diff --git a/capplets/time-admin/meson.build b/capplets/time-admin/meson.build
new file mode 100644
index 00000000..f1503770
--- /dev/null
+++ b/capplets/time-admin/meson.build
@@ -0,0 +1,2 @@
+subdir('src')
+subdir('data')
diff --git a/capplets/time-admin/src/meson.build b/capplets/time-admin/src/meson.build
new file mode 100644
index 00000000..59247248
--- /dev/null
+++ b/capplets/time-admin/src/meson.build
@@ -0,0 +1,29 @@
+sources = files(
+ 'main.c',
+ 'time-map.c',
+ 'time-share.c',
+ 'time-tool.c',
+ 'time-zone.c'
+)
+
+sources += gnome.compile_resources(
+ 'mate-time-admin-resources',
+ 'org.mate.mcc.ta.gresource.xml',
+ c_name: 'time_admin',
+ export: true
+)
+
+cflags += [
+ '-DMATECC_DATA_DIR="@0@"'.format(mcc_pkgdatadir),
+ '-DTIMPZONEDIR="@0@"'.format(mcc_timezonedir),
+]
+
+executable(
+ 'mate-time-admin',
+ sources : sources,
+ include_directories: config_inc,
+ dependencies : [common_deps, libcommon_dep, polkit_dep, m_dep],
+ c_args : cflags,
+ install : true,
+ install_dir : get_option('bindir')
+)
diff --git a/capplets/windows/meson.build b/capplets/windows/meson.build
new file mode 100644
index 00000000..b60720eb
--- /dev/null
+++ b/capplets/windows/meson.build
@@ -0,0 +1,36 @@
+desktop = 'mate-window-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-metacity-support.c',
+ 'mate-window-properties.c'
+)
+
+sources += gnome.compile_resources(
+ 'mate-window-properties-resources',
+ 'org.mate.mcc.windows.gresource.xml',
+ c_name: 'window_properties',
+ export: true
+)
+
+cflags += [
+ '-DMATECC_DATA_DIR="@0@"'.format(mcc_pkgdatadir),
+]
+
+executable(
+ 'mate-window-properties',
+ sources : sources,
+ include_directories: config_inc,
+ dependencies : [common_deps, libcommon_dep],
+ c_args : cflags,
+ install : true,
+ install_dir : get_option('bindir')
+)