mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-08 07:20:16 +00:00
Download ido-recomp compiler binaries instead of committing them (#2388)
* Download ido-recomp compiler binaries instead of committing them * Skip downloading compilers if ido_recomp/ exists * Use make instead of bash script
This commit is contained in:
parent
e10ecb2fa3
commit
aaf3183233
70 changed files with 27 additions and 7565 deletions
|
@ -1,6 +1,19 @@
|
|||
CFLAGS := -Wall -Wextra -pedantic -std=c99 -g -O2
|
||||
PROGRAMS := elf2rom makeromfs mkdmadata mkldscript preprocess_pragmas reloc_prereq vtxdis
|
||||
|
||||
UNAME_S := $(shell uname -s)
|
||||
ifeq ($(UNAME_S),Linux)
|
||||
DETECTED_OS=linux
|
||||
else ifeq ($(UNAME_S),Darwin)
|
||||
DETECTED_OS=macos
|
||||
else
|
||||
$(error Unsupported OS: $(UNAME_S))
|
||||
endif
|
||||
|
||||
IDO_RECOMP_VERSION := v1.2
|
||||
IDO_RECOMP_5_3_DIR := ido_recomp/$(DETECTED_OS)/5.3
|
||||
IDO_RECOMP_7_1_DIR := ido_recomp/$(DETECTED_OS)/7.1
|
||||
|
||||
ifeq ($(shell command -v clang >/dev/null 2>&1; echo $$?),0)
|
||||
CC := clang
|
||||
else
|
||||
|
@ -17,13 +30,14 @@ ifneq ($(LLD),0)
|
|||
CFLAGS += -fuse-ld=lld
|
||||
endif
|
||||
|
||||
all: $(PROGRAMS)
|
||||
all: $(PROGRAMS) $(IDO_RECOMP_5_3_DIR) $(IDO_RECOMP_7_1_DIR)
|
||||
$(MAKE) -C ZAPD
|
||||
$(MAKE) -C fado
|
||||
$(MAKE) -C audio
|
||||
|
||||
clean:
|
||||
$(RM) $(PROGRAMS) $(addsuffix .exe,$(PROGRAMS))
|
||||
$(RM) -r ido_recomp
|
||||
$(MAKE) -C ZAPD clean
|
||||
$(MAKE) -C fado clean
|
||||
$(MAKE) -C audio clean
|
||||
|
@ -48,3 +62,11 @@ $(1): $($1_SOURCES)
|
|||
endef
|
||||
|
||||
$(foreach p,$(PROGRAMS),$(eval $(call COMPILE,$(p))))
|
||||
|
||||
$(IDO_RECOMP_5_3_DIR):
|
||||
mkdir -p $@
|
||||
curl -L https://github.com/decompals/ido-static-recomp/releases/download/$(IDO_RECOMP_VERSION)/ido-5.3-recomp-$(DETECTED_OS).tar.gz | tar xz -C $@
|
||||
|
||||
$(IDO_RECOMP_7_1_DIR):
|
||||
mkdir -p $@
|
||||
curl -L https://github.com/decompals/ido-static-recomp/releases/download/$(IDO_RECOMP_VERSION)/ido-7.1-recomp-$(DETECTED_OS).tar.gz | tar xz -C $@
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue