summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorAndoni Morales Alastruey <ylatuya@gmail.com>2020-11-24 12:17:34 +0000
committerMatthew Waters <matthew@centricular.com>2020-12-07 13:35:32 +1100
commit103d3366111c6dbb7431e026baa9f3cdb2c7a1e0 (patch)
tree02fa8343fa12a73d2e6ff69c4a38f9e865cb52ed /config
parent265796dbe6ae0953c775081044cfbf633c21b011 (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>
Diffstat (limited to 'config')
-rw-r--r--config/cross-macos-arm64.cbc4
-rw-r--r--config/cross-macos-universal.cbc10
-rw-r--r--config/cross-macos-x86_64.cbc4
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