-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #332 from lhearachel/scrseq-trdata-dependency
Add trdata.naix as a dependency of compiler for scr_seq binaries
- Loading branch information
Showing
3 changed files
with
47 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
nitrofs_files = [] | ||
naix_headers = [] | ||
|
||
subdir('pokemon') | ||
|
||
### PREBUILT FILES ### | ||
subdir('prebuilt') | ||
|
||
### DECOMPILED DATA DIRECTORIES ### | ||
subdir('text') # must be listed first for GMM header targets | ||
# These subpaths are listed because the result of some build-rule inside them | ||
# is a dependency of some later build-rule. e.g., `trdata.naix` is a dependency | ||
# of the files compiled into `scr_seq.narc`. | ||
subdir('pokemon') | ||
subdir('trainers') | ||
subdir('text') | ||
|
||
# Common generator for "scripting" files, i.e. field and battle scripts | ||
relative_source_root = fs.relative_to(meson.project_source_root(), meson.project_build_root()) | ||
|
@@ -17,23 +20,27 @@ copy_gen = generator(find_program('cp'), | |
output: '@PLAINNAME@' | ||
) | ||
|
||
make_script_bin_args = [ | ||
'-i', relative_source_root / 'include', | ||
'-i', relative_source_root / 'asm', | ||
'-i', '.' / 'res' / 'text', | ||
'-i', '.' / 'res', | ||
'-i', '.', | ||
'--assembler', arm_none_eabi_gcc_exe.full_path(), | ||
'--objcopy', arm_none_eabi_objcopy_exe.full_path(), | ||
'@EXTRA_ARGS@', | ||
'@INPUT@', | ||
] | ||
|
||
make_script_bin_deps = [ | ||
message_banks_narc, # for GMM headers | ||
asm_consts_generators, # for ASM headers | ||
c_consts_generators, # for C headers | ||
] | ||
|
||
s_to_bin_gen = generator(make_script_bin_sh, | ||
arguments: [ | ||
'-i', relative_source_root / 'include', | ||
'-i', relative_source_root / 'asm', | ||
'-i', '.' / 'res' / 'text', | ||
'-i', '.' / 'res', | ||
'-i', '.', | ||
'--assembler', arm_none_eabi_gcc_exe.full_path(), | ||
'--objcopy', arm_none_eabi_objcopy_exe.full_path(), | ||
'@EXTRA_ARGS@', | ||
'@INPUT@', | ||
], | ||
depends: [ | ||
message_banks_narc, # for GMM headers | ||
asm_consts_generators, # for ASM headers | ||
c_consts_generators, # for C headers | ||
], | ||
arguments: make_script_bin_args, | ||
depends: make_script_bin_deps, | ||
output: '@BASENAME@' | ||
) | ||
|
||
|
@@ -57,13 +64,6 @@ nanr_gen = generator(nitrogfx_exe, | |
output: '@[email protected]' | ||
) | ||
|
||
lz_gen = generator(nitrogfx_exe, | ||
arguments: [ '@INPUT@', '@OUTPUT@', '@EXTRA_ARGS@', ], | ||
output: '@[email protected]', | ||
) | ||
|
||
subdir('trainers') | ||
|
||
subdir('battle') | ||
subdir('field') | ||
subdir('fonts') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters