mirror of
https://github.com/switchbrew/libnx.git
synced 2025-08-07 00:29:23 +02:00
Updated switch_rules for .nacp and NROFLAGS.
This commit is contained in:
parent
a0ea8c53df
commit
d3c8f58db4
@ -8,6 +8,23 @@ PORTLIBS := $(PORTLIBS_PATH)/armv8-a $(PORTLIBS_PATH)/switch
|
|||||||
|
|
||||||
LIBNX ?= $(DEVKITPRO)/libnx
|
LIBNX ?= $(DEVKITPRO)/libnx
|
||||||
|
|
||||||
|
ifeq ($(strip $(APP_TITLE)),)
|
||||||
|
APP_TITLE := $(notdir $(OUTPUT))
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(strip $(APP_AUTHOR)),)
|
||||||
|
APP_AUTHOR := Unspecified Author
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(strip $(APP_VERSION)),)
|
||||||
|
APP_VERSION := 1.0.0
|
||||||
|
endif
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.nacp: $(MAKEFILE_LIST)
|
||||||
|
@nacptool --create "$(APP_TITLE)" "$(APP_AUTHOR)" "$(APP_VERSION)" $@ $(NACPFLAGS)
|
||||||
|
@echo built ... $(notdir $@)
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
%.pfs0: %.nso
|
%.pfs0: %.nso
|
||||||
@mkdir -p exefs
|
@mkdir -p exefs
|
||||||
@ -23,7 +40,7 @@ LIBNX ?= $(DEVKITPRO)/libnx
|
|||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
%.nro: %.elf
|
%.nro: %.elf
|
||||||
@elf2nro $< $@
|
@elf2nro $< $@ $(NROFLAGS)
|
||||||
@echo built ... $(notdir $@)
|
@echo built ... $(notdir $@)
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
%.elf:
|
%.elf:
|
||||||
|
Loading…
Reference in New Issue
Block a user