[cairo-commit] 2 commits - meson.build
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sat Aug 14 06:25:17 UTC 2021
meson.build | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
New commits:
commit 773236010f45530855c21ae16a5f69e6d7a2d43c
Merge: 6ea9ec75e e2c002c57
Author: Adrian Johnson <ajohnson at redneon.com>
Date: Sat Aug 14 06:25:15 2021 +0000
Merge branch 'endian' into 'master'
meson: add BIGENDIAN
See merge request cairo/cairo!214
commit e2c002c570c42cb883e41f0dfabfdb0651edbe9b
Author: Adrian Johnson <ajohnson at redneon.com>
Date: Sun Jul 25 11:59:40 2021 +0930
meson: add endian check
Fixes #464
diff --git a/meson.build b/meson.build
index 5ddf7868b..67a751b25 100644
--- a/meson.build
+++ b/meson.build
@@ -140,6 +140,22 @@ extra_link_args = []
conf = configuration_data()
+if host_machine.endian() == 'big'
+ conf.set('WORDS_BIGENDIAN', 1)
+endif
+
+float_order = cc.get_define('__FLOAT_WORD_ORDER__')
+if float_order != ''
+ if float_order == cc.get_define('__ORDER_BIG_ENDIAN__')
+ conf.set('FLOAT_WORDS_BIGENDIAN', 1)
+ endif
+else
+ # Assume same as platform endian
+ if host_machine.endian() == 'big'
+ conf.set('FLOAT_WORDS_BIGENDIAN', 1)
+ endif
+endif
+
lzo_dep = dependency('lzo2', required: false)
if lzo_dep.found()
deps += [lzo_dep]
More information about the cairo-commit
mailing list