diff options
author | Adrian Johnson <ajohnson@redneon.com> | 2021-08-14 06:25:15 +0000 |
---|---|---|
committer | Adrian Johnson <ajohnson@redneon.com> | 2021-08-14 06:25:15 +0000 |
commit | 773236010f45530855c21ae16a5f69e6d7a2d43c (patch) | |
tree | c65a0480dbc5c66228af97455be259ad6ca76530 /meson.build | |
parent | 6ea9ec75eda7461a51429ae8e40e365bdd2dbd6f (diff) | |
parent | e2c002c570c42cb883e41f0dfabfdb0651edbe9b (diff) | |
download | cairo-773236010f45530855c21ae16a5f69e6d7a2d43c.tar.gz |
Merge branch 'endian' into 'master'
meson: add BIGENDIAN
See merge request cairo/cairo!214
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/meson.build b/meson.build index f3ff3b4b8..ca9d72825 100644 --- a/meson.build +++ b/meson.build @@ -139,6 +139,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] |