summaryrefslogtreecommitdiff
path: root/font-viewer/meson.build
blob: 6a85f8afc5078b78b94523c9ca0d4622120edf8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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'),
)