Libraries may also contain subdirectory called "utility", containing
header files to be included and source files to be built. Modified SYS_LIBS and USER_LIBS to accomodate those directories if they exist.
This commit is contained in:
parent
486be238ba
commit
fc968b9191
1 changed files with 3 additions and 1 deletions
|
@ -625,6 +625,8 @@ ifneq (,$(strip $(LIBS_NOT_FOUND)))
|
|||
$(error The following libraries specified in ARDUINO_LIBS could not be found (searched USER_LIB_PATH and ARDUINO_LIB_PATH): $(LIBS_NOT_FOUND))
|
||||
endif
|
||||
|
||||
SYS_LIBS := $(wildcard $(SYS_LIBS) $(addsuffix /utility,$(SYS_LIBS)))
|
||||
USER_LIBS := $(wildcard $(USER_LIBS) $(addsuffix /utility,$(USER_LIBS)))
|
||||
SYS_INCLUDES = $(patsubst %,-I%,$(SYS_LIBS))
|
||||
USER_INCLUDES = $(patsubst %,-I%,$(USER_LIBS))
|
||||
LIB_C_SRCS = $(wildcard $(patsubst %,%/*.c,$(SYS_LIBS)))
|
||||
|
|
Loading…
Reference in a new issue