build: do not hardcode endianess of a system

This commit is contained in:
Vladimir Stoiakin 2025-03-17 11:18:59 +03:00
parent 3196e47d51
commit 2627baeea3
4 changed files with 6 additions and 7 deletions

View file

@ -4,7 +4,11 @@ project('buffybox', 'c',
meson_version: '>= 0.59.0'
)
add_project_arguments('-DPROJECT_VERSION="@0@"'.format(meson.project_version()), language: 'c')
add_project_arguments(
'-DPROJECT_VERSION="@0@"'.format(meson.project_version()),
'-DLV_BIG_ENDIAN_SYSTEM=' + (host_machine.endian() == 'big'? '1' : '0'),
language: 'c'
)
depinih = dependency('inih')
deplibinput = dependency('libinput')