diff options
author | Andoni Morales Alastruey <ylatuya@gmail.com> | 2020-11-24 12:17:34 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2021-01-13 01:04:54 +0000 |
commit | 5757488c1e5712fe492051da55e4585c1d40d7a1 (patch) | |
tree | 9d468d859a87f0a26647c5f1031fb6bd276c26f9 | |
parent | f8cbc80f4240f8f4ae619a06419272ed3b475c3e (diff) |
macos: add new configuration files for macos
When building from Intel we want to cross-compile for ARM64
When building from Apple silicon we want to cross-compile for X86_64
For releases we want universal builds
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/661>
-rw-r--r-- | config/cross-macos-arm64.cbc | 4 | ||||
-rw-r--r-- | config/cross-macos-universal.cbc | 10 | ||||
-rw-r--r-- | config/cross-macos-x86_64.cbc | 4 |
3 files changed, 18 insertions, 0 deletions
diff --git a/config/cross-macos-arm64.cbc b/config/cross-macos-arm64.cbc new file mode 100644 index 00000000..4fbb3bb2 --- /dev/null +++ b/config/cross-macos-arm64.cbc @@ -0,0 +1,4 @@ +from cerbero.config import Platform, Architecture, Distro, DistroVersion + +target_platform = Platform.DARWIN +target_arch = Architecture.ARM64
\ No newline at end of file diff --git a/config/cross-macos-universal.cbc b/config/cross-macos-universal.cbc new file mode 100644 index 00000000..23b205e7 --- /dev/null +++ b/config/cross-macos-universal.cbc @@ -0,0 +1,10 @@ +from cerbero.config import Platform, Architecture, Distro, DistroVersion + +target_platform = Platform.DARWIN +target_arch = Architecture.UNIVERSAL + +universal_archs = { + # Path is relative to this file + Architecture.ARM64: "cross-macos-arm64.cbc", + Architecture.X86_64: "cross-macos-x86_64.cbc", +}
\ No newline at end of file diff --git a/config/cross-macos-x86_64.cbc b/config/cross-macos-x86_64.cbc new file mode 100644 index 00000000..98cbf908 --- /dev/null +++ b/config/cross-macos-x86_64.cbc @@ -0,0 +1,4 @@ +from cerbero.config import Platform, Architecture, Distro, DistroVersion + +target_platform = Platform.DARWIN +target_arch = Architecture.X86_64
\ No newline at end of file |