Commit d0dd2376 authored by phcoder's avatar phcoder
Browse files

Add 3DS compilation directives

parent feb78b96
......@@ -56,6 +56,10 @@ include:
- project: 'libretro-infrastructure/ci-templates'
file: '/vita-static.yml'
# Nintendo 3DS
- project: 'libretro-infrastructure/ci-templates'
file: '/ctr-static.yml'
# Nintendo GameCube
#- project: 'libretro-infrastructure/ci-templates'
#file: '/ngc-static.yml'
......@@ -176,6 +180,12 @@ libretro-build-tvos-arm64:
- .core-defs
################################### CONSOLES #################################
# Nintendo 3DS
libretro-build-ctr:
extends:
- .libretro-ctr-static-retroarch-master
- .core-defs
# Nintendo GameCube
#libretro-build-ngc:
#extends:
......
......@@ -198,6 +198,24 @@ else ifeq ($(platform), vita)
AR = arm-vita-eabi-ar
CXXFLAGS += -Wl,-q -Wall -O3
STATIC_LINKING = 1
# CTR/3DS
else ifeq ($(platform), ctr)
TARGET := $(TARGET_NAME)_libretro_$(platform).a
CC = $(DEVKITARM)/bin/arm-none-eabi-gcc$(EXE_EXT)
CXX = $(DEVKITARM)/bin/arm-none-eabi-g++$(EXE_EXT)
AR = $(DEVKITARM)/bin/arm-none-eabi-ar$(EXE_EXT)
CFLAGS += -DARM11 -D_3DS
CFLAGS += -march=armv6k -mtune=mpcore -mfloat-abi=hard
CFLAGS += -Wall -mword-relocations
CFLAGS += -fomit-frame-pointer -ffast-math
CXXFLAGS += -DARM11 -D_3DS
CXXFLAGS += -march=armv6k -mtune=mpcore -mfloat-abi=hard
CXXFLAGS += -Wall -mword-relocations
CXXFLAGS += -fomit-frame-pointer -ffast-math
HAVE_RZLIB := 1
DISABLE_ERROR_LOGGING := 1
ARM = 1
STATIC_LINKING=1
else
CC ?= gcc
TARGET := $(TARGET_NAME)_libretro.dll
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment