Skip to content
Snippets Groups Projects
Commit e6bf3581 authored by Vladimir Stoiakin's avatar Vladimir Stoiakin
Browse files

build: detect endianess of a system dynamically

parent 3196e47d
No related branches found
No related tags found
No related merge requests found
Pipeline #217368 passed
......@@ -313,9 +313,6 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
* COMPILER SETTINGS
*====================*/
/*For big endian systems set to 1*/
#define LV_BIG_ENDIAN_SYSTEM 0
/*Define a custom attribute to `lv_tick_inc` function*/
#define LV_ATTRIBUTE_TICK_INC
......
......@@ -5,6 +5,7 @@ project('buffybox', 'c',
)
add_project_arguments('-DPROJECT_VERSION="@0@"'.format(meson.project_version()), language: 'c')
add_project_arguments('-DLV_BIG_ENDIAN_SYSTEM=' + (host_machine.endian() == 'big'? '1' : '0'), language: 'c')
depinih = dependency('inih')
deplibinput = dependency('libinput')
......
......@@ -207,9 +207,6 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
* COMPILER SETTINGS
*====================*/
/*For big endian systems set to 1*/
#define LV_BIG_ENDIAN_SYSTEM 0
/*Define a custom attribute to `lv_tick_inc` function*/
#define LV_ATTRIBUTE_TICK_INC
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment