mirror of
https://github.com/pret/pokeplatinum.git
synced 2026-10-25 18:10:40 -05:00
Generate GMM headers for pl_msg at build-time
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -51,6 +51,9 @@ symbols.csv
|
||||
res/**/*.c
|
||||
*.o
|
||||
|
||||
# Generated headers
|
||||
include/constants/text/*.h
|
||||
|
||||
# Utilities
|
||||
ntruncompbw
|
||||
*.elf
|
||||
|
||||
@@ -725,15 +725,25 @@ pl_msg_gmm = files(
|
||||
'pl_msg_0723.gmm',
|
||||
)
|
||||
|
||||
gmm_header_dir = custom_target('gmm_header_dir',
|
||||
output: 'gmm_header_dir',
|
||||
command: [
|
||||
'sh', '-c', '"$@"',
|
||||
'--',
|
||||
'mkdir', '-p', '../include/constants/text'
|
||||
]
|
||||
)
|
||||
|
||||
gmm_to_bin_gen = generator(msgenc_exe,
|
||||
arguments: [
|
||||
'-e',
|
||||
'--gmm',
|
||||
'-c', charmap_txt.full_path(),
|
||||
'-H', '../include/constants/text/' + '@BASENAME@' + '.h',
|
||||
'@INPUT@',
|
||||
'@OUTPUT@'
|
||||
],
|
||||
depends: charmap_txt,
|
||||
depends: [ charmap_txt, gmm_header_dir ],
|
||||
output: '@BASENAME@' + '.bin'
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user