Skip to content

Commit

Permalink
Merge pull request #327 from lhearachel/libnarc
Browse files Browse the repository at this point in the history
Replace knarc with libnarc
  • Loading branch information
lhearachel authored Jan 3, 2025
2 parents 9e4d64c + c8cf600 commit 568e212
Show file tree
Hide file tree
Showing 33 changed files with 129 additions and 127 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
/subprojects/constgen/
/subprojects/SDATTool/
/subprojects/knarc/
/subprojects/narc/

# CLion folders
.idea/
Expand Down
4 changes: 2 additions & 2 deletions res/battle/moves/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -484,11 +484,11 @@ pl_waza_tbl_narc = custom_target('pl_waza_tbl.narc',
depends: [ py_consts_generators ],
command: [
movedata_py,
'--knarc', knarc_exe,
'--narc', narc_exe,
'--source-dir', '@CURRENT_SOURCE_DIR@',
'--private-dir', '@PRIVATE_DIR@',
'--output-dir', '@OUTDIR@',
]
)

nitrofs_files += pl_waza_tbl_narc
nitrofs_files += pl_waza_tbl_narc
22 changes: 11 additions & 11 deletions res/battle/scripts/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ be_seq_narc = custom_target(be_seq_target_name,
extra_args: ['--out-dir', be_seq_private_dir]
),
command: [
knarc_exe,
'-d', '@PRIVATE_DIR@',
'-p', '@OUTPUT@'
narc_exe, 'create',
'--output', '@OUTPUT@',
'@PRIVATE_DIR@',
]
)

Expand All @@ -38,11 +38,11 @@ sub_seq_narc = custom_target(sub_seq_narc_name,
extra_args: ['--out-dir', sub_seq_private_dir]
),
command: [
knarc_exe,
'-d', '@PRIVATE_DIR@',
'-p', '@OUTPUT0@',
'-o', sub_seq_narc_order,
'-n'
narc_exe, 'create',
'--naix',
'--order', sub_seq_narc_order,
'--output', '@OUTPUT0@',
'@PRIVATE_DIR@',
]
)

Expand All @@ -53,9 +53,9 @@ waza_seq_narc = custom_target(waza_seq_target_name,
extra_args: ['--out-dir', waza_seq_private_dir]
),
command: [
knarc_exe,
'-d', '@PRIVATE_DIR@',
'-p', '@OUTPUT@'
narc_exe, 'create',
'--output', '@OUTPUT@',
'@PRIVATE_DIR@',
]
)

Expand Down
18 changes: 9 additions & 9 deletions res/field/encounters/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,10 @@ pl_enc_tbl_narc = custom_target('pl_enc_data.narc',
],
depends: [ py_consts_generators ],
command: [
knarc_exe,
'-d', '@PRIVATE_DIR@',
'-p', '@OUTPUT@',
'-o', pl_enc_data_order,
narc_exe, 'create',
'--order', pl_enc_data_order,
'--output', '@OUTPUT@',
'@PRIVATE_DIR@',
]
)

Expand Down Expand Up @@ -258,10 +258,10 @@ encdata_ex_narc = custom_target('encdata_ex.narc',
env: json2bin_env,
depends: [ py_consts_generators ],
command: [
knarc_exe,
'-d', '@PRIVATE_DIR@',
'-p', '@OUTPUT@',
'-o', encdata_ex_order,
narc_exe, 'create',
'--order', encdata_ex_order,
'--output', '@OUTPUT@',
'@PRIVATE_DIR@',
]
)

Expand All @@ -278,7 +278,7 @@ pokedex_enc_platinum_narc = custom_target('zukan_enc_platinum.narc',
depends: [ py_consts_generators ],
command: [
make_pokedex_enc_platinum_py,
'--knarc', knarc_exe,
'--narc', narc_exe,
'--source-dir', '@CURRENT_SOURCE_DIR@',
'--private-dir', '@PRIVATE_DIR@',
'--output-dir', '@OUTDIR@',
Expand Down
8 changes: 4 additions & 4 deletions res/field/events/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -550,11 +550,11 @@ events_narc = custom_target('zone_event.narc',
input: event_bin_gen.process(events_files, env: json2bin_env),
depends: [ py_consts_generators ],
command: [
knarc_exe,
'-d', '@PRIVATE_DIR@',
'-p', '@OUTPUT0@',
'--order', events_order,
narc_exe, 'create',
'--naix',
'--order', events_order,
'--output', '@OUTPUT0@',
'@PRIVATE_DIR@',
]
)

Expand Down
10 changes: 5 additions & 5 deletions res/field/scripts/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -1143,11 +1143,11 @@ scr_seq_narc = custom_target('scr_seq.narc',
extra_args: ['--out-dir', scr_seq_private_dir]
),
command: [
knarc_exe,
'-d', '@PRIVATE_DIR@',
'-p', '@OUTPUT0@',
'-o', scr_seq_narc_order,
'-n'
narc_exe, 'create',
'--naix',
'--order', scr_seq_narc_order,
'--output', '@OUTPUT0@',
'@PRIVATE_DIR@',
],
depends: [
trdata_narc,
Expand Down
8 changes: 4 additions & 4 deletions res/fonts/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,12 @@ pl_font_narc = custom_target('pl_font.narc',
pl_font_ignore,
],
command: [
knarc_exe,
'-d', current_build_dir,
'-p', '@OUTPUT0@',
narc_exe, 'create',
'--naix',
'--order', pl_font_order,
'--ignore', pl_font_ignore,
'--naix',
'--output', '@OUTPUT0@',
'@OUTDIR@',
],
)

Expand Down
8 changes: 4 additions & 4 deletions res/graphics/options_menu/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ config_gra_narc = custom_target('config_gra.narc',
config_gra_order,
],
command: [
knarc_exe,
'-d', '@PRIVATE_DIR@',
'-p', '@OUTPUT0@',
'--order', config_gra_order,
narc_exe, 'create',
'--naix',
'--order', config_gra_order,
'--output', '@OUTPUT0@',
'@PRIVATE_DIR@',
]
)

Expand Down
8 changes: 4 additions & 4 deletions res/graphics/pokemon_summary_screen/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,11 @@ pokemon_summary_screen_narc = custom_target('pl_pst_gra.narc',
pokemon_summary_screen_order,
],
command: [
knarc_exe,
'-d', '@PRIVATE_DIR@',
'-p', '@OUTPUT0@',
'--order', pokemon_summary_screen_order,
narc_exe, 'create',
'--naix',
'--order', pokemon_summary_screen_order,
'--output', '@OUTPUT0@',
'@PRIVATE_DIR@',
]
)

Expand Down
8 changes: 4 additions & 4 deletions res/graphics/signposts/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ field_board_narc = custom_target('field_board.narc',
field_board_order,
],
command: [
knarc_exe,
'-d', '@PRIVATE_DIR@',
'-p', '@OUTPUT0@',
'--order', field_board_order,
narc_exe, 'create',
'--naix',
'--order', field_board_order,
'--output', '@OUTPUT0@',
'@PRIVATE_DIR@',
]
)

Expand Down
8 changes: 4 additions & 4 deletions res/graphics/windows/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ pl_winframe_narc = custom_target('pl_winframe.narc',
pl_winframe_order,
],
command: [
knarc_exe,
'-d', '@PRIVATE_DIR@',
'-p', '@OUTPUT0@',
'--order', pl_winframe_order,
narc_exe, 'create',
'--naix',
'--order', pl_winframe_order,
'--output', '@OUTPUT0@',
'@PRIVATE_DIR@',
]
)

Expand Down
26 changes: 13 additions & 13 deletions res/pokemon/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ wotbl_narc = custom_target('wotbl.narc',
depends: [ py_consts_generators ],
command: [
pokemon_wotbl_data_py,
'--knarc', knarc_exe,
'--narc', narc_exe,
'--source-dir', '@CURRENT_SOURCE_DIR@',
'--private-dir', '@PRIVATE_DIR@',
'--output-dir', '@OUTDIR@',
Expand All @@ -642,7 +642,7 @@ pl_personal_narc = custom_target('pl_personal.narc',
depends: [ py_consts_generators ],
command: [
pokemon_personal_data_py,
'--knarc', knarc_exe,
'--narc', narc_exe,
'--source-dir', '@CURRENT_SOURCE_DIR@',
'--private-dir', '@PRIVATE_DIR@',
'--output-dir', '@OUTDIR@',
Expand All @@ -656,7 +656,7 @@ evo_narc = custom_target('evo.narc',
depends: [ py_consts_generators ],
command: [
evo_py,
'--knarc', knarc_exe,
'--narc', narc_exe,
'--source-dir', '@CURRENT_SOURCE_DIR@',
'--private-dir', '@PRIVATE_DIR@',
'--output-dir', '@OUTDIR@',
Expand All @@ -672,7 +672,7 @@ pl_poke_icon_narc = custom_target('pl_poke_icon.narc',
command: [
make_pl_poke_icon_py,
'--nitrogfx', nitrogfx_exe,
'--knarc', knarc_exe,
'--narc', narc_exe,
'--shared-dir', '@CURRENT_SOURCE_DIR@/.shared',
'--private-dir', '@PRIVATE_DIR@',
'--output-dir', '@OUTDIR@',
Expand All @@ -686,7 +686,7 @@ pl_pokegra_narc = custom_target('pl_pokegra.narc',
command: [
make_pl_pokegra_py,
'--nitrogfx', nitrogfx_exe,
'--knarc', knarc_exe,
'--narc', narc_exe,
'--source-dir', '@CURRENT_SOURCE_DIR@',
'--private-dir', '@PRIVATE_DIR@',
'--output-dir', '@OUTDIR@',
Expand All @@ -703,7 +703,7 @@ pl_otherpoke_narc = custom_target('pl_otherpoke.narc',
command: [
make_pl_otherpoke_py,
'--nitrogfx', nitrogfx_exe,
'--knarc', knarc_exe,
'--narc', narc_exe,
'--private-dir', '@PRIVATE_DIR@',
'--output-dir', '@OUTDIR@',
'--sprite-entries', '154',
Expand All @@ -720,7 +720,7 @@ height_narc = custom_target('height.narc',
depends: [ py_consts_generators ],
command: [
make_height_py,
'--knarc', knarc_exe,
'--narc', narc_exe,
'--source-dir', '@CURRENT_SOURCE_DIR@',
'--private-dir', '@PRIVATE_DIR@',
'--output-dir', '@OUTDIR@',
Expand All @@ -735,7 +735,7 @@ pl_poke_data_narc = custom_target('pl_poke_data.narc',
depends: [ py_consts_generators ],
command: [
pl_poke_data_py,
'--knarc', knarc_exe,
'--narc', narc_exe,
'--source-dir', '@CURRENT_SOURCE_DIR@',
'--private-dir', '@PRIVATE_DIR@',
'--output-dir', '@OUTDIR@',
Expand All @@ -748,7 +748,7 @@ pl_pokezukan_narc = custom_target('pl_pokezukan.narc',
env: json2bin_env,
command: [
make_pl_pokezukan_py,
'--knarc', knarc_exe,
'--narc', narc_exe,
'--source-dir', '@CURRENT_SOURCE_DIR@',
'--private-dir', '@PRIVATE_DIR@',
'--output-dir', '@OUTDIR@',
Expand All @@ -762,7 +762,7 @@ shinzukan_narc = custom_target('shinzukan.narc',
env: json2bin_env,
command: [
make_shinzukan_py,
'--knarc', knarc_exe,
'--narc', narc_exe,
'--source-dir', '@CURRENT_SOURCE_DIR@',
'--private-dir', '@PRIVATE_DIR@',
'--output-dir', '@OUTDIR@',
Expand All @@ -775,7 +775,7 @@ pl_growtbl_narc = custom_target('pl_growtbl.narc',
input: pl_growtbl_files,
command: [
make_pl_growtbl_py,
'--knarc', knarc_exe,
'--narc', narc_exe,
'--source-dir', '@CURRENT_SOURCE_DIR@',
'--private-dir', '@PRIVATE_DIR@',
'--output-dir', '@OUTDIR@',
Expand All @@ -795,7 +795,7 @@ pokedex_data_narc = custom_target('zukan_data.narc',
depends: [ py_consts_generators ],
command: [
make_pokedex_data_py,
'--knarc', knarc_exe,
'--narc', narc_exe,
'--source-dir', '@CURRENT_SOURCE_DIR@',
'--private-dir', '@PRIVATE_DIR@',
'--output-dir', '@OUTDIR@',
Expand All @@ -811,7 +811,7 @@ pokedex_data_giratina_altered_narc = custom_target('zukan_data_gira.narc',
depends: [ py_consts_generators ],
command: [
make_pokedex_data_py,
'--knarc', knarc_exe,
'--narc', narc_exe,
'--source-dir', '@CURRENT_SOURCE_DIR@',
'--private-dir', '@PRIVATE_DIR@',
'--output-dir', '@OUTDIR@',
Expand Down
6 changes: 3 additions & 3 deletions res/prebuilt/data/mmodel/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ mmodel_narc = custom_target('mmodel.narc',
output: 'mmodel.narc',
input: mmodel_files_targets,
command: [
knarc_exe,
'-d', '@OUTDIR@/mmodel',
'-p', '@OUTPUT0@'
narc_exe, 'create',
'--output', '@OUTPUT0@',
'@OUTDIR@/mmodel',
]
)

Expand Down
10 changes: 5 additions & 5 deletions res/text/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -773,11 +773,11 @@ message_banks_narc = custom_target('pl_msg.narc',
output: 'pl_msg.narc',
input: gmm_to_bin_gen.process(message_bank_files),
command: [
knarc_exe,
'-d', '@PRIVATE_DIR@',
'-p', '@OUTPUT0@',
'-o', message_banks_narc_order,
'-n'
narc_exe, 'create',
'--naix',
'--order', message_banks_narc_order,
'--output', '@OUTPUT0@',
'@PRIVATE_DIR@',
]
)

Expand Down
15 changes: 8 additions & 7 deletions res/trainers/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -951,11 +951,12 @@ trdata_narc = custom_target('trdata.narc',
input: trainer_data_gen.process(trainer_data_files, env: json2bin_env),
depends: [ py_consts_generators ],
command: [
knarc_exe,
'-d', '@PRIVATE_DIR@',
'-p', '@OUTPUT0@',
narc_exe,
'create',
'--order', trainers_order,
'--output', '@OUTPUT0@',
'--naix',
'@PRIVATE_DIR@',
],
)

Expand All @@ -967,11 +968,11 @@ trpoke_narc = custom_target('trpoke.narc',
input: trainer_party_gen.process(trainer_data_files, env: json2bin_env),
depends: [ py_consts_generators ],
command: [
knarc_exe,
'-d', '@PRIVATE_DIR@',
'-p', '@OUTPUT0@',
'--order', trainers_order,
narc_exe, 'create',
'--naix',
'--order', trainers_order,
'--output', '@OUTPUT0@',
'@PRIVATE_DIR@',
]
)

Expand Down
Loading

0 comments on commit 568e212

Please sign in to comment.