From dd27c3530432ea0b09f01e604bf577f31d8ef841 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Thu, 1 Jun 2023 15:41:47 +1000 Subject: convert lvgl from submodule to a plain old directory --- lib/lvgl | 1 - lib/lvgl/tests/makefile/Makefile | 9 +++++++++ lib/lvgl/tests/makefile/test.c | 9 +++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) delete mode 160000 lib/lvgl create mode 100644 lib/lvgl/tests/makefile/Makefile create mode 100644 lib/lvgl/tests/makefile/test.c (limited to 'lib/lvgl/tests/makefile') diff --git a/lib/lvgl b/lib/lvgl deleted file mode 160000 index 0732400e..00000000 --- a/lib/lvgl +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 0732400e7b564dd0e7dc4a924619d8e19c5b23a0 diff --git a/lib/lvgl/tests/makefile/Makefile b/lib/lvgl/tests/makefile/Makefile new file mode 100644 index 00000000..486d1e12 --- /dev/null +++ b/lib/lvgl/tests/makefile/Makefile @@ -0,0 +1,9 @@ +LVGL_DIR := $(CURDIR)/../.. +include ../../lvgl.mk + +CSRCS += test.c +CFLAGS += -DLV_CONF_SKIP=1 -DLV_BUILD_TEST=1 -I$(LVGL_DIR)/.. +COBJS := $(patsubst %.c, %.o, $(CSRCS)) + +test_file: $(COBJS) + $(CC) -o $@ $^ diff --git a/lib/lvgl/tests/makefile/test.c b/lib/lvgl/tests/makefile/test.c new file mode 100644 index 00000000..e725ade6 --- /dev/null +++ b/lib/lvgl/tests/makefile/test.c @@ -0,0 +1,9 @@ +#if LV_BUILD_TEST +#include +#include "lvgl/lvgl.h" + +int main(void) { + lv_init(); + return 0; +} +#endif -- cgit v1.2.3