Skip to content

Commit

Permalink
Allow specifying individual mock sources with MOCK_SRC_FILES
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayson Messenger committed Oct 5, 2022
1 parent 7fb34c7 commit 95d1040
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build/MakefileWorker.mk
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
# These do not go in a library. They are explicitly included in the test runner
# MOCKS_SRC_DIRS - Directories containing mock source files to build into the test runner
# These do not go in a library. They are explicitly included in the test runner
# MOCKS_SRC_FILES - Specific mock source files to build into the unit test runner
# These do not go in a library. They are explicitly included in the test runner
#----------
# You can adjust these variables to influence how to build the test target
# and where to put and name outputs
Expand Down Expand Up @@ -410,7 +412,7 @@ TEST_OBJS = $(call src_to_o,$(TEST_SRC))
STUFF_TO_CLEAN += $(TEST_OBJS)


MOCKS_SRC += $(call get_src_from_dir_list, $(MOCKS_SRC_DIRS))
MOCKS_SRC += $(call get_src_from_dir_list, $(MOCKS_SRC_DIRS)) $(MOCKS_SRC_FILES)
MOCKS_OBJS = $(call src_to_o,$(MOCKS_SRC))
STUFF_TO_CLEAN += $(MOCKS_OBJS)

Expand Down

0 comments on commit 95d1040

Please sign in to comment.