Add the plugins dir to includes for testcases

This makes it possible for a testcase to include source files from plugin
directories. When the plugins got pulled out of the main Kaleidoscope source
dir, plugin header files became unavailable to testcases, but these files are
useful in some instances.

Signed-off-by: Michael Richters <gedankenexperimenter@gmail.com>
pull/1012/head
Michael Richters 4 years ago
parent c9534155e6
commit 1a5934ef61
No known key found for this signature in database
GPG Key ID: 1288FD13E4EEF0C0

@ -3,6 +3,8 @@ top_dir := $(abspath $(mkfile_dir)../..)
include $(mkfile_dir)/shared.mk include $(mkfile_dir)/shared.mk
include_plugins_dir := -I${top_dir}/plugins \
build_dir := ${top_dir}/_build/${testcase} build_dir := ${top_dir}/_build/${testcase}
LIB_DIR := ${build_dir}/lib LIB_DIR := ${build_dir}/lib
@ -81,7 +83,7 @@ endif
${OBJ_DIR}/%.o: ${SRC_DIR}/%.cpp ${OBJ_DIR}/%.o: ${SRC_DIR}/%.cpp
$(QUIET) install -d "${OBJ_DIR}" $(QUIET) install -d "${OBJ_DIR}"
$(QUIET) $(COMPILER_WRAPPER) $(call _arduino_prop,compiler.cpp.cmd) -o "$@" -c -std=c++14 \ $(QUIET) $(COMPILER_WRAPPER) $(call _arduino_prop,compiler.cpp.cmd) -o "$@" -c -std=c++14 \
${shared_includes} ${shared_defines} $< ${shared_includes} ${include_plugins_dir} ${shared_defines} $<
clean: clean:
$(QUIET) rm -f -- "${SRC_DIR}/generated-testcase.cpp" $(QUIET) rm -f -- "${SRC_DIR}/generated-testcase.cpp"

Loading…
Cancel
Save