build_full_test.mk
1424 bytes
1# Copyright 2017 Fred Sundvik
2#
3# This program is free software: you can redistribute it and/or modify
4# it under the terms of the GNU General Public License as published by
5# the Free Software Foundation, either version 2 of the License, or
6# (at your option) any later version.
7#
8# This program is distributed in the hope that it will be useful,
9# but WITHOUT ANY WARRANTY; without even the implied warranty of
10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11# GNU General Public License for more details.
12#
13# You should have received a copy of the GNU General Public License
14# along with this program. If not, see <http://www.gnu.org/licenses/>.
15
16$(TEST_OUTPUT)_INC := \
17 tests/test_common/common_config.h
18
19$(TEST_OUTPUT)_SRC := \
20 $(QUANTUM_SRC) \
21 $(SRC) \
22 $(QUANTUM_PATH)/keymap_introspection.c \
23 tests/test_common/matrix.c \
24 tests/test_common/pointing_device_driver.c \
25 tests/test_common/test_driver.cpp \
26 tests/test_common/keyboard_report_util.cpp \
27 tests/test_common/mouse_report_util.cpp \
28 tests/test_common/keycode_util.cpp \
29 tests/test_common/keycode_table.cpp \
30 tests/test_common/test_fixture.cpp \
31 tests/test_common/test_keymap_key.cpp \
32 tests/test_common/test_logger.cpp \
33 $(patsubst $(ROOTDIR)/%,%,$(wildcard $(TEST_PATH)/*.cpp))
34
35$(TEST_OUTPUT)_DEFS := $(OPT_DEFS) "-DKEYMAP_C=\"keymap.c\""
36
37$(TEST_OUTPUT)_CONFIG := $(TEST_PATH)/config.h
38
39VPATH += $(TOP_DIR)/tests/test_common