File: meson.build

package info (click to toggle)
libgweather4 4.4.4-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 53,316 kB
  • sloc: xml: 43,729; ansic: 10,088; python: 161; sh: 50; makefile: 16; javascript: 5
file content (42 lines) | stat: -rw-r--r-- 882 bytes parent folder | download | duplicates (3)
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
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',
    ],
    suite: ['lint'],
  )
endif

if pylint.found()
  test('pylint-gen-locations-variant',
    pylint,
    args: [
      pylint_flags,
      gen_locations_variant.full_path(),
    ],
    env: nomalloc,
    suite: ['lint'],
  )
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,
)