Added 'SOURCE_FOLDERS' variable to store user-defined directories to be included in compilation.
This commit is contained in:
parent
e30bb5c28a
commit
714d3e68cc
1 changed files with 5 additions and 2 deletions
|
@ -712,12 +712,15 @@ LOCAL_CC_SRCS ?= $(wildcard *.cc)
|
|||
LOCAL_PDE_SRCS ?= $(wildcard *.pde)
|
||||
LOCAL_INO_SRCS ?= $(wildcard *.ino)
|
||||
LOCAL_AS_SRCS ?= $(wildcard *.S)
|
||||
LOCAL_SUBF_SRCS ?= $(foreach dir,$(SOURCE_FOLDERS),$(wildcard $(dir)/*.cpp))
|
||||
LOCAL_SRCS = $(LOCAL_C_SRCS) $(LOCAL_CPP_SRCS) \
|
||||
$(LOCAL_CC_SRCS) $(LOCAL_PDE_SRCS) \
|
||||
$(LOCAL_INO_SRCS) $(LOCAL_AS_SRCS)
|
||||
$(LOCAL_INO_SRCS) $(LOCAL_AS_SRCS) \
|
||||
$(LOCAL_SUBF_SRCS)
|
||||
LOCAL_OBJ_FILES = $(LOCAL_C_SRCS:.c=.o) $(LOCAL_CPP_SRCS:.cpp=.o) \
|
||||
$(LOCAL_CC_SRCS:.cc=.o) $(LOCAL_PDE_SRCS:.pde=.o) \
|
||||
$(LOCAL_INO_SRCS:.ino=.o) $(LOCAL_AS_SRCS:.S=.o)
|
||||
$(LOCAL_INO_SRCS:.ino=.o) $(LOCAL_AS_SRCS:.S=.o) \
|
||||
$(LOCAL_SUBF_SRCS:.cpp=.o)
|
||||
LOCAL_OBJS = $(patsubst %,$(OBJDIR)/%,$(LOCAL_OBJ_FILES))
|
||||
|
||||
ifeq ($(words $(LOCAL_SRCS)), 0)
|
||||
|
|
Loading…
Reference in a new issue