File: meson.build

package info (click to toggle)
game-data-packager 73
  • links: PTS, VCS
  • area: contrib
  • in suites: bookworm
  • size: 23,420 kB
  • sloc: python: 11,086; sh: 609; makefile: 59
file content (24 lines) | stat: -rw-r--r-- 624 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
# Copyright 2022 Simon McVittie
# SPDX-License-Identifier: FSFAP

test_vfs_files = []

foreach game : test_games
  test_vfs_files += custom_target(
    game + '.json',
    build_by_default : true,
    input : meson.project_source_root() / 'tests' / 'data' / game + '.yaml',
    output : game + '.json',
    depend_files : files(
      meson.project_source_root() / 'tools' / 'compile_yaml.py',
    ),
    command : [
      'env',
      'PYTHONPATH=' + meson.project_source_root(),
      python,
      files(meson.project_source_root() / 'tools' / 'compile_yaml.py'),
      '@INPUT@',
      '@OUTPUT@',
    ],
  )
endforeach