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