Compile for all buildbot targets except msvc

This commit is contained in:
Vladimir Serbinenko 2022-01-21 08:53:55 +01:00
parent 70f4a2d812
commit e5cdcedab6
3 changed files with 118 additions and 4 deletions

View File

@ -38,7 +38,11 @@ include:
# MacOS ARM 64-bit # MacOS ARM 64-bit
- project: 'libretro-infrastructure/ci-templates' - project: 'libretro-infrastructure/ci-templates'
file: '/osx-arm64.yml' file: '/osx-arm64.yml'
# MacOS PPC
- project: 'libretro-infrastructure/ci-templates'
file: '/osx-ppc.yml'
################################## CELLULAR ################################ ################################## CELLULAR ################################
# Android # Android
- project: 'libretro-infrastructure/ci-templates' - project: 'libretro-infrastructure/ci-templates'
@ -89,7 +93,18 @@ include:
- project: 'libretro-infrastructure/ci-templates' - project: 'libretro-infrastructure/ci-templates'
file: '/tvos-arm64.yml' file: '/tvos-arm64.yml'
# OpenDingux
- project: 'libretro-infrastructure/ci-templates'
file: '/dingux-mips32.yml'
# OpenDingux
- project: 'libretro-infrastructure/ci-templates'
file: '/dingux-arm32.yml'
#################################### MISC ################################## #################################### MISC ##################################
# Emscripten
- project: 'libretro-infrastructure/ci-templates'
file: '/emscripten-static.yml'
# Stages for building # Stages for building
stages: stages:
@ -133,7 +148,13 @@ libretro-build-osx-arm64:
extends: extends:
- .libretro-osx-arm64-make-default - .libretro-osx-arm64-make-default
- .core-defs - .core-defs
# MacOS PPC
libretro-build-osx-ppc:
extends:
- .libretro-osx-ppc-make-default
- .core-defs
################################### CELLULAR ################################# ################################### CELLULAR #################################
# Android ARMv7a # Android ARMv7a
android-armeabi-v7a: android-armeabi-v7a:
@ -225,3 +246,46 @@ libretro-build-libnx-aarch64:
extends: extends:
- .libretro-libnx-static-retroarch-master - .libretro-libnx-static-retroarch-master
- .core-defs - .core-defs
# RetroFW
libretro-build-retrofw-mips32:
extends:
- .libretro-retrofw-mips32-make-default
- .core-defs
# OpenDingux Beta
libretro-build-dingux-odbeta-mips32:
extends:
- .libretro-dingux-odbeta-mips32-make-default
- .core-defs
# OpenDingux Beta
libretro-build-rs90-odbeta-mips32:
extends:
- .libretro-rs90-odbeta-mips32-make-default
- .core-defs
# OpenDingux
libretro-build-dingux-arm32:
extends:
- .libretro-miyoo-arm32-make-default
- .core-defs
# OpenDingux
libretro-build-dingux-mips32:
extends:
- .libretro-dingux-mips32-make-default
- .core-defs
# OpenDingux Beta
libretro-build-dingux-odbeta-mips32:
extends:
- .libretro-dingux-odbeta-mips32-make-default
- .core-defs
#################################### MISC ##################################
# Emscripten
libretro-build-emscripten:
extends:
- .libretro-emscripten-static-retroarch-master
- .core-defs

View File

@ -201,6 +201,49 @@ else ifeq ($(platform), vita)
AR = arm-vita-eabi-ar$(EXE_EXT) AR = arm-vita-eabi-ar$(EXE_EXT)
PLATFORM_DEFINES := -DVITA PLATFORM_DEFINES := -DVITA
STATIC_LINKING = 1 STATIC_LINKING = 1
# RS90
else ifeq ($(platform), rs90)
TARGET := $(TARGET_NAME)_libretro.so
CC = /opt/rs90-toolchain/usr/bin/mipsel-linux-gcc
CXX = /opt/rs90-toolchain/usr/bin/mipsel-linux-g++
AR = /opt/rs90-toolchain/usr/bin/mipsel-linux-ar
fpic := -fPIC
SHARED := -shared -Wl,-version-script=$(CORE_DIR)/link.T
PLATFORM_DEFINES := -DCC_RESAMPLER -DCC_RESAMPLER_NO_HIGHPASS
CFLAGS += -fomit-frame-pointer -ffast-math -march=mips32 -mtune=mips32
CXXFLAGS += $(CFLAGS)
# GCW0
else ifeq ($(platform), gcw0)
TARGET := $(TARGET_NAME)_libretro.so
CC = /opt/gcw0-toolchain/usr/bin/mipsel-linux-gcc
AR = /opt/gcw0-toolchain/usr/bin/mipsel-linux-ar
fpic := -fPIC
SHARED := -shared -Wl,--version-script=link.T -Wl,-no-undefined
DISABLE_ERROR_LOGGING := 1
CFLAGS += -march=mips32 -mtune=mips32r2 -mhard-float
LIBS = -lm
# RETROFW
else ifeq ($(platform), retrofw)
EXT ?= so
TARGET := $(TARGET_NAME)_libretro.$(EXT)
CC = /opt/retrofw-toolchain/usr/bin/mipsel-linux-gcc
AR = /opt/retrofw-toolchain/usr/bin/mipsel-linux-ar
fpic := -fPIC
SHARED := -shared -Wl,--version-script=$(CORE_DIR)/link.T -Wl,--no-undefined
CFLAGS += -ffast-math -march=mips32 -mtune=mips32 -mhard-float
LIBS = -lm
# MIYOO
else ifeq ($(platform), miyoo)
TARGET := $(TARGET_NAME)_libretro.so
fpic := -fPIC
SHARED := -shared -Wl,-version-script=link.T
CC = /opt/miyoo/usr/bin/arm-linux-gcc
AR = /opt/miyoo/usr/bin/arm-linux-ar
PLATFORM_DEFINES += -D_GNU_SOURCE
CFLAGS += -fomit-frame-pointer -ffast-math -march=armv5te -mtune=arm926ej-s
CFLAGS += -fno-common -ftree-vectorize -funswitch-loops
# CTR (3DS) # CTR (3DS)
else ifeq ($(platform), ctr) else ifeq ($(platform), ctr)
@ -511,8 +554,10 @@ fpic=
SHARED= SHARED=
endif endif
CFLAGS += -Wall -Wno-switch -Wno-parentheses -Wno-unused-variable -Wno-unused-parameter -Wno-sign-compare -Wmissing-prototypes -DLIBRETRO=1 CFLAGS += -DLIBRETRO=1
ifeq ($(OLD_GCC), 0)
ifeq ($(ENABLE_WARNINGS), 1)
CFLAGS += -Wall -Wno-switch -Wno-parentheses -Wno-unused-variable -Wno-unused-parameter -Wno-sign-compare -Wmissing-prototypes
CFLAGS += -Wno-unused-but-set-variable -Wextra CFLAGS += -Wno-unused-but-set-variable -Wextra
endif endif
CFLAGS += -std=gnu99 CFLAGS += -std=gnu99

5
link.T Normal file
View File

@ -0,0 +1,5 @@
{
global: retro_*;
local: *;
};