File: meson.build

package info (click to toggle)
game-data-packager 87
  • links: PTS, VCS
  • area: contrib
  • in suites: sid
  • size: 33,392 kB
  • sloc: python: 15,387; sh: 704; ansic: 95; makefile: 50
file content (147 lines) | stat: -rw-r--r-- 3,456 bytes parent folder | download
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
# Copyright 2022 Simon McVittie
# SPDX-License-Identifier: FSFAP

install_data(
  'gdp_launcher_base.py',
  install_dir : runtimedir,
  install_mode : 'rwxr-xr-x',
)

foreach pair : [
  ['quake', 'quake-server'],
  ['quake2', 'quake2-server'],
  ['quake3', 'quake3-server'],
  ['quake4', 'quake4-dedicated'],
]
  install_data(
    'gdp_launcher_base.py',
    install_dir : gamedatadir / pair[0],
    rename : pair[1],
  )
  install_symlinks += {
    'link_name' : program_prefix + pair[0],
    'install_dir' : get_option('bindir'),
    'pointing_to' : get_option('prefix') / runtimedir / 'gdp-launcher',
  }
  install_symlinks += {
    'link_name' : program_prefix + pair[1],
    'install_dir' : get_option('bindir'),
    'pointing_to' : get_option('prefix') / gamedatadir / pair[0] / pair[1],
  }
endforeach

foreach pair : [
  ['etqw', 'etqw-dedicated'],
]
  install_data(
    'gdp_launcher_base.py',
    install_dir : non_multiarch_libdir / pair[0],
    rename : pair[1] + '.py',
  )
  install_symlinks += {
    'link_name' : program_prefix + pair[0],
    'install_dir' : get_option('bindir'),
    'pointing_to' : get_option('prefix') / runtimedir / 'gdp-launcher',
  }
  install_symlinks += {
    'link_name' : program_prefix + pair[1],
    'install_dir' : get_option('bindir'),
    'pointing_to' : get_option('prefix') / non_multiarch_libdir / pair[0] / pair[1] + '.py',
  }
endforeach

install_data(
  'gdp_launcher.py',
  'openurl.py',
  install_dir : runtimedir,
  install_mode : 'rwxr-xr-x',
  rename : [
    'gdp-launcher',
    'gdp-openurl',
  ],
)

install_symlinks += {
  'link_name' : 'gdp_launcher.py',
  'install_dir' : runtimedir,
  'pointing_to' : 'gdp-launcher',
}

install_data(
  'confirm-binary-only.txt',
  'missing-data.txt',
  'quakeX.missing-data.txt',
  'rbdoom3bfg.missing-data.txt',
  install_dir : runtimedir,
)

foreach game : [
  'ja',
  'jk2',
  'rtcw',
]
  install_symlinks += {
    'link_name' : game + '.missing-data.txt',
    'install_dir' : runtimedir,
    'pointing_to' : 'missing-data.txt',
  }
endforeach

foreach game : [
  'unreal',
  'ut99',
]
  install_symlinks += {
    'link_name' : game + '.missing-engine.txt',
    'install_dir' : runtimedir,
    'pointing_to' : 'missing-data.txt',
  }
endforeach

foreach game : [
  'etqw',
  'quake',
  'quake2',
  'quake3',
  'quake4',
]
  install_symlinks += {
    'link_name' : game + '.missing-data.txt',
    'install_dir' : runtimedir,
    'pointing_to' : 'quakeX.missing-data.txt',
  }
endforeach

foreach game : ['etqw', 'quake4']
  install_symlinks += {
    'link_name' : game + '.missing-engine.txt',
    'install_dir' : runtimedir,
    'pointing_to' : 'quakeX.missing-data.txt',
  }
endforeach

install_data(
  'doom2-masterlevels.py',
  install_dir : get_option('bindir'),
  install_mode : 'rwxr-xr-x',
  rename : program_prefix + 'doom2-masterlevels',
)

install_data(
  'smacpack.py',
  install_dir : runtimedir,
  install_mode : 'rwxr-xr-x',
)

meson.add_install_script(
  meson.project_source_root() / 'tools' / 'meson-install-multiple-copies.sh',
  version_py,
  '644',
  pkgdatadir / 'game_data_packager' / 'gdp_launcher_version.py',
  runtimedir / 'gdp_launcher_version.py',
  gamedatadir / 'quake' / 'gdp_launcher_version.py',
  gamedatadir / 'quake2' / 'gdp_launcher_version.py',
  gamedatadir / 'quake3' / 'gdp_launcher_version.py',
  gamedatadir / 'quake4' / 'gdp_launcher_version.py',
  non_multiarch_libdir / 'etqw' / 'gdp_launcher_version.py',
)