Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
oberon-risc-emu
Commits
0d33a1fa
Commit
0d33a1fa
authored
Mar 24, 2021
by
Libretro-Admin
Browse files
Add osx/ios/tvos
parent
75347e2a
Pipeline
#24673
passed with stage
in 1 minute and 49 seconds
Changes
2
Pipelines
27
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
0d33a1fa
...
...
@@ -29,12 +29,35 @@ include:
# 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'
file
:
'
/android-jni.yml'
# iOS
-
project
:
'
libretro-infrastructure/ci-templates'
file
:
'
/ios-arm64.yml'
# iOS (armv7)
-
project
:
'
libretro-infrastructure/ci-templates'
file
:
'
/ios9.yml'
################################## CONSOLES ################################
# tvOS (AppleTV)
-
project
:
'
libretro-infrastructure/ci-templates'
file
:
'
/tvos-arm64.yml'
#################################### MISC ##################################
# Stages for building
stages
:
-
build-prepare
...
...
@@ -69,6 +92,18 @@ 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
...
...
@@ -94,3 +129,23 @@ android-x86:
extends
:
-
.libretro-android-jni-x86
-
.core-defs
# iOS
libretro-build-ios-arm64
:
extends
:
-
.libretro-ios-arm64-make-default
-
.core-defs
# iOS (armv7) [iOS 9 and up]
libretro-build-ios9
:
extends
:
-
.libretro-ios9-make-default
-
.core-defs
# tvOS
libretro-build-tvos-arm64
:
extends
:
-
.libretro-tvos-arm64-make-default
-
.core-defs
################################### CONSOLES #################################
Makefile.libretro
View file @
0d33a1fa
...
...
@@ -96,31 +96,58 @@ else ifeq ($(platform), osx)
endif
OSXVER
=
`
sw_vers
-productVersion
|
cut
-d
.
-f
2
`
OSX_LT_MAVERICKS
=
`
((
$(OSXVER)
<
=
9
))
&&
echo
"YES"
`
fpic
+=
-mmacosx-version-min
=
10.1
ifeq
($(OSX_LT_MAVERICKS),YES)
fpic
+=
-mmacosx-version-min
=
10.1
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)
endif
CFLAGS
+=
$(ARCHFLAGS)
CXXFLAGS
+=
$(ARCHFLAGS)
LDFLAGS
+=
$(ARCHFLAGS)
# iOS
else
ifneq
(,$(findstring ios,$(platform)))
TARGET
:=
$(TARGET_NAME)
_libretro_ios.dylib
SHARED
:=
-dynamiclib
fpic
:=
-fPIC
MINVERSION
:=
ifeq
($(IOSSDK),)
IOSSDK
:=
$(
shell
xcodebuild
-version
-sdk
iphoneos Path
)
endif
ifeq
($(platform),ios-arm64)
CC
=
c
lang
-arch
arm64
-isysroot
$(IOSSDK)
CC
=
c
c
-arch
arm64
-isysroot
$(IOSSDK)
else
CC
=
c
lang
-arch
armv7
-isysroot
$(IOSSDK)
CC
=
c
c
-arch
armv7
-isysroot
$(IOSSDK)
endif
LD
=
$(CC)
CFLAGS
+=
-DIOS
CFLAGS
+=
-DARM
ifeq
($(platform),$(filter $(platform),ios9 ios-arm64))
CC
+=
-miphoneos-version-min
=
8.0
CFLAGS
+=
-miphoneos-version-min
=
8.0
MINVERSION
=
-miphoneos-version-min
=
8.0
else
CC
+=
-miphoneos-version-min
=
5.0
CFLAGS
+=
-miphoneos-version-min
=
5.0
MINVERSION
=
-miphoneos-version-min
=
5.0
endif
CFLAGS
+=
$(MINVERSION)
else
ifeq
($(platform), tvos-arm64)
TARGET
:=
$(TARGET_NAME)
_libretro_tvos.dylib
SHARED
:=
-dynamiclib
fpic
:=
-fPIC
MINVERSION
:=
ifeq
($(IOSSDK),)
IOSSDK
:=
$(
shell
xcodebuild
-version
-sdk
appletvos Path
)
endif
CC
=
cc
-arch
arm64
-isysroot
$(IOSSDK)
LD
=
$(CC)
CFLAGS
+=
-DIOS
CFLAGS
+=
-DARM
# Theos
else
ifeq
($(platform), theos_ios)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment