feat(options): add SRC_DIR var to allow sources to live in a subfolder

This commit is contained in:
Olivier Louvignes 2016-01-30 22:39:43 +01:00
parent 2326da3a50
commit fa94dd4df6

View file

@ -762,12 +762,12 @@ endif
######################################################################## ########################################################################
# Local sources # Local sources
LOCAL_C_SRCS ?= $(wildcard *.c) LOCAL_C_SRCS ?= $(wildcard $(SRC_DIR)*.c)
LOCAL_CPP_SRCS ?= $(wildcard *.cpp) LOCAL_CPP_SRCS ?= $(wildcard $(SRC_DIR)*.cpp)
LOCAL_CC_SRCS ?= $(wildcard *.cc) LOCAL_CC_SRCS ?= $(wildcard $(SRC_DIR)*.cc)
LOCAL_PDE_SRCS ?= $(wildcard *.pde) LOCAL_PDE_SRCS ?= $(wildcard $(SRC_DIR)*.pde)
LOCAL_INO_SRCS ?= $(wildcard *.ino) LOCAL_INO_SRCS ?= $(wildcard $(SRC_DIR)*.ino)
LOCAL_AS_SRCS ?= $(wildcard *.S) LOCAL_AS_SRCS ?= $(wildcard $(SRC_DIR)*.S)
LOCAL_SRCS = $(LOCAL_C_SRCS) $(LOCAL_CPP_SRCS) \ LOCAL_SRCS = $(LOCAL_C_SRCS) $(LOCAL_CPP_SRCS) \
$(LOCAL_CC_SRCS) $(LOCAL_PDE_SRCS) \ $(LOCAL_CC_SRCS) $(LOCAL_PDE_SRCS) \
$(LOCAL_INO_SRCS) $(LOCAL_AS_SRCS) $(LOCAL_INO_SRCS) $(LOCAL_AS_SRCS)