summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTharo <17233964+Thar0@users.noreply.github.com>2024-08-08 05:11:39 +0100
committerGitHub <noreply@github.com>2024-08-08 00:11:39 -0400
commit29acf96db2fe30f0d194cc4298a3ceef367bf0e5 (patch)
tree014fa2efbc4e23bbe4594c7e127d600109caf624 /Makefile
parent01865243003bdeab66a079e29ba9489552ce6956 (diff)
[Audio 1/?] Extract Samplebanks and Soundfonts to XML (#2008)
* [Audio 1/?] Extract Samplebanks and Soundfonts to XML * Remove config.py and use the version yamls for addresses, other suggested changes * Adjust setup-audio * Remove some commented out dead code (MM review)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index adf690705..fa0ede70a 100644
--- a/Makefile
+++ b/Makefile
@@ -183,6 +183,9 @@ PYTHON ?= $(VENV)/bin/python3
# preprocessor for this because it won't substitute inside string literals.
SPEC_REPLACE_VARS := sed -e 's|$$(BUILD_DIR)|$(BUILD_DIR)|g'
+# Audio tools
+AUDIO_EXTRACT := $(PYTHON) tools/audio_extraction.py
+
CFLAGS += $(CPP_DEFINES)
CPPFLAGS += $(CPP_DEFINES)
@@ -427,6 +430,10 @@ venv:
$(PYTHON) -m pip install -U pip
$(PYTHON) -m pip install -U -r requirements.txt
+# TODO this is a temporary rule for testing audio, to be removed
+setup-audio:
+ $(AUDIO_EXTRACT) -o $(EXTRACTED_DIR) -v $(VERSION) --read-xml
+
setup: venv
$(MAKE) -C tools
$(PYTHON) tools/decompress_baserom.py $(VERSION)
@@ -434,6 +441,7 @@ setup: venv
$(PYTHON) tools/extract_incbins.py $(EXTRACTED_DIR)/baserom --oot-version $(VERSION) -o $(EXTRACTED_DIR)/incbin
$(PYTHON) tools/msgdis.py $(VERSION)
$(PYTHON) extract_assets.py -v $(VERSION) -j$(N_THREADS)
+ $(AUDIO_EXTRACT) -o $(EXTRACTED_DIR) -v $(VERSION) --read-xml
disasm:
$(RM) -r $(EXPECTED_DIR)