Browse Source

Add SRC and OPT_DEFS when building tests

pjones-keymap
Fred Sundvik 1 year ago
parent
commit
a5b0f4de35
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      build_full_test.mk

+ 2
- 1
build_full_test.mk View File

@@ -21,12 +21,13 @@ $(TEST)_SRC= \
21 21
 	$(TEST_PATH)/keymap.c \
22 22
 	$(TMK_COMMON_SRC) \
23 23
 	$(QUANTUM_SRC) \
24
+	$(SRC) \
24 25
 	tests/test_common/matrix.c \
25 26
 	tests/test_common/test_driver.cpp \
26 27
 	tests/test_common/keyboard_report_util.cpp \
27 28
 	tests/test_common/test_fixture.cpp
28 29
 $(TEST)_SRC += $(patsubst $(ROOTDIR)/%,%,$(wildcard $(TEST_PATH)/*.cpp))
29 30
 
30
-$(TEST)_DEFS=$(TMK_COMMON_DEFS)
31
+$(TEST)_DEFS=$(TMK_COMMON_DEFS) $(OPT_DEFS)
31 32
 $(TEST)_CONFIG=$(TEST_PATH)/config.h
32 33
 VPATH+=$(TOP_DIR)/tests/test_common

Loading…
Cancel
Save