summaryrefslogtreecommitdiff
path: root/data/meson.build
blob: 5c3a9d641b2312a32177c1b7012158b7d5fc5ec8 (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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
install_subdir('icons/hicolor',
  install_dir: join_paths(datadir, 'icons')
)

i18n.merge_file('desktop-file',
  input: 'org.gnome.Epiphany.desktop.in',
  output: 'org.gnome.Epiphany.desktop',
  install: true,
  install_dir: join_paths(datadir, 'applications'),
  po_dir: '../po',
  type: 'desktop'
)

i18n.merge_file('appdata-file',
  input: 'org.gnome.Epiphany.appdata.xml.in',
  output: 'org.gnome.Epiphany.appdata.xml',
  install: true,
  install_dir: join_paths(datadir, 'metainfo'),
  po_dir: '../po'
)

generate_enums = gnome.mkenums('org.gnome.Epiphany.enums.xml',
  sources: '../lib/ephy-prefs.h',
  comments: '<!-- @comment@ -->',
  fhead: '<schemalist>',
  vhead: '  <@type@ id="org.gnome.Epiphany.@EnumName@">',
  vprod: '    <value nick="@valuenick@" value="@valuenum@"/>',
  vtail: '  </@type@>',
  ftail: '</schemalist>',
  install_dir: join_paths(datadir, 'glib-2.0', 'schemas'),
)
# Copy file from source into build for glib-compile-schemas
# https://github.com/mesonbuild/meson/issues/2219
# gnome.compile_schemas() also needs a dependencies arg
configure_file(
  input: 'org.gnome.epiphany.gschema.xml',
  output: 'org.gnome.epiphany.gschema.xml',
  configuration: configuration_data()
)
compile_schemas = custom_target('glib-compile-schemas',
  output: 'gschemas.compiled',
  command: [find_program('glib-compile-schemas'),
    meson.current_build_dir()
  ],
  depends: [generate_enums]
)
install_data('org.gnome.epiphany.gschema.xml',
  install_dir: join_paths(datadir, 'glib-2.0', 'schemas')
)

serviceconf = configuration_data()
serviceconf.set('libexecdir', libexecdir)
configure_file(
  input: 'org.gnome.Epiphany.SearchProvider.service.in',
  output: 'org.gnome.Epiphany.SearchProvider.service',
  configuration: serviceconf,
  install: true,
  install_dir: join_paths(datadir, 'dbus-1', 'services')
)
install_data('org.gnome.Epiphany.search-provider.ini',
  install_dir: join_paths(datadir, 'gnome-shell', 'search-providers')
)

bookmarksconf = configuration_data()
bookmarksconf.set('pkgdatadir', pkgdatadir)
configure_file(
  input: 'default-bookmarks.rdf.in',
  output: 'default-bookmarks.rdf',
  configuration: bookmarksconf,
  install: true,
  install_dir: pkgdatadir
)

install_man('epiphany.1')