|
|
@ -57,18 +57,11 @@ compile-sketch:
|
|
|
|
OUTPUT_PATH="${LIB_DIR}" \
|
|
|
|
OUTPUT_PATH="${LIB_DIR}" \
|
|
|
|
$(MAKE) -f ${top_dir}/testing/makefiles/delegate.mk compile
|
|
|
|
$(MAKE) -f ${top_dir}/testing/makefiles/delegate.mk compile
|
|
|
|
$(COMPILER_WRAPPER) $(call _arduino_prop,compiler.cpp.cmd) -o "${BIN_DIR}/${BIN_FILE}" \
|
|
|
|
$(COMPILER_WRAPPER) $(call _arduino_prop,compiler.cpp.cmd) -o "${BIN_DIR}/${BIN_FILE}" \
|
|
|
|
-lpthread \
|
|
|
|
-lpthread -g -w ${TEST_OBJS} \
|
|
|
|
-g \
|
|
|
|
-L"${COMMON_LIB_DIR}" -lcommon \
|
|
|
|
-w \
|
|
|
|
|
|
|
|
${TEST_OBJS} \
|
|
|
|
|
|
|
|
-L"${COMMON_LIB_DIR}" \
|
|
|
|
|
|
|
|
-lcommon \
|
|
|
|
|
|
|
|
"${LIB_DIR}/${LIB_FILE}" \
|
|
|
|
"${LIB_DIR}/${LIB_FILE}" \
|
|
|
|
-L"${top_dir}/testing/googletest/build/lib" \
|
|
|
|
-L"${top_dir}/testing/googletest/build/lib" \
|
|
|
|
-lgtest \
|
|
|
|
-lgtest -lgmock -lpthread -lm
|
|
|
|
-lgmock \
|
|
|
|
|
|
|
|
-lpthread \
|
|
|
|
|
|
|
|
-lm
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# If we have a test.ktest file, it should be processed into a c++ testcase
|
|
|
|
# If we have a test.ktest file, it should be processed into a c++ testcase
|
|
|
@ -86,9 +79,9 @@ ifneq (,$(wildcard test.ktest))
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
${OBJ_DIR}/%.o: ${SRC_DIR}/%.cpp
|
|
|
|
${OBJ_DIR}/%.o: ${SRC_DIR}/%.cpp
|
|
|
|
install -d "${OBJ_DIR}"
|
|
|
|
@install -d "${OBJ_DIR}"
|
|
|
|
$(COMPILER_WRAPPER) $(call _arduino_prop,compiler.cpp.cmd) \
|
|
|
|
$(COMPILER_WRAPPER) $(call _arduino_prop,compiler.cpp.cmd) -o "$@" -c -std=c++14 \
|
|
|
|
-o "$@" -c -std=c++14 ${shared_includes} ${shared_defines} $<
|
|
|
|
${shared_includes} ${shared_defines} $<
|
|
|
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
clean:
|
|
|
|
rm -f -- "${SRC_DIR}/generated-testcase.cpp"
|
|
|
|
rm -f -- "${SRC_DIR}/generated-testcase.cpp"
|
|
|
|