pokeplatinum/tools/meson.build
2024-03-08 09:39:14 -08:00

38 lines
1.1 KiB
Meson

# Native tools
subdir('csv2bin')
subdir('fixrom')
subdir('json2bin')
subdir('msgenc')
subdir('postconf')
subdir('scripts')
# Prebuilt tools
mwrap_exe = find_program('cw/mwrap', native: true)
makebanner_exe = find_program('makebanner', native: true)
makelcf_exe = find_program('makelcf', native: true)
makerom_exe = find_program('makerom', native: true)
# ARM binutils
arm_none_eabi_objcopy_exe = find_program('arm-none-eabi-objcopy', native: true)
# External tools
nitrogfx_exe = find_program('nitrogfx', native: true, required: false)
if not nitrogfx_exe.found()
subproject('nitrogfx', default_options: 'native=true')
nitrogfx_exe = find_program('nitrogfx', native: true)
endif
knarc_exe = find_program('knarc', native: true)
constgen_py = find_program('constgen_py', native: true, required: false)
if not constgen_py.found()
subproject('constgen')
constgen_py = find_program('constgen_py', native: true)
endif
SDATTool_py = find_program('SDATTool_py', native: true, required: false)
if not SDATTool_py.found()
subproject('SDATTool')
SDATTool_py = find_program('SDATTool_py', native: true)
endif