mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-28 07:03:00 +08:00
makefile fixes
This commit is contained in:
parent
ea46f2a236
commit
5832f080f5
15
lvgl.mk
15
lvgl.mk
@ -1,8 +1,9 @@
|
||||
include $(LVGL_DIR)/lvgl/src/lv_core/lv_core.mk
|
||||
include $(LVGL_DIR)/lvgl/src/lv_hal/lv_hal.mk
|
||||
include $(LVGL_DIR)/lvgl/src/lv_objx/lv_objx.mk
|
||||
include $(LVGL_DIR)/lvgl/src/lv_font/lv_font.mk
|
||||
include $(LVGL_DIR)/lvgl/src/lv_misc/lv_misc.mk
|
||||
include $(LVGL_DIR)/lvgl/src/lv_themes/lv_themes.mk
|
||||
include $(LVGL_DIR)/lvgl/src/lv_draw/lv_draw.mk
|
||||
include $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/lv_core/lv_core.mk
|
||||
include $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/lv_hal/lv_hal.mk
|
||||
include $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/lv_objx/lv_objx.mk
|
||||
include $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/lv_font/lv_font.mk
|
||||
include $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/lv_misc/lv_misc.mk
|
||||
include $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/lv_themes/lv_themes.mk
|
||||
include $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/lv_draw/lv_draw.mk
|
||||
|
||||
|
||||
|
@ -6,7 +6,7 @@ CSRCS += lv_refr.c
|
||||
CSRCS += lv_style.c
|
||||
CSRCS += lv_debug.c
|
||||
|
||||
DEPPATH += --dep-path $(LVGL_DIR)/lvgl/src/lv_core
|
||||
VPATH += :$(LVGL_DIR)/lvgl/src/lv_core
|
||||
DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/lv_core
|
||||
VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/lv_core
|
||||
|
||||
CFLAGS += "-I$(LVGL_DIR)/lvgl/src/lv_core"
|
||||
CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/lv_core"
|
||||
|
@ -10,7 +10,7 @@ CSRCS += lv_img_decoder.c
|
||||
CSRCS += lv_img_cache.c
|
||||
CSRCS += lv_img_buf.c
|
||||
|
||||
DEPPATH += --dep-path $(LVGL_DIR)/lvgl//src/lv_draw
|
||||
VPATH += :$(LVGL_DIR)/lvgl/src/lv_draw
|
||||
DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/lv_draw
|
||||
VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/lv_draw
|
||||
|
||||
CFLAGS += "-I$(LVGL_DIR)/lvgl/src/lv_draw"
|
||||
CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/lv_draw"
|
||||
|
@ -6,7 +6,7 @@ CSRCS += lv_font_roboto_22.c
|
||||
CSRCS += lv_font_roboto_28.c
|
||||
CSRCS += lv_font_unscii_8.c
|
||||
|
||||
DEPPATH += --dep-path $(LVGL_DIR)/lvgl/src/lv_font
|
||||
VPATH += :$(LVGL_DIR)/lvgl/src/lv_font
|
||||
DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/lv_font
|
||||
VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/lv_font
|
||||
|
||||
CFLAGS += "-I$(LVGL_DIR)/lvgl/src/lv_font"
|
||||
CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/lv_font"
|
||||
|
@ -2,7 +2,7 @@ CSRCS += lv_hal_disp.c
|
||||
CSRCS += lv_hal_indev.c
|
||||
CSRCS += lv_hal_tick.c
|
||||
|
||||
DEPPATH += --dep-path $(LVGL_DIR)/lvgl/src/lv_hal
|
||||
VPATH += :$(LVGL_DIR)/lvgl/src/lv_hal
|
||||
DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/lv_hal
|
||||
VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/lv_hal
|
||||
|
||||
CFLAGS += "-I$(LVGL_DIR)/lvgl/src/lv_hal"
|
||||
CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/lv_hal"
|
||||
|
@ -15,7 +15,7 @@ CSRCS += lv_async.c
|
||||
CSRCS += lv_printf.c
|
||||
CSRCS += lv_bidi.c
|
||||
|
||||
DEPPATH += --dep-path $(LVGL_DIR)/lvgl/src/lv_misc
|
||||
VPATH += :$(LVGL_DIR)/lvgl/src/lv_misc
|
||||
DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/lv_misc
|
||||
VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/lv_misc
|
||||
|
||||
CFLAGS += "-I$(LVGL_DIR)/lvgl/src/lv_misc"
|
||||
CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/lv_misc"
|
||||
|
@ -32,7 +32,7 @@ CSRCS += lv_sw.c
|
||||
CSRCS += lv_win.c
|
||||
CSRCS += lv_objmask.c
|
||||
|
||||
DEPPATH += --dep-path $(LVGL_DIR)/lvgl/src/lv_objx
|
||||
VPATH += :$(LVGL_DIR)/lvgl/src/lv_objx
|
||||
DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/lv_objx
|
||||
VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/lv_objx
|
||||
|
||||
CFLAGS += "-I$(LVGL_DIR)/lvgl/src/lv_objx"
|
||||
CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/lv_objx"
|
||||
|
@ -8,7 +8,7 @@ CSRCS += lv_theme_material.c
|
||||
CSRCS += lv_theme_nemo.c
|
||||
CSRCS += lv_theme_mono.c
|
||||
|
||||
DEPPATH += --dep-path $(LVGL_DIR)/lvgl/src/lv_themes
|
||||
VPATH += :$(LVGL_DIR)/lvgl/src/lv_themes
|
||||
DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/lv_themes
|
||||
VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/lv_themes
|
||||
|
||||
CFLAGS += "-I$(LVGL_DIR)/lvgl/src/lv_themes"
|
||||
CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/lv_themes"
|
||||
|
@ -3,6 +3,7 @@
|
||||
#
|
||||
CC ?= gcc
|
||||
LVGL_DIR ?= ${shell pwd}/../..
|
||||
LVGL_DIR_NAME ?= lvgl
|
||||
|
||||
WARNINGS ?= -Wall -Wextra
|
||||
OPTIMIZATION ?= -O3 -g0
|
||||
@ -17,7 +18,7 @@ BIN ?= demo
|
||||
#Collect the files to compile
|
||||
MAINSRC = ./test_main.c
|
||||
|
||||
include $(LVGL_DIR)/lvgl/lvgl.mk
|
||||
include ../lvgl.mk
|
||||
|
||||
OBJEXT ?= .o
|
||||
|
||||
|
@ -1,5 +1,8 @@
|
||||
import os
|
||||
|
||||
lvgldirname = os.path.abspath('..')
|
||||
lvgldirname = os.path.basename(lvgldirname)
|
||||
|
||||
warnings = '"-Wall -Werror"'
|
||||
base_defines = '"-DLV_CONF_PATH=lvgl/tests/lv_test_conf.h -DLV_BUILD_TEST"'
|
||||
optimization = '"-O3 -g0"'
|
||||
@ -18,7 +21,7 @@ def build(name, defines):
|
||||
d_all += " -D" + d + "=" + str(defines[d])
|
||||
|
||||
d_all += '"'
|
||||
cmd = "make -j8 BIN=test.bin DEFINES=" + d_all + " WARNINGS=" + warnings + " OPTIMIZATION=" + optimization
|
||||
cmd = "make -j8 BIN=test.bin LVGL_DIR_NAME=" + lvgldirname + " DEFINES=" + d_all + " WARNINGS=" + warnings + " OPTIMIZATION=" + optimization
|
||||
|
||||
print("---------------------------")
|
||||
print("Clean")
|
||||
|
Loading…
x
Reference in New Issue
Block a user