From d3c8f58db426fbff05077068a31acf846b92f6e4 Mon Sep 17 00:00:00 2001 From: yellows8 Date: Mon, 1 Jan 2018 12:27:27 -0500 Subject: [PATCH] Updated switch_rules for .nacp and NROFLAGS. --- buildscripts/switch_rules | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/buildscripts/switch_rules b/buildscripts/switch_rules index dae02022..3aca661c 100644 --- a/buildscripts/switch_rules +++ b/buildscripts/switch_rules @@ -8,6 +8,23 @@ PORTLIBS := $(PORTLIBS_PATH)/armv8-a $(PORTLIBS_PATH)/switch 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 @mkdir -p exefs @@ -23,7 +40,7 @@ LIBNX ?= $(DEVKITPRO)/libnx #--------------------------------------------------------------------------------- %.nro: %.elf - @elf2nro $< $@ + @elf2nro $< $@ $(NROFLAGS) @echo built ... $(notdir $@) #--------------------------------------------------------------------------------- %.elf: