diff options
author | zhuyaliang <[email protected]> | 2023-10-19 11:41:29 +0800 |
---|---|---|
committer | Luke from DC <[email protected]> | 2023-12-27 04:24:30 +0000 |
commit | bca3b80da6b3653ada9e0546a3fd053cdc4651d0 (patch) | |
tree | 91882520deb84786b2b2a7bf20470039d19265c8 /font-viewer | |
parent | c2e94e1925f3c7acfa3fd3352dc8fdafe6375adc (diff) | |
download | mate-control-center-bca3b80da6b3653ada9e0546a3fd053cdc4651d0.tar.bz2 mate-control-center-bca3b80da6b3653ada9e0546a3fd053cdc4651d0.tar.xz |
Add meson build support
Diffstat (limited to 'font-viewer')
-rw-r--r-- | font-viewer/meson.build | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/font-viewer/meson.build b/font-viewer/meson.build new file mode 100644 index 00000000..6a85f8af --- /dev/null +++ b/font-viewer/meson.build @@ -0,0 +1,54 @@ +cflags = [ + '-DDIRECTORY_DIR="@0@"'.format(mcc_directorydir), + '-DMATELOCALEDIR="@0@"'.format(mcc_localedir), +] + +libm = cc.find_library('libm', required: false) +deps = [ + common_deps, + pango_dep, + fontconfig_dep, + libm, +] +executable( + 'mate-font-viewer', + sources : [ + 'sushi-font-loader.c', + 'font-model.c', + 'font-utils.c', + 'gd-main-toolbar.c', + 'sushi-font-widget.c', + 'font-view.c' + ], + include_directories : config_inc, + dependencies : deps, + c_args : cflags, + install : true, + install_dir : get_option('bindir') +) + +executable( + 'mate-thumbnail-font', + sources : [ + 'sushi-font-loader.c', + 'font-thumbnailer.c', + 'totem-resources.c', + ], + include_directories : config_inc, + dependencies : deps, + c_args : cflags, + install : true, +) + +i18n.merge_file( + input: 'mate-font-viewer.desktop.in', + output: 'mate-font-viewer.desktop', + type: 'desktop', + po_dir: join_paths(meson.project_source_root(), 'po'), + install: true, + install_dir: mcc_desktopdir, +) + +install_data('mate-font-viewer.thumbnailer', + install_dir : join_paths(mcc_datadir, 'thumbnailers'), +) |