mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2025-12-27 00:00:11 +01:00
Merge branch 'endian' into 'master'
meson: add BIGENDIAN See merge request cairo/cairo!214
This commit is contained in:
commit
773236010f
1 changed files with 16 additions and 0 deletions
16
meson.build
16
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]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue