summaryrefslogtreecommitdiff
path: root/pixman
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2019-03-25 16:10:11 -0700
committerDylan Baker <dylan@pnwbakers.com>2019-03-27 10:54:50 -0700
commit2065a07e989b7f4041eb21a109c3cfedce3bfc39 (patch)
tree0219aa2ca9cbfc745d20d753bb731fd7296c5e5c /pixman
parent6e206cf7fcb942db2b41ec8d292cc8d677b85d5a (diff)
downloadpixman-2065a07e989b7f4041eb21a109c3cfedce3bfc39.tar.gz
meson: simplify and fix mmx library compilation
This simplifies the logic and fixes the loongson-mmi implementation to build correctly.
Diffstat (limited to 'pixman')
-rw-r--r--pixman/meson.build18
1 files changed, 9 insertions, 9 deletions
diff --git a/pixman/meson.build b/pixman/meson.build
index 372ebde..6ce87e7 100644
--- a/pixman/meson.build
+++ b/pixman/meson.build
@@ -32,7 +32,16 @@ version_h = configure_file(
pixman_simd_libs = []
simds = [
+ # the mmx library can be compiled with mmx on x86/x86_64, iwmmxt on
+ # some arm cores, or loongson mmi on loongson mips systems. The
+ # libraries will all have the same name, "pixman-mmx", but there is
+ # no chance of more than one version being built in the same build
+ # because no system could have mmx, iwmmxt, and mmi, and it
+ # simplifies the build logic to give them the same name.
['mmx', have_mmx, mmx_flags, []],
+ ['mmx', have_loongson_mmi, loongson_mmi_flags, []],
+ ['mmx', have_iwmmxt, iwmmxt_flags, []],
+
['sse2', have_sse2, sse2_flags, []],
['ssse3', have_ssse3, ssse3_flags, []],
['vmx', have_vmx, vmx_flags, []],
@@ -42,7 +51,6 @@ simds = [
['pixman-arm-neon-asm.S', 'pixman-arm-neon-asm-bilinear.S']],
['mips-dspr2', have_mips_dspr2, mips_dspr2_flags,
['pixman-mips-dspr2-asm.S', 'pixman-mips-memcpy-asm.S']],
- ['loongson-mmi', have_loongson_mmi, loongson_mmi_flags, []]
]
foreach simd : simds
@@ -56,14 +64,6 @@ foreach simd : simds
endif
endforeach
-if have_iwmmxt
- pixman_simd_libs += static_library(
- 'pixman-iwmmt',
- 'pixman-mmx.c',
- c_args : iwmmxt_flags,
- )
-endif
-
pixman_files = files(
'pixman.c',
'pixman-access.c',