Fix torch (#600)

* Fixed torch
This commit is contained in:
MegaMech
2024-04-09 22:24:11 -06:00
committed by GitHub
parent 3da5a4f343
commit ad495221f7
5 changed files with 13 additions and 17 deletions
+3
View File
@@ -10,3 +10,6 @@
[submodule "doxygen-awesome-css"]
path = doxygen-awesome-css
url = https://github.com/jothepro/doxygen-awesome-css.git
[submodule "tools/torch"]
path = tools/torch
url = https://github.com/HarbourMasters/torch
+2 -2
View File
@@ -356,7 +356,7 @@ BIN2C := $(PYTHON) $(TOOLS_DIR)/bin2c.py
EXTRACT_DATA_FOR_MIO := $(TOOLS_DIR)/extract_data_for_mio
ASSET_EXTRACT := $(PYTHON) $(TOOLS_DIR)/new_extract_assets.py
LINKONLY_GENERATOR := $(PYTHON) $(TOOLS_DIR)/linkonly_generator.py
TORCH := tools/torch/torch
TORCH := tools/torch/cmake-build-release/torch
EMULATOR = mupen64plus
EMU_FLAGS = --noosd
LOADER = loader64
@@ -399,7 +399,7 @@ endif
assets:
@echo "Extracting torch assets..."
@$(TORCH) code $(BASEROM) -v
@$(TORCH) code $(BASEROM)
@$(TORCH) header $(BASEROM)
@$(TORCH) modding export $(BASEROM)
+7 -15
View File
@@ -29,25 +29,17 @@ n64cksum_CFLAGS := -DN64CKSUM_STANDALONE
extract_data_for_mio_SOURCES := extract_data_for_mio.c
ifeq ($(OS),Windows_NT)
DETECTED_OS=windows
# Set Windows temporary directory to its environment variable
export TMPDIR=$(TEMP)
else
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux)
DETECTED_OS=linux
else ifeq ($(UNAME_S),Darwin)
DETECTED_OS=macos
endif
endif
# Build tools and recomp
all: $(PROGRAMS)
all: $(PROGRAMS) torch
torch:
@echo "Building Torch..."
$(MAKE) -C torch type=release -j$(N_THREADS)
# Remove generated files
clean:
$(RM) $(PROGRAMS)
$(RM) -rf torch/cmake-build-release
@@ -63,4 +55,4 @@ endef
$(foreach p,$(PROGRAMS),$(eval $(call COMPILE,$(p))))
.PHONY: all clean default
.PHONY: all clean default torch
Submodule
+1
Submodule tools/torch added at 74b0c12029
BIN
View File
Binary file not shown.