mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-28 07:03:00 +08:00
ci: protect test.c with #if LV_BUILD_TEST
This commit is contained in:
parent
03b04a45b9
commit
8699c7dcdc
@ -2,7 +2,7 @@ LVGL_PATH := $(CURDIR)/../..
|
|||||||
include ../../lvgl.mk
|
include ../../lvgl.mk
|
||||||
|
|
||||||
CSRCS += test.c
|
CSRCS += test.c
|
||||||
CFLAGS += -DLV_CONF_SKIP=1 -I$(LVGL_PATH)/..
|
CFLAGS += -DLV_CONF_SKIP=1 -DLV_BUILD_TEST=1 -I$(LVGL_PATH)/..
|
||||||
COBJS := $(patsubst %.c, %.o, $(CSRCS))
|
COBJS := $(patsubst %.c, %.o, $(CSRCS))
|
||||||
|
|
||||||
test_file: $(COBJS)
|
test_file: $(COBJS)
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#if LV_BUILD_TEST
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "lvgl/lvgl.h"
|
#include "lvgl/lvgl.h"
|
||||||
|
|
||||||
@ -6,3 +7,4 @@ int main(void)
|
|||||||
lv_init();
|
lv_init();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user