Skip to content

Commit

Permalink
meson.build: add powerpc arch
Browse files Browse the repository at this point in the history
Co-authored-by: Ryan Carsten Schmidt <ryandesign@macports.org>
  • Loading branch information
barracuda156 and ryandesign committed Nov 22, 2024
1 parent 6746bc4 commit 7481e06
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 1 deletion.
4 changes: 4 additions & 0 deletions codec/common/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions codec/decoder/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions codec/encoder/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions codec/processing/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 7 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,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))
Expand Down

0 comments on commit 7481e06

Please sign in to comment.