Merge remote-tracking branch 'libretro/master'
Signed-off-by: Rafael Kitover <rkitover@gmail.com>
This commit is contained in:
commit
31789aafba
119
.gitlab-ci.yml
119
.gitlab-ci.yml
|
@ -1,3 +1,10 @@
|
||||||
|
# DESCRIPTION: GitLab CI/CD for libRetro (NOT FOR GitLab-proper)
|
||||||
|
|
||||||
|
##############################################################################
|
||||||
|
################################# BOILERPLATE ################################
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
|
# Core definitions
|
||||||
.core-defs:
|
.core-defs:
|
||||||
variables:
|
variables:
|
||||||
GIT_SUBMODULE_STRATEGY: recursive
|
GIT_SUBMODULE_STRATEGY: recursive
|
||||||
|
@ -5,64 +12,138 @@
|
||||||
MAKEFILE_PATH: src/libretro
|
MAKEFILE_PATH: src/libretro
|
||||||
CORENAME: vbam
|
CORENAME: vbam
|
||||||
|
|
||||||
|
# Inclusion templates, required for the build to work
|
||||||
include:
|
include:
|
||||||
- template: Jobs/Code-Quality.gitlab-ci.yml
|
################################## DESKTOPS ################################
|
||||||
- project: 'libretro-infrastructure/ci-templates'
|
# Windows 64-bit
|
||||||
file: '/libnx-static.yml'
|
|
||||||
- project: 'libretro-infrastructure/ci-templates'
|
|
||||||
file: '/vita-static.yml'
|
|
||||||
- project: 'libretro-infrastructure/ci-templates'
|
|
||||||
file: '/linux-x64.yml'
|
|
||||||
- project: 'libretro-infrastructure/ci-templates'
|
- project: 'libretro-infrastructure/ci-templates'
|
||||||
file: '/windows-x64-mingw.yml'
|
file: '/windows-x64-mingw.yml'
|
||||||
|
|
||||||
|
# Windows 32-bit
|
||||||
|
- project: 'libretro-infrastructure/ci-templates'
|
||||||
|
file: '/windows-i686-mingw.yml'
|
||||||
|
|
||||||
|
# Linux 64-bit
|
||||||
|
- project: 'libretro-infrastructure/ci-templates'
|
||||||
|
file: '/linux-x64.yml'
|
||||||
|
|
||||||
|
# Linux 32-bit
|
||||||
|
- project: 'libretro-infrastructure/ci-templates'
|
||||||
|
file: '/linux-i686.yml'
|
||||||
|
|
||||||
|
# MacOS 64-bit
|
||||||
|
- project: 'libretro-infrastructure/ci-templates'
|
||||||
|
file: '/osx-x64.yml'
|
||||||
|
|
||||||
|
# MacOS ARM 64-bit
|
||||||
|
- project: 'libretro-infrastructure/ci-templates'
|
||||||
|
file: '/osx-arm64.yml'
|
||||||
|
|
||||||
|
################################## CELLULAR ################################
|
||||||
|
# Android
|
||||||
- project: 'libretro-infrastructure/ci-templates'
|
- project: 'libretro-infrastructure/ci-templates'
|
||||||
file: '/android-jni.yml'
|
file: '/android-jni.yml'
|
||||||
|
|
||||||
|
# iOS 9
|
||||||
|
- project: 'libretro-infrastructure/ci-templates'
|
||||||
|
file: '/ios9.yml'
|
||||||
|
|
||||||
|
################################## CONSOLES ################################
|
||||||
|
# PlayStation Vita
|
||||||
|
- project: 'libretro-infrastructure/ci-templates'
|
||||||
|
file: '/vita-static.yml'
|
||||||
|
|
||||||
|
# Nintendo Switch
|
||||||
|
- project: 'libretro-infrastructure/ci-templates'
|
||||||
|
file: '/libnx-static.yml'
|
||||||
|
|
||||||
|
# Stages for building
|
||||||
stages:
|
stages:
|
||||||
- build-prepare
|
- build-prepare
|
||||||
- build-shared
|
- build-shared
|
||||||
- build-static
|
- build-static
|
||||||
- test
|
|
||||||
|
|
||||||
#Desktop
|
|
||||||
libretro-build-linux-x64:
|
|
||||||
extends:
|
|
||||||
- .libretro-linux-x64-make-default
|
|
||||||
- .core-defs
|
|
||||||
|
|
||||||
|
##############################################################################
|
||||||
|
#################################### STAGES ##################################
|
||||||
|
##############################################################################
|
||||||
|
#
|
||||||
|
################################### DESKTOPS #################################
|
||||||
|
# Windows 64-bit
|
||||||
libretro-build-windows-x64:
|
libretro-build-windows-x64:
|
||||||
extends:
|
extends:
|
||||||
- .libretro-windows-x64-mingw-make-default
|
- .libretro-windows-x64-mingw-make-default
|
||||||
- .core-defs
|
- .core-defs
|
||||||
|
|
||||||
# Android
|
# Windows 32-bit
|
||||||
|
libretro-build-windows-i686:
|
||||||
|
extends:
|
||||||
|
- .libretro-windows-i686-mingw-make-default
|
||||||
|
- .core-defs
|
||||||
|
|
||||||
|
# Linux 64-bit
|
||||||
|
libretro-build-linux-x64:
|
||||||
|
extends:
|
||||||
|
- .libretro-linux-x64-make-default
|
||||||
|
- .core-defs
|
||||||
|
|
||||||
|
# Linux 32-bit
|
||||||
|
libretro-build-linux-i686:
|
||||||
|
extends:
|
||||||
|
- .libretro-linux-i686-make-default
|
||||||
|
- .core-defs
|
||||||
|
|
||||||
|
# MacOS 64-bit
|
||||||
|
libretro-build-osx-x64:
|
||||||
|
extends:
|
||||||
|
- .libretro-osx-x64-make-default
|
||||||
|
- .core-defs
|
||||||
|
|
||||||
|
# MacOS ARM 64-bit
|
||||||
|
libretro-build-osx-arm64:
|
||||||
|
extends:
|
||||||
|
- .libretro-osx-arm64-make-default
|
||||||
|
- .core-defs
|
||||||
|
|
||||||
|
################################### CELLULAR #################################
|
||||||
|
# Android ARMv7a
|
||||||
android-armeabi-v7a:
|
android-armeabi-v7a:
|
||||||
extends:
|
extends:
|
||||||
- .libretro-android-jni-armeabi-v7a
|
- .libretro-android-jni-armeabi-v7a
|
||||||
- .core-defs
|
- .core-defs
|
||||||
|
|
||||||
|
# Android ARMv8a
|
||||||
android-arm64-v8a:
|
android-arm64-v8a:
|
||||||
extends:
|
extends:
|
||||||
- .libretro-android-jni-arm64-v8a
|
- .libretro-android-jni-arm64-v8a
|
||||||
- .core-defs
|
- .core-defs
|
||||||
|
|
||||||
|
# Android 64-bit x86
|
||||||
android-x86_64:
|
android-x86_64:
|
||||||
extends:
|
extends:
|
||||||
- .libretro-android-jni-x86_64
|
- .libretro-android-jni-x86_64
|
||||||
- .core-defs
|
- .core-defs
|
||||||
|
|
||||||
|
# Android 32-bit x86
|
||||||
android-x86:
|
android-x86:
|
||||||
extends:
|
extends:
|
||||||
- .libretro-android-jni-x86
|
- .libretro-android-jni-x86
|
||||||
- .core-defs
|
- .core-defs
|
||||||
|
|
||||||
# Static
|
# iOS 9
|
||||||
libretro-build-libnx-aarch64:
|
libretro-build-ios-9:
|
||||||
extends:
|
extends:
|
||||||
- .libretro-libnx-static-retroarch-master
|
- .libretro-ios9-make-default
|
||||||
- .core-defs
|
- .core-defs
|
||||||
|
|
||||||
|
################################### CONSOLES #################################
|
||||||
|
# PlayStation Vita
|
||||||
libretro-build-vita:
|
libretro-build-vita:
|
||||||
extends:
|
extends:
|
||||||
- .libretro-vita-static-retroarch-master
|
- .libretro-vita-static-retroarch-master
|
||||||
- .core-defs
|
- .core-defs
|
||||||
|
|
||||||
|
# Nintendo Switch
|
||||||
|
libretro-build-libnx-aarch64:
|
||||||
|
extends:
|
||||||
|
- .libretro-libnx-static-retroarch-master
|
||||||
|
- .core-defs
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
#include "Types.h"
|
#include "Types.h"
|
||||||
|
|
||||||
#ifdef __CELLOS_LV2__
|
#ifdef __PS3__
|
||||||
/* PlayStation3 */
|
/* PlayStation3 */
|
||||||
#include <ppu_intrinsics.h>
|
#include <ppu_intrinsics.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -20,6 +20,9 @@ else ifneq ($(findstring MINGW,$(shell uname -a)),)
|
||||||
else ifneq ($(findstring Darwin,$(shell uname -a)),)
|
else ifneq ($(findstring Darwin,$(shell uname -a)),)
|
||||||
platform = osx
|
platform = osx
|
||||||
arch = intel
|
arch = intel
|
||||||
|
ifeq ($(shell uname -p),arm)
|
||||||
|
arch = arm
|
||||||
|
endif
|
||||||
ifeq ($(shell uname -p),powerpc)
|
ifeq ($(shell uname -p),powerpc)
|
||||||
arch = ppc
|
arch = ppc
|
||||||
endif
|
endif
|
||||||
|
@ -36,6 +39,9 @@ EXE_EXT = .exe
|
||||||
else ifneq ($(findstring Darwin,$(shell uname -a)),)
|
else ifneq ($(findstring Darwin,$(shell uname -a)),)
|
||||||
system_platform = osx
|
system_platform = osx
|
||||||
arch = intel
|
arch = intel
|
||||||
|
ifeq ($(shell uname -p),arm)
|
||||||
|
arch = arm
|
||||||
|
endif
|
||||||
ifeq ($(shell uname -p),powerpc)
|
ifeq ($(shell uname -p),powerpc)
|
||||||
arch = ppc
|
arch = ppc
|
||||||
endif
|
endif
|
||||||
|
@ -138,7 +144,24 @@ else ifeq ($(platform), osx)
|
||||||
endif
|
endif
|
||||||
OSXVER = `sw_vers -productVersion | cut -d. -f 2`
|
OSXVER = `sw_vers -productVersion | cut -d. -f 2`
|
||||||
OSX_LT_MAVERICKS = `(( $(OSXVER) <= 9)) && echo "YES"`
|
OSX_LT_MAVERICKS = `(( $(OSXVER) <= 9)) && echo "YES"`
|
||||||
fpic += -mmacosx-version-min=10.2
|
MINVERSION =
|
||||||
|
ifeq ($(OSX_LT_MAVERICKS),"YES")
|
||||||
|
MINVERSION = -mmacosx-version-min=10.2
|
||||||
|
else
|
||||||
|
MINVERSION = -mmacosx-version-min=10.7
|
||||||
|
endif
|
||||||
|
ifeq ($(shell uname -p),arm)
|
||||||
|
MINVERSION =
|
||||||
|
endif
|
||||||
|
ifeq ($(CROSS_COMPILE),1)
|
||||||
|
TARGET_RULE = -target $(LIBRETRO_APPLE_PLATFORM) -isysroot $(LIBRETRO_APPLE_ISYSROOT)
|
||||||
|
CFLAGS += $(TARGET_RULE)
|
||||||
|
CPPFLAGS += $(TARGET_RULE)
|
||||||
|
CXXFLAGS += $(TARGET_RULE)
|
||||||
|
LDFLAGS += $(TARGET_RULE)
|
||||||
|
MINVERSION =
|
||||||
|
endif
|
||||||
|
fpic += $(MINVERSION) -stdlib=libc++
|
||||||
SHARED := -dynamiclib
|
SHARED := -dynamiclib
|
||||||
TILED_RENDERING=1
|
TILED_RENDERING=1
|
||||||
|
|
||||||
|
@ -207,28 +230,6 @@ else ifeq ($(platform), qnx)
|
||||||
PLATFORM_DEFINES := -D__BLACKBERRY_QNX__ -marm -mcpu=cortex-a9 -mfpu=neon -mfloat-abi=softfp
|
PLATFORM_DEFINES := -D__BLACKBERRY_QNX__ -marm -mcpu=cortex-a9 -mfpu=neon -mfloat-abi=softfp
|
||||||
TILED_RENDERING=1
|
TILED_RENDERING=1
|
||||||
|
|
||||||
# PS3
|
|
||||||
else ifeq ($(platform), ps3)
|
|
||||||
TARGET := $(TARGET_NAME)_libretro_$(platform).a
|
|
||||||
CC = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-gcc.exe
|
|
||||||
CXX = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-gcc.exe
|
|
||||||
AR = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-ar.exe
|
|
||||||
ENDIANNESS_DEFINES += -DMSB_FIRST
|
|
||||||
PLATFORM_DEFINES := -D__CELLOS_LV2__ -D__POWERPC__ -D__ppc__
|
|
||||||
STATIC_LINKING=1
|
|
||||||
TILED_RENDERING=1
|
|
||||||
|
|
||||||
# PS3 (SNC)
|
|
||||||
else ifeq ($(platform), sncps3)
|
|
||||||
TARGET := $(TARGET_NAME)_libretro_ps3.a
|
|
||||||
CC = $(CELL_SDK)/host-win32/sn/bin/ps3ppusnc.exe
|
|
||||||
CXX = $(CELL_SDK)/host-win32/sn/bin/ps3ppusnc.exe
|
|
||||||
AR = $(CELL_SDK)/host-win32/sn/bin/ps3snarl.exe
|
|
||||||
ENDIANNESS_DEFINES += -DMSB_FIRST
|
|
||||||
PLATFORM_DEFINES := -D__CELLOS_LV2__ -D__POWERPC__ -D__ppc__
|
|
||||||
STATIC_LINKING=1
|
|
||||||
TILED_RENDERING=1
|
|
||||||
|
|
||||||
# Lightweight PS3 Homebrew SDK
|
# Lightweight PS3 Homebrew SDK
|
||||||
else ifeq ($(platform), psl1ght)
|
else ifeq ($(platform), psl1ght)
|
||||||
TARGET := $(TARGET_NAME)_libretro_psl1ght.a
|
TARGET := $(TARGET_NAME)_libretro_psl1ght.a
|
||||||
|
@ -236,7 +237,7 @@ else ifeq ($(platform), psl1ght)
|
||||||
CXX = $(PS3DEV)/ppu/bin/ppu-g++$(EXE_EXT)
|
CXX = $(PS3DEV)/ppu/bin/ppu-g++$(EXE_EXT)
|
||||||
AR = $(PS3DEV)/ppu/bin/ppu-ar$(EXE_EXT)
|
AR = $(PS3DEV)/ppu/bin/ppu-ar$(EXE_EXT)
|
||||||
ENDIANNESS_DEFINES += -DMSB_FIRST
|
ENDIANNESS_DEFINES += -DMSB_FIRST
|
||||||
PLATFORM_DEFINES := -D__CELLOS_LV2__ -D__POWERPC__ -D__ppc__
|
PLATFORM_DEFINES := -D__PS3__ -D__POWERPC__ -D__ppc__
|
||||||
STATIC_LINKING=1
|
STATIC_LINKING=1
|
||||||
TILED_RENDERING=1
|
TILED_RENDERING=1
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#ifndef __CELLOS_LV2__
|
|
||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
#endif
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
|
@ -69,7 +69,7 @@ extern "C" {
|
||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
# else
|
# else
|
||||||
# if defined(__GNUC__) && __GNUC__ >= 4 && !defined(__CELLOS_LV2__)
|
# if defined(__GNUC__) && __GNUC__ >= 4
|
||||||
# define RETRO_API RETRO_CALLCONV __attribute__((__visibility__("default")))
|
# define RETRO_API RETRO_CALLCONV __attribute__((__visibility__("default")))
|
||||||
# else
|
# else
|
||||||
# define RETRO_API RETRO_CALLCONV
|
# define RETRO_API RETRO_CALLCONV
|
||||||
|
@ -2759,4 +2759,4 @@ RETRO_API size_t retro_get_memory_size(unsigned id);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue