2020-12-25 16:33:57 +00:00
|
|
|
# DESCRIPTION: GitLab CI/CD for libRetro (NOT FOR GitLab-proper)
|
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
################################# BOILERPLATE ################################
|
|
|
|
##############################################################################
|
|
|
|
|
|
|
|
# Core definitions
|
2020-10-06 23:37:43 +00:00
|
|
|
.core-defs:
|
|
|
|
variables:
|
|
|
|
JNI_PATH: .
|
|
|
|
CORENAME: mednafen_psx
|
|
|
|
|
2020-12-17 16:57:59 +00:00
|
|
|
.core-defs-lightrec:
|
|
|
|
extends: .core-defs
|
|
|
|
variables:
|
|
|
|
HAVE_LIGHTREC: 1
|
|
|
|
|
2021-02-28 10:04:27 +00:00
|
|
|
.core-defs-lightrec-static-libcplusplus:
|
|
|
|
extends: .core-defs-lightrec
|
|
|
|
variables:
|
|
|
|
LINK_STATIC_LIBCPLUSPLUS: 1
|
|
|
|
|
2020-10-06 23:44:48 +00:00
|
|
|
.core-defs-hw:
|
2020-10-06 23:37:43 +00:00
|
|
|
extends: .core-defs
|
|
|
|
variables:
|
|
|
|
CORENAME: mednafen_psx_hw
|
|
|
|
HAVE_HW: 1
|
|
|
|
|
2021-02-28 10:04:27 +00:00
|
|
|
.core-defs-hw-static-libcplusplus:
|
|
|
|
extends: .core-defs-hw
|
|
|
|
variables:
|
|
|
|
LINK_STATIC_LIBCPLUSPLUS: 1
|
|
|
|
|
2020-10-06 23:44:48 +00:00
|
|
|
.core-defs-hw-lightrec:
|
2020-12-17 16:57:59 +00:00
|
|
|
extends: .core-defs-lightrec
|
|
|
|
extends: .core-defs-hw
|
|
|
|
|
2021-02-28 10:04:27 +00:00
|
|
|
.core-defs-hw-lightrec-static-libcplusplus:
|
|
|
|
extends: .core-defs-hw-lightrec
|
|
|
|
variables:
|
|
|
|
LINK_STATIC_LIBCPLUSPLUS: 1
|
|
|
|
|
2020-12-25 16:33:57 +00:00
|
|
|
# Inclusion templates, required for the build to work
|
2020-10-06 23:37:43 +00:00
|
|
|
include:
|
2020-12-25 16:33:57 +00:00
|
|
|
################################## DESKTOPS ################################
|
|
|
|
# Windows 64-bit
|
|
|
|
- project: 'libretro-infrastructure/ci-templates'
|
|
|
|
file: '/windows-x64-mingw.yml'
|
2021-01-02 10:32:40 +00:00
|
|
|
|
|
|
|
# Windows 32-bit
|
|
|
|
- project: 'libretro-infrastructure/ci-templates'
|
|
|
|
file: '/windows-i686-mingw.yml'
|
2020-12-25 16:33:57 +00:00
|
|
|
|
|
|
|
# Linux 64-bit
|
2020-10-06 23:37:43 +00:00
|
|
|
- project: 'libretro-infrastructure/ci-templates'
|
|
|
|
file: '/linux-x64.yml'
|
2020-12-25 16:33:57 +00:00
|
|
|
|
2021-01-07 19:32:55 +00:00
|
|
|
# Linux 32-bit
|
|
|
|
- project: 'libretro-infrastructure/ci-templates'
|
|
|
|
file: '/linux-i686.yml'
|
|
|
|
|
2021-01-27 03:38:00 +00:00
|
|
|
# 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'
|
|
|
|
|
2020-12-25 16:33:57 +00:00
|
|
|
################################## CELLULAR ################################
|
|
|
|
# Android
|
2020-10-06 23:37:43 +00:00
|
|
|
- project: 'libretro-infrastructure/ci-templates'
|
|
|
|
file: '/android-jni.yml'
|
|
|
|
|
2021-03-11 06:33:18 +00:00
|
|
|
# iOS
|
|
|
|
- project: 'libretro-infrastructure/ci-templates'
|
|
|
|
file: '/ios-arm64.yml'
|
|
|
|
|
|
|
|
# iOS (armv7)
|
2021-01-07 19:32:55 +00:00
|
|
|
- project: 'libretro-infrastructure/ci-templates'
|
|
|
|
file: '/ios9.yml'
|
2021-03-11 06:33:18 +00:00
|
|
|
|
|
|
|
################################## CONSOLES ################################
|
|
|
|
|
|
|
|
# tvOS (AppleTV)
|
|
|
|
- project: 'libretro-infrastructure/ci-templates'
|
|
|
|
file: '/tvos-arm64.yml'
|
|
|
|
|
|
|
|
#################################### MISC ##################################
|
2021-01-09 16:14:59 +00:00
|
|
|
|
2020-12-25 16:33:57 +00:00
|
|
|
# Stages for building
|
2020-10-06 23:37:43 +00:00
|
|
|
stages:
|
|
|
|
- build-prepare
|
|
|
|
- build-shared
|
|
|
|
- build-static
|
|
|
|
|
2020-12-25 16:33:57 +00:00
|
|
|
##############################################################################
|
|
|
|
#################################### STAGES ##################################
|
|
|
|
##############################################################################
|
|
|
|
#
|
|
|
|
################################### DESKTOPS #################################
|
|
|
|
# Windows 64-bit
|
2020-10-06 23:37:43 +00:00
|
|
|
libretro-build-windows-x64:
|
|
|
|
extends:
|
|
|
|
- .libretro-windows-x64-mingw-make-default
|
2020-12-17 16:57:59 +00:00
|
|
|
- .core-defs-lightrec
|
|
|
|
|
2020-12-25 16:33:57 +00:00
|
|
|
# Windows 64-bit (HW)
|
|
|
|
libretro-build-windows-x64-hw:
|
2020-10-06 23:37:43 +00:00
|
|
|
extends:
|
2020-12-25 16:33:57 +00:00
|
|
|
- .libretro-windows-x64-mingw-make-default
|
|
|
|
- .core-defs-hw-lightrec
|
2021-01-02 10:31:04 +00:00
|
|
|
|
|
|
|
# Windows 32-bit
|
|
|
|
libretro-build-windows-i686:
|
|
|
|
extends:
|
|
|
|
- .libretro-windows-i686-mingw-make-default
|
|
|
|
- .core-defs-lightrec
|
|
|
|
|
|
|
|
# Windows 32-bit (HW)
|
|
|
|
libretro-build-windows-i686-hw:
|
|
|
|
extends:
|
|
|
|
- .libretro-windows-i686-mingw-make-default
|
|
|
|
- .core-defs-hw-lightrec
|
2020-12-17 16:57:59 +00:00
|
|
|
|
2020-12-25 16:33:57 +00:00
|
|
|
# Linux 64-bit
|
|
|
|
libretro-build-linux-x64:
|
2020-10-06 23:37:43 +00:00
|
|
|
extends:
|
2020-12-25 16:33:57 +00:00
|
|
|
- .libretro-linux-x64-make-default
|
2021-02-28 10:04:27 +00:00
|
|
|
- .core-defs-lightrec-static-libcplusplus
|
2020-12-17 16:57:59 +00:00
|
|
|
|
2021-01-07 19:32:55 +00:00
|
|
|
# Linux 32-bit
|
|
|
|
libretro-build-linux-i686:
|
|
|
|
extends:
|
|
|
|
- .libretro-linux-i686-make-default
|
2021-02-28 10:04:27 +00:00
|
|
|
- .core-defs-lightrec-static-libcplusplus
|
2021-01-07 19:32:55 +00:00
|
|
|
|
2020-12-25 16:33:57 +00:00
|
|
|
# Linux 64-bit (HW)
|
2020-12-17 16:57:59 +00:00
|
|
|
libretro-build-linux-x64-hw:
|
|
|
|
extends:
|
|
|
|
- .libretro-linux-x64-make-default
|
2021-02-28 10:04:27 +00:00
|
|
|
- .core-defs-hw-lightrec-static-libcplusplus
|
2020-12-17 16:57:59 +00:00
|
|
|
|
2021-01-07 19:32:55 +00:00
|
|
|
# Linux 32-bit (HW)
|
|
|
|
libretro-build-linux-i686-hw:
|
|
|
|
extends:
|
|
|
|
- .libretro-linux-i686-make-default
|
2021-02-28 10:04:27 +00:00
|
|
|
- .core-defs-hw-lightrec-static-libcplusplus
|
2021-01-07 19:32:55 +00:00
|
|
|
|
2020-12-25 16:33:57 +00:00
|
|
|
# MacOS 64-bit
|
2021-01-27 03:38:00 +00:00
|
|
|
libretro-build-osx-x64:
|
|
|
|
extends:
|
|
|
|
- .libretro-osx-x64-make-default
|
|
|
|
- .core-defs
|
|
|
|
|
2023-02-24 00:45:59 +00:00
|
|
|
libretro-build-osx-x64-hw:
|
|
|
|
extends:
|
|
|
|
- .libretro-osx-x64-make-default
|
|
|
|
- .core-defs-hw
|
|
|
|
|
2021-01-27 03:38:00 +00:00
|
|
|
# MacOS ARM 64-bit
|
|
|
|
libretro-build-osx-arm64:
|
|
|
|
extends:
|
|
|
|
- .libretro-osx-arm64-make-default
|
|
|
|
- .core-defs
|
2020-12-25 16:33:57 +00:00
|
|
|
|
2023-02-24 00:45:59 +00:00
|
|
|
libretro-build-osx-arm64-hw:
|
|
|
|
extends:
|
|
|
|
- .libretro-osx-arm64-make-default
|
|
|
|
- .core-defs-hw
|
|
|
|
|
2020-12-25 16:33:57 +00:00
|
|
|
################################### CELLULAR #################################
|
|
|
|
# Android ARMv7a
|
|
|
|
android-armeabi-v7a:
|
|
|
|
extends:
|
|
|
|
- .libretro-android-jni-armeabi-v7a
|
|
|
|
- .core-defs
|
2020-12-17 16:57:59 +00:00
|
|
|
|
2020-12-25 16:33:57 +00:00
|
|
|
# Android ARMv7a (HW)
|
2020-12-17 16:57:59 +00:00
|
|
|
android-armeabi-v7a-hw:
|
|
|
|
extends:
|
|
|
|
- .libretro-android-jni-armeabi-v7a
|
2020-12-18 17:45:59 +00:00
|
|
|
- .core-defs-hw
|
2020-12-17 16:57:59 +00:00
|
|
|
|
2020-12-25 16:33:57 +00:00
|
|
|
# Android ARMv8a
|
|
|
|
android-arm64-v8a:
|
|
|
|
extends:
|
|
|
|
- .libretro-android-jni-arm64-v8a
|
|
|
|
- .core-defs
|
|
|
|
|
|
|
|
# Android ARMv8a (HW)
|
2020-12-17 16:57:59 +00:00
|
|
|
android-arm64-v8a-hw:
|
|
|
|
extends:
|
|
|
|
- .libretro-android-jni-arm64-v8a
|
2020-12-18 17:45:59 +00:00
|
|
|
- .core-defs-hw
|
2020-12-17 16:57:59 +00:00
|
|
|
|
2020-12-25 16:33:57 +00:00
|
|
|
# Android 64-bit x86
|
|
|
|
android-x86_64:
|
|
|
|
extends:
|
|
|
|
- .libretro-android-jni-x86_64
|
|
|
|
- .core-defs
|
|
|
|
|
|
|
|
# Android 64-bit x86 (HW)
|
2020-12-17 16:57:59 +00:00
|
|
|
android-x86_64-hw:
|
|
|
|
extends:
|
|
|
|
- .libretro-android-jni-x86_64
|
2020-12-18 17:45:59 +00:00
|
|
|
- .core-defs-hw
|
2020-12-17 16:57:59 +00:00
|
|
|
|
2020-12-25 16:33:57 +00:00
|
|
|
# Android 32-bit x86
|
|
|
|
android-x86:
|
|
|
|
extends:
|
|
|
|
- .libretro-android-jni-x86
|
|
|
|
- .core-defs
|
|
|
|
|
|
|
|
# Android 32-bit x86 (HW)
|
2020-12-17 16:57:59 +00:00
|
|
|
android-x86-hw:
|
|
|
|
extends:
|
|
|
|
- .libretro-android-jni-x86
|
2020-12-18 17:45:59 +00:00
|
|
|
- .core-defs-hw
|
2021-01-07 19:32:55 +00:00
|
|
|
|
2021-03-11 06:33:18 +00:00
|
|
|
# iOS
|
|
|
|
libretro-build-ios-arm64:
|
|
|
|
extends:
|
|
|
|
- .libretro-ios-arm64-make-default
|
|
|
|
- .core-defs
|
|
|
|
|
2023-05-06 04:07:14 +00:00
|
|
|
libretro-build-ios-arm64-hw:
|
|
|
|
extends:
|
|
|
|
- .libretro-ios-arm64-make-default
|
|
|
|
- .core-defs-hw
|
|
|
|
|
2021-03-11 06:33:18 +00:00
|
|
|
# iOS (armv7) [iOS 9 and up]
|
|
|
|
libretro-build-ios9:
|
2021-01-07 19:32:55 +00:00
|
|
|
extends:
|
|
|
|
- .libretro-ios9-make-default
|
|
|
|
- .core-defs
|
2021-03-11 06:33:18 +00:00
|
|
|
|
|
|
|
# tvOS
|
|
|
|
libretro-build-tvos-arm64:
|
|
|
|
extends:
|
|
|
|
- .libretro-tvos-arm64-make-default
|
|
|
|
- .core-defs
|
2023-05-08 15:22:04 +00:00
|
|
|
|
|
|
|
libretro-build-tvos-arm64-hw:
|
|
|
|
extends:
|
|
|
|
- .libretro-tvos-arm64-make-default
|
|
|
|
- .core-defs-hw
|