-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTest.mk
30 lines (25 loc) · 968 Bytes
/
Test.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#
# Copyright (c) 2018 triaxis s.r.o.
# Licensed under the MIT license. See LICENSE.txt file in the repository root
# for full license information.
#
# Test.mk - root Makefile for building test suites
#
# Expected inputs variables:
#
# OUTDIR - directory where the build artifacts are to be put
# TEST - directory where the test suite sources are located
#
# force variables that would be incorrectly detected by Base.mk
override BASE_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
override SOURCE_DIR = $(TEST)
override PCH = lib/targets/all/testrunner/precompiled.hpp
include $(BASE_DIR)Functions.mk
# derive the name of the output and default components from the input
NAME = $(call dirname,$(OUTDIR))
TEST_COMPONENT = $(call dirname,$(call parentdir,$(call parentdir,$(dir $(TEST)))))
COMPONENTS = testrunner $(TEST_COMPONENT)
ADDITIONAL_TARGETS = test
# test can request additional components to be included
sinclude $(TEST)Include.mk
include $(BASE_DIR)Base.mk