Commit 423eb2c3 for openh264
commit 423eb2c3e47009f4e631b5e413123a003fdff1ed
Author: Sergey Fedorov <vital.had@gmail.com>
Date: Fri Dec 20 16:47:57 2024 +0800
meson.build: add powerpc arch (#3806)
Co-authored-by: Ryan Carsten Schmidt <ryandesign@macports.org>
diff --git a/codec/common/meson.build b/codec/common/meson.build
index beab66a4..963da74b 100644
--- a/codec/common/meson.build
+++ b/codec/common/meson.build
@@ -71,6 +71,10 @@ elif cpu_family in ['loongarch32', 'loongarch64']
cpp_sources += asm_sources
elif cpu_family == 'riscv64'
asm_sources = []
+elif cpu_family == 'ppc'
+ asm_sources = []
+elif cpu_family == 'ppc64'
+ asm_sources = []
else
error('Unsupported cpu_family @0@'.format(cpu_family))
endif
diff --git a/codec/decoder/meson.build b/codec/decoder/meson.build
index 7c5b4c58..23352ff8 100644
--- a/codec/decoder/meson.build
+++ b/codec/decoder/meson.build
@@ -56,6 +56,10 @@ elif cpu_family in ['loongarch32', 'loongarch64']
cpp_sources += asm_sources
elif cpu_family == 'riscv64'
asm_sources = []
+elif cpu_family == 'ppc'
+ asm_sources = []
+elif cpu_family == 'ppc64'
+ asm_sources = []
else
error('Unsupported cpu family @0@'.format(cpu_family))
endif
diff --git a/codec/encoder/meson.build b/codec/encoder/meson.build
index 194253a7..bebb74c2 100644
--- a/codec/encoder/meson.build
+++ b/codec/encoder/meson.build
@@ -85,6 +85,10 @@ elif cpu_family in ['loongarch32', 'loongarch64']
cpp_sources += asm_sources
elif cpu_family == 'riscv64'
asm_sources = []
+elif cpu_family == 'ppc'
+ asm_sources = []
+elif cpu_family == 'ppc64'
+ asm_sources = []
else
error('Unsupported cpu family @0@'.format(cpu_family))
endif
diff --git a/codec/processing/meson.build b/codec/processing/meson.build
index d126ffa6..1c56eb57 100644
--- a/codec/processing/meson.build
+++ b/codec/processing/meson.build
@@ -58,6 +58,10 @@ elif cpu_family in ['loongarch32', 'loongarch64']
cpp_sources += asm_sources
elif cpu_family == 'riscv64'
asm_sources = []
+elif cpu_family == 'ppc'
+ asm_sources = []
+elif cpu_family == 'ppc64'
+ asm_sources = []
else
error('Unsupported cpu family @0@'.format(cpu_family))
endif
diff --git a/meson.build b/meson.build
index 2ad71813..083608d8 100644
--- a/meson.build
+++ b/meson.build
@@ -97,7 +97,13 @@ if ['linux', 'android', 'ios', 'darwin'].contains(system)
add_project_arguments('-DHAVE_LSX', '-DHAVE_LASX', language: 'cpp')
casm_inc = include_directories(join_paths('codec', 'common', 'loongarch'))
elif cpu_family == 'riscv64'
- # We dont't have riscv64-specific optimization for now.
+ # We don't have riscv64-specific optimization for now.
+ asm_format = asm_format64
+ elif cpu_family == 'ppc'
+ # We don't have powerpc-specific optimization for now.
+ asm_format = asm_format32
+ elif cpu_family == 'ppc64'
+ # We don't have powerpc64-specific optimization for now.
asm_format = asm_format64
else
error('FIXME: unhandled CPU family @0@ for @1@'.format(cpu_family, system))