summaryrefslogtreecommitdiff
path: root/data/meson.build
blob: 4dbd1e677735761356348226151622333df948b5 (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
55
56
57
subdir('icons')

desktopdir = datadir / 'applications'
desktopfile = configure_file(input: 'eom.desktop.in.in', configuration: pkg_info, output: 'eom.desktop.in')

if get_option('nls')
  i18n.merge_file(
    input: desktopfile,
    output: 'eom.desktop',
    install: true,
    install_dir: desktopdir,
    type: 'desktop',
    po_dir: po_dir,
  )
else
  install_data(desktopfile, install_dir: desktopdir)
endif
gnome.post_install(update_desktop_database: true)

appdatadir = join_paths(datadir, 'metainfo')
appdatafile = configure_file(input: 'eom.appdata.xml.in.in', configuration: pkg_info, output: 'eom.appdata.xml.in')

if get_option('nls')
  i18n.merge_file(
    input: appdatafile,
    output: 'eom.appdata.xml',
    install: true,
    install_dir: appdatadir,
    type: 'xml',
    po_dir: po_dir,
  )
else
  install_data(appdatafile, install_dir: appdatadir)
endif

gsettings_schema = configure_file(input: 'org.mate.eom.gschema.xml.in', configuration: pkg_info, output: 'org.mate.eom.gschema.xml')
install_data(gsettings_schema, install_dir: schemadir)
gnome.post_install(glib_compile_schemas: true)

gnome.mkenums(
  'org.mate.eom.enums.xml',
  comments: '<!-- @comment@ -->',
  sources: enum_headers,
  fhead: '<schemalist>',
  vhead: '''  <@type@ id='org.mate.eom.@EnumName@'>''',
  vprod: '''    <value nick='@valuenick@' value='@valuenum@'/>''',
  vtail: '  </@type@>',
  ftail: '</schemalist>',
  install_header: true,
  install_dir: schemadir
)

eom_pc = configure_file(input: 'eom.pc.in', configuration: pkg_info, output: 'eom.pc')
install_data(eom_pc, install_dir: libdir / 'pkgconfig')

uidir = pkgdatadir
install_data('eom-toolbar.xml', install_dir: uidir)