Updated CI and builddef for renamed platform ; including new arm64 simulator
This commit is contained in:
parent
afb7c504ea
commit
8c5bca05b7
|
@ -26,7 +26,8 @@ BUILD_DEF = """
|
|||
| macos | native_static | | | BP | BP | | macos-x86_64 |
|
||||
| macos | native_mixed | BP | BP | | | | macos-x86_64 |
|
||||
| macos | iOS_arm64 | dB | dB | | | | |
|
||||
| macos | iOS_x86_64 | dB | dB | | | | |
|
||||
| macos | iOSSimulator_x86_64| dB | dB | | | | |
|
||||
| macos | iOSSimulator_arm64 | dB | dB | | | | |
|
||||
| macos | macOS_arm64_static | | | BP | BP | | macos-arm64 |
|
||||
| macos | macOS_arm64_mixed | BP | BP | | | | macos-arm64 |
|
||||
| macos | macOS_x86_64 | B | B | | | | |
|
||||
|
|
|
@ -147,7 +147,8 @@ jobs:
|
|||
- native_static
|
||||
- native_mixed
|
||||
- iOS_arm64
|
||||
- iOS_x86_64
|
||||
- iOSSimulator_x86_64
|
||||
- iOSSimulator_arm64
|
||||
- macOS_arm64_static
|
||||
- macOS_arm64_mixed
|
||||
- macOS_x86_64
|
||||
|
|
|
@ -70,6 +70,7 @@ class AppleXCFramework(Dependency):
|
|||
static_ars = [str(f) for f in Path(lib_dir).glob("*.a")]
|
||||
|
||||
# create merged.a from all *.a in install_dir/lib
|
||||
command = ["libtool", "-static", "-o", "merged.a", *static_ars]
|
||||
run_command(command, lib_dir, context)
|
||||
|
||||
# will be included in xcframework
|
||||
|
@ -89,13 +90,7 @@ class AppleXCFramework(Dependency):
|
|||
os.makedirs(fat_dir, exist_ok=True)
|
||||
|
||||
output_merged = pj(fat_dir, "merged.a")
|
||||
command = [
|
||||
"lipo",
|
||||
"-create",
|
||||
"-output",
|
||||
output_merged,
|
||||
*libs
|
||||
]
|
||||
command = ["lipo", "-create", "-output", output_merged, *libs]
|
||||
run_command(command, self.buildEnv.build_dir, context)
|
||||
|
||||
return [output_merged]
|
||||
|
@ -106,8 +101,10 @@ class AppleXCFramework(Dependency):
|
|||
command = ["xcodebuild", "-create-xcframework"]
|
||||
for lib in xcf_libs:
|
||||
command += [
|
||||
"-library", lib,
|
||||
"-headers", pj(ref_plat.buildEnv.install_dir, "include")
|
||||
"-library",
|
||||
lib,
|
||||
"-headers",
|
||||
pj(ref_plat.buildEnv.install_dir, "include"),
|
||||
]
|
||||
command += ["-output", self.final_path]
|
||||
run_command(command, self.buildEnv.build_dir, context)
|
||||
|
|
Loading…
Reference in New Issue