Miscelleanous adjustments and fixes
This commit is contained in:
parent
b5981c41ba
commit
35c05a51a2
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -9,6 +9,3 @@ linux/ctroller
|
||||||
3DS/build
|
3DS/build
|
||||||
linux/build
|
linux/build
|
||||||
linux/bin
|
linux/bin
|
||||||
|
|
||||||
# misc files
|
|
||||||
.ycm_extra_conf.pyc
|
|
||||||
|
|
22
3DS/Makefile
22
3DS/Makefile
|
@ -37,10 +37,10 @@ ICON := $(RESOURCES)/icon.png
|
||||||
BANNER := $(RESOURCES)/banner.png
|
BANNER := $(RESOURCES)/banner.png
|
||||||
AUDIO := $(RESOURCES)/audio.wav
|
AUDIO := $(RESOURCES)/audio.wav
|
||||||
|
|
||||||
VERSION_STRING := $(subst ., ,$(shell git describe --tags | grep -o '^[0-9]\+\.[0-9]\+\.[0-9]\+'))
|
VERSION_STRING := $(shell git describe --tags --abbrev=0)
|
||||||
VERSION_MAJOR := $(word 1,$(VERSION_STRING))
|
VERSION_MAJOR := $(word 1,$(subst ., ,$(VERSION_STRING)))
|
||||||
VERSION_MINOR := $(word 2,$(VERSION_STRING))
|
VERSION_MINOR := $(word 2,$(subst ., ,$(VERSION_STRING)))
|
||||||
VERSION_PATCH := $(word 3,$(VERSION_STRING))
|
VERSION_PATCH := $(word 3,$(subst ., ,$(VERSION_STRING)))
|
||||||
|
|
||||||
APP_TITLE := $(TARGET)
|
APP_TITLE := $(TARGET)
|
||||||
APP_DESCRIPTION := Use your 3DS as PC gamepad
|
APP_DESCRIPTION := Use your 3DS as PC gamepad
|
||||||
|
@ -149,7 +149,7 @@ ifneq ($(ROMFS),)
|
||||||
export _3DSXFLAGS += --romfs=$(CURDIR)/$(ROMFS)
|
export _3DSXFLAGS += --romfs=$(CURDIR)/$(ROMFS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
.PHONY: $(BUILD) clean all
|
.PHONY: $(BUILD) clean all run install
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
all: release
|
all: release
|
||||||
|
@ -164,31 +164,34 @@ debug: export CFLAGS += $(CFLAGS_DEBUG) $(INCLUDE)
|
||||||
debug: export APP_TITLE := $(addsuffix -debug, $(APP_TITLE))
|
debug: export APP_TITLE := $(addsuffix -debug, $(APP_TITLE))
|
||||||
debug: $(BUILD)
|
debug: $(BUILD)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
bold = echo -e "\e[1m"$(1)"\e[0m"
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
$(BUILD):
|
$(BUILD):
|
||||||
|
@$(call bold,"Compiling binaries...")
|
||||||
@[ -d $@ ] || mkdir -p $@
|
@[ -d $@ ] || mkdir -p $@
|
||||||
@$(MAKE) -e --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile
|
@$(MAKE) -e --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
clean:
|
clean:
|
||||||
@echo clean ...
|
@$(call bold,"Cleaning...")
|
||||||
@rm -fr $(BUILD) $(OUTPUT).3dsx $(OUTPUT).smdh $(OUTPUT).elf $(OUTPUT).cia
|
@rm -fr $(BUILD) $(OUTPUT).3dsx $(OUTPUT).smdh $(OUTPUT).elf $(OUTPUT).cia
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
run: debug
|
run: debug
|
||||||
@echo running ...
|
@$(call bold,"Running...")
|
||||||
@3dslink -r 5 -a $(DSIP) $(OUTPUT).3dsx || true
|
@3dslink -r 5 -a $(DSIP) $(OUTPUT).3dsx || true
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
install: release
|
install: release
|
||||||
@echo uploading to $(DSIP) ...
|
@$(call bold,"Uploading to $(DSIP)...")
|
||||||
@./upload.sh $(DSIP) $(TARGET)
|
@./upload.sh $(DSIP) $(TARGET)
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
$(OUTPUT).cia: BANNER_TMP := $(BUILD)/$(notdir $(BANNER)).bnr
|
$(OUTPUT).cia: BANNER_TMP := $(BUILD)/$(notdir $(BANNER)).bnr
|
||||||
$(OUTPUT).cia: ICON_TMP := $(BUILD)/$(notdir $(ICON)).icn
|
$(OUTPUT).cia: ICON_TMP := $(BUILD)/$(notdir $(ICON)).icn
|
||||||
$(OUTPUT).cia: $(BUILD)
|
$(OUTPUT).cia: $(BUILD)
|
||||||
@echo building CIA ...
|
@$(call bold,"Building CIA...")
|
||||||
@bannertool makebanner -i $(BANNER) -a $(AUDIO) -o $(BANNER_TMP)
|
@bannertool makebanner -i $(BANNER) -a $(AUDIO) -o $(BANNER_TMP)
|
||||||
@bannertool makesmdh -s $(APP_TITLE) -l $(APP_TITLE) -p $(APP_AUTHOR) \
|
@bannertool makesmdh -s $(APP_TITLE) -l $(APP_TITLE) -p $(APP_AUTHOR) \
|
||||||
-i $(ICON) -o $(ICON_TMP)
|
-i $(ICON) -o $(ICON_TMP)
|
||||||
|
@ -196,6 +199,7 @@ $(OUTPUT).cia: $(BUILD)
|
||||||
-DAPP_ENCRYPTED=false -DAPP_TITLE="$(APP_TITLE)" \
|
-DAPP_ENCRYPTED=false -DAPP_TITLE="$(APP_TITLE)" \
|
||||||
-target t -exefslogo -elf $(OUTPUT).elf \
|
-target t -exefslogo -elf $(OUTPUT).elf \
|
||||||
-icon $(ICON_TMP) -banner $(BANNER_TMP)
|
-icon $(ICON_TMP) -banner $(BANNER_TMP)
|
||||||
|
@echo "Created CIA \"$@\""
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
else
|
else
|
||||||
|
|
|
@ -5,7 +5,6 @@ BasicInfo:
|
||||||
|
|
||||||
TitleInfo:
|
TitleInfo:
|
||||||
Category : Application
|
Category : Application
|
||||||
# UniqueId : 863002176874468
|
|
||||||
UniqueId : 0xF3D5C
|
UniqueId : 0xF3D5C
|
||||||
|
|
||||||
Option:
|
Option:
|
||||||
|
@ -13,7 +12,6 @@ Option:
|
||||||
FreeProductCode : true # Removes limitations on ProductCode
|
FreeProductCode : true # Removes limitations on ProductCode
|
||||||
MediaFootPadding : false # If true CCI files are created with padding
|
MediaFootPadding : false # If true CCI files are created with padding
|
||||||
EnableCrypt : $(APP_ENCRYPTED) # Enables encryption for NCCH and CIA
|
EnableCrypt : $(APP_ENCRYPTED) # Enables encryption for NCCH and CIA
|
||||||
EnableCrypt : $(APP_ENCRYPTED) # Enables encryption for NCCH and CIA
|
|
||||||
EnableCompress : false # Compresses where applicable (currently only exefs:/.code)
|
EnableCompress : false # Compresses where applicable (currently only exefs:/.code)
|
||||||
|
|
||||||
AccessControlInfo:
|
AccessControlInfo:
|
||||||
|
|
|
@ -50,6 +50,7 @@ PenaltyBreakString: 1000
|
||||||
PenaltyExcessCharacter: 1000000
|
PenaltyExcessCharacter: 1000000
|
||||||
PenaltyReturnTypeOnItsOwnLine: 60
|
PenaltyReturnTypeOnItsOwnLine: 60
|
||||||
PointerAlignment: Right
|
PointerAlignment: Right
|
||||||
|
SortIncludes: false
|
||||||
SpaceAfterCStyleCast: true
|
SpaceAfterCStyleCast: true
|
||||||
SpaceBeforeAssignmentOperators: true
|
SpaceBeforeAssignmentOperators: true
|
||||||
SpaceBeforeParens: ControlStatements
|
SpaceBeforeParens: ControlStatements
|
||||||
|
|
|
@ -24,9 +24,9 @@ RLINK_FLAGS =
|
||||||
# Additional debug-specific linker settings
|
# Additional debug-specific linker settings
|
||||||
DLINK_FLAGS =
|
DLINK_FLAGS =
|
||||||
# Destination directory, like a jail or mounted system
|
# Destination directory, like a jail or mounted system
|
||||||
DESTDIR = /
|
DESTDIR =
|
||||||
# Install path
|
# Install path
|
||||||
BINDIR = usr/bin
|
BINDIR = /usr/bin
|
||||||
#### END PROJECT SETTINGS ####
|
#### END PROJECT SETTINGS ####
|
||||||
|
|
||||||
# Generally should not need to edit below this line
|
# Generally should not need to edit below this line
|
||||||
|
|
Loading…
Reference in a new issue