pokeplatinum/consts/meson.build
Rachel 2c410b8046 Replace python scripts for packing species archives with C++
This new code is responsible for packing the following archives:

- `pl_personal` -> basic information for each species: stats, types, etc.
- `evo` -> evolution lines for each species
- `wotbl` -> by-level learnsets for each species
- `ppark` -> catching show data for each species
- `height` -> y-offsets for front and back sprites for each species
- `pl_poke_data` -> sprite-rendering data for each species: animation
  ID, frame data, shadow size and offsets, etc.

Additionally, the following headers are generated:

- `res/pokemon/tutorable_moves.h` -> A listing of moves taught by each
  tutor and how much each move costs to be tutored
- `res/pokemon/species_learnsets_by_tutor.h` -> An array of bitmasks for
  each species designating which moves can be tutored to that species
2025-01-21 22:46:39 -08:00

73 lines
1.6 KiB
Meson

# This must be moved here during the refactor to move all constants to metang.
constgen_py = find_program('constgen_py', native: true)
consts_manifest_basenames = [
'badges',
'battle',
'battle_subscripts',
'btlcmd',
'game_records',
'gender',
'journal',
'map',
'movement',
'moves',
'pokemon',
'poketch',
'scrcmd',
'sdat',
'trainer',
'trainer_ai',
]
generated_consts_root = meson.current_build_dir()
consts_manifests = []
generated_c_headers = []
generated_asm_headers = []
generated_py_headers = []
c_consts_generators = []
asm_consts_generators = []
py_consts_generators = []
foreach basename : consts_manifest_basenames
manifest = basename + '.json'
c_header = basename + '.h'
asm_header = basename + '.inc'
py_header = basename + '.py'
c_consts_generators += custom_target(
input: manifest,
output: c_header,
command: [
constgen_py,
'--file', '@INPUT@',
'--root', generated_consts_root,
'--lang', 'c'
]
)
asm_consts_generators += custom_target(
input: manifest,
output: asm_header,
command: [
constgen_py,
'--file', '@INPUT@',
'--root', generated_consts_root,
'--lang', 'asm'
]
)
py_consts_generators += custom_target(
input: manifest,
output: py_header,
command: [
constgen_py,
'--file', '@INPUT@',
'--root', generated_consts_root,
'--lang', 'py'
]
)
endforeach