"Fossies" - the Fresh Open Source Software Archive 
Member "revelation-0.5.4/data/meson.build" (4 Oct 2020, 2016 Bytes) of package /linux/privat/revelation-0.5.4.tar.xz:
As a special service "Fossies" has tried to format the requested text file into HTML format (style:
standard) with prefixed line numbers.
Alternatively you can here
view or
download the uninterpreted source code file.
1 subdir('icons')
2
3 # Compile the resources
4 resource_data = files(
5 'ui/help-overlay.ui',
6 'ui/menubar.ui',
7 'ui/popup-tree.ui',
8 )
9
10 gnome.compile_resources(
11 rvl_name,
12 rvl_name + '.gresource.xml',
13 gresource_bundle: true,
14 source_dir: meson.current_build_dir(),
15 install_dir: rvl_pkgdatadir,
16 install: true,
17 dependencies: resource_data,
18 )
19
20 # Install the schema file
21 install_data(
22 rvl_namespace + '.gschema.xml',
23 install_dir: join_paths(rvl_datadir, 'glib-2.0', 'schemas')
24 )
25
26 # Install the mime file
27 install_data(
28 rvl_name + '.xml',
29 install_dir: join_paths(rvl_datadir, 'mime', 'packages')
30 )
31
32 # Merge the translations with the desktop file
33 desktop_conf = configuration_data()
34 desktop_conf.set('icon', rvl_namespace)
35 i18n.merge_file(
36 type: 'desktop',
37 input: configure_file(
38 output: rvl_namespace + '.desktop.in',
39 input: rvl_namespace + '.desktop.in.in',
40 configuration: desktop_conf),
41 output: rvl_namespace + '.desktop',
42 po_dir: join_paths(meson.source_root(), 'po'),
43 install: true,
44 install_dir: join_paths(rvl_datadir, 'applications')
45 )
46
47 # Validate the desktop file
48 desktop_file_validate = find_program('desktop-file-validate', required:false)
49 if desktop_file_validate.found()
50 test (
51 'Validate desktop file',
52 desktop_file_validate,
53 args: join_paths(meson.current_build_dir (), rvl_namespace + '.desktop')
54 )
55 endif
56
57 appdata = rvl_namespace + '.appdata.xml'
58 rvl_appstreamdir = join_paths(rvl_datadir, 'metainfo')
59
60 # Merge the translations with the appdata file
61 i18n.merge_file(
62 appdata,
63 input: appdata + '.in',
64 output: appdata,
65 po_dir: join_paths(meson.source_root(), 'po'),
66 install: true,
67 install_dir: rvl_appstreamdir,
68 )
69
70 # Validate the appdata file
71 appstream_util = find_program('appstream-util', required: false)
72 if appstream_util.found()
73 test (
74 'Validate appdata file',
75 appstream_util,
76 args: ['validate-relax', join_paths(meson.current_build_dir (),
77 rvl_namespace + '.appdata.xml')]
78 )
79 endif