summaryrefslogtreecommitdiff
path: root/capplets/appearance
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/appearance
parentc2e94e1925f3c7acfa3fd3352dc8fdafe6375adc (diff)
downloadmate-control-center-bca3b80da6b3653ada9e0546a3fd053cdc4651d0.tar.bz2
mate-control-center-bca3b80da6b3653ada9e0546a3fd053cdc4651d0.tar.xz
Add meson build support
Diffstat (limited to 'capplets/appearance')
-rw-r--r--capplets/appearance/data/meson.build46
-rw-r--r--capplets/appearance/meson.build50
2 files changed, 96 insertions, 0 deletions
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')