Add a patch for iOS cross-platform static
This commit is contained in:
parent
3e835d0c74
commit
c40cce4f82
|
@ -112,6 +112,9 @@ PACKAGE_NAME_MAPPERS = {
|
|||
'Darwin_native_dyn': {
|
||||
'COMMON': ['autoconf', 'automake', 'libtool', 'cmake', 'pkg-config'],
|
||||
},
|
||||
'Darwin_iOS_static': {
|
||||
'COMMON': ['autoconf', 'automake', 'libtool', 'cmake', 'pkg-config'],
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
|
@ -197,6 +200,11 @@ class AndroidTargetInfo(TargetInfo):
|
|||
},
|
||||
}
|
||||
|
||||
class iOSTargetInfo(TargetInfo):
|
||||
def __init__(self, arch):
|
||||
super().__init__('iOS', True, ['iOS_sdk'])
|
||||
self.arch = arch
|
||||
|
||||
|
||||
class BuildEnv:
|
||||
target_platforms = {
|
||||
|
@ -212,6 +220,7 @@ class BuildEnv:
|
|||
'android_mips64': AndroidTargetInfo('mips64'),
|
||||
'android_x86': AndroidTargetInfo('x86'),
|
||||
'android_x86_64': AndroidTargetInfo('x86_64'),
|
||||
'iOS_arm64': iOSTargetInfo('arm64'),
|
||||
}
|
||||
|
||||
def __init__(self, options, targetsDict):
|
||||
|
@ -311,6 +320,9 @@ class BuildEnv:
|
|||
self.cmake_crossfile = self._gen_crossfile('cmake_cross_file.txt')
|
||||
self.meson_crossfile = self._gen_crossfile('meson_cross_file.txt')
|
||||
|
||||
def setup_iOS(self):
|
||||
pass
|
||||
|
||||
def __getattr__(self, name):
|
||||
return getattr(self.options, name)
|
||||
|
||||
|
@ -828,6 +840,10 @@ class armhf_toolchain(Toolchain):
|
|||
env['CXX'] = self.binaries['CXX']
|
||||
|
||||
|
||||
class iOS_sdk(Toolchain):
|
||||
pass
|
||||
|
||||
|
||||
class Builder:
|
||||
def __init__(self, options):
|
||||
self.options = options
|
||||
|
|
Loading…
Reference in New Issue