1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-26 15:03:53 +01:00
RIOT/pkg/lv_drivers/Makefile.include
Marian Buschsieweke f46ab1cb67
pkg: Use -isystem instead of -I for pkg headers
We cannot fix package headers downstream, so we can just as well tell
the compiler to not warn about them.
2025-04-10 13:37:14 +02:00

22 lines
908 B
Makefile

# Using -isystem instead of -I to prevent warnings for the following headers
INCLUDES += -isystem$(PKGDIRBASE)/lv_drivers \
-isystem$(RIOTBASE)/pkg/lv_drivers/include \
#
# Don't use relative includes in lv_drivers, already set in LVGL package
# CFLAGS += -DLV_CONF_INCLUDE_SIMPLE
# lv_drivers module is not a concrete module, so declare it as a pseudomodule
PSEUDOMODULES += lv_drivers
ifneq (,$(filter lv_drivers_sdl,$(USEMODULE)))
SDL_LINKFLAGS = $(call memoized,SDL_LINKFLAGS,$(shell sdl2-config --libs))
LINKFLAGS += $(SDL_LINKFLAGS)
SDL_CFLAGS = $(call memoized,SDL_CFLAGS,$(shell sdl2-config --cflags))
CFLAGS += $(SDL_CFLAGS)
# add SDL to the include path
SDL_INCLUDE_PATH = $(call memoized,SDL_INCLUDE_PATH,$(shell \
sdl2-config --cflags | tr ' ' '\n' | grep '^-I' | cut -c3- | head -n1))
CFLAGS += -DSDL_INCLUDE_PATH="<$(SDL_INCLUDE_PATH)/SDL.h>"
endif