summaryrefslogtreecommitdiff
path: root/data/meson.build
blob: 5e04c298f372339d6aa2d938183e330b5a638fc6 (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
if enable_glade_catalog
  install_data('glade/libgweather.xml',
    install_dir: glade_catalogdir,
  )
endif

xmllint = find_program('xmllint', required: false)
if xmllint.found()
  test('Valid Locations file',
       xmllint,
       args: [
         '--path', '@0@'.format(meson.current_source_dir()),
         '--noout',
         '--valid',
         'Locations.xml',
       ])
endif

if pylint.found()
  test('pylint-gen-locations-variant',
    pylint,
    args: [
      pylint_flags,
      gen_locations_variant.full_path(),
    ],
  )
endif

# The generated file is architecture dependent (i.e. host endianness)
locations_bin = custom_target('locations-db',
  command: [gen_locations_variant, '@INPUT@', '@OUTPUT@' ],
  input: files('Locations.xml'),
  output: '@BASENAME@.bin',
  install: true,
  install_dir: pkglibdir,
)

install_data('Locations.xml',
  install_dir: pkgdatadir,
)

install_data('locations.dtd',
  install_dir: pkgdatadir,
)