forked from mirrors/qmk_firmware
38527f9a3b
* sequencer: create togglable feature * sequencer: add support for steps * sequencer: add support for tempo and resolutions * sequencer: schedule a message print at the right frequency * sequencer: send a hardcoded note * sequencer: add support for 8 tracks * sequencer: play several notes simultaneously * sequencer: only play the active tracks for a given step * sequencer: change the default behavior of the track toggler * sequencer: make number of tracks and track notes customizable * sequencer: move the keycodes down Not adding them at the end of the list apparently risks breaking compatibility with VIA. Source: https://github.com/qmk/qmk_firmware/pull/9703#discussion_r459202733 * sequencer: add unit tests * sequencer: add unit test for matrix_scan_sequencer * sequencer: expose internal state for better unit-testability * sequencer: add unit tests for matrix_scan_sequencer
69 lines
1.4 KiB
Makefile
69 lines
1.4 KiB
Makefile
ifndef VERBOSE
|
|
.SILENT:
|
|
endif
|
|
|
|
.DEFAULT_GOAL := all
|
|
|
|
include common.mk
|
|
|
|
TARGET=test/$(TEST)
|
|
|
|
GTEST_OUTPUT = $(BUILD_DIR)/gtest
|
|
|
|
TEST_OBJ = $(BUILD_DIR)/test_obj
|
|
|
|
OUTPUTS := $(TEST_OBJ)/$(TEST) $(GTEST_OUTPUT)
|
|
|
|
GTEST_INC := \
|
|
$(LIB_PATH)/googletest/googletest/include\
|
|
$(LIB_PATH)/googletest/googlemock/include\
|
|
|
|
GTEST_INTERNAL_INC :=\
|
|
$(LIB_PATH)/googletest/googletest\
|
|
$(LIB_PATH)/googletest/googlemock
|
|
|
|
$(GTEST_OUTPUT)_SRC :=\
|
|
googletest/src/gtest-all.cc\
|
|
googletest/src/gtest_main.cc\
|
|
googlemock/src/gmock-all.cc
|
|
|
|
$(GTEST_OUTPUT)_DEFS :=
|
|
$(GTEST_OUTPUT)_INC := $(GTEST_INC) $(GTEST_INTERNAL_INC)
|
|
|
|
LDFLAGS += -lstdc++ -lpthread -shared-libgcc
|
|
CREATE_MAP := no
|
|
|
|
VPATH +=\
|
|
$(LIB_PATH)/googletest\
|
|
$(LIB_PATH)/googlemock
|
|
|
|
all: elf
|
|
|
|
VPATH += $(COMMON_VPATH)
|
|
PLATFORM:=TEST
|
|
PLATFORM_KEY:=test
|
|
|
|
ifneq ($(filter $(FULL_TESTS),$(TEST)),)
|
|
include tests/$(TEST)/rules.mk
|
|
endif
|
|
|
|
include common_features.mk
|
|
include $(TMK_PATH)/common.mk
|
|
include $(QUANTUM_PATH)/sequencer/tests/rules.mk
|
|
include $(QUANTUM_PATH)/serial_link/tests/rules.mk
|
|
ifneq ($(filter $(FULL_TESTS),$(TEST)),)
|
|
include build_full_test.mk
|
|
endif
|
|
|
|
$(TEST_OBJ)/$(TEST)_SRC := $($(TEST)_SRC)
|
|
$(TEST_OBJ)/$(TEST)_INC := $($(TEST)_INC) $(VPATH) $(GTEST_INC)
|
|
$(TEST_OBJ)/$(TEST)_DEFS := $($(TEST)_DEFS)
|
|
$(TEST_OBJ)/$(TEST)_CONFIG := $($(TEST)_CONFIG)
|
|
|
|
include $(TMK_PATH)/native.mk
|
|
include $(TMK_PATH)/rules.mk
|
|
|
|
|
|
$(shell mkdir -p $(BUILD_DIR)/test 2>/dev/null)
|
|
$(shell mkdir -p $(TEST_OBJ) 2>/dev/null)
|
|
|