summaryrefslogtreecommitdiffstats
path: root/rules/catch2.make
blob: 0fd7df58a0144b797d8cad504a95e3412da86792 (plain)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# -*-makefile-*-
#
# Copyright (C) 2021 by Alexander Dahl <ada@thorsis.com>
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
PACKAGES-$(PTXCONF_CATCH2) += catch2

#
# Paths and names
#
CATCH2_VERSION	:= 2.13.4
CATCH2_MD5	:= bd2deea6e8580c2f55feb325419ee107
CATCH2		:= Catch2-$(CATCH2_VERSION)
CATCH2_SUFFIX	:= tar.gz
CATCH2_URL	:= https://github.com/catchorg/Catch2/archive/v$(CATCH2_VERSION).$(CATCH2_SUFFIX)
CATCH2_SOURCE	:= $(SRCDIR)/$(CATCH2).$(CATCH2_SUFFIX)
CATCH2_DIR	:= $(BUILDDIR)/$(CATCH2)
CATCH2_LICENSE	:= BSL-1.0
CATCH2_LICENSE_FILES := file://LICENSE.txt;md5=e4224ccaecb14d942c71d31bef20d78c

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

CATCH2_CONF_TOOL	:= cmake
CATCH2_CONF_OPT		:= \
	$(CROSS_CMAKE_USR) \
	-DCATCH_USE_VALGRIND:BOOL=OFF \
	-DCATCH_BUILD_TESTING:BOOL=$(call ptx/onoff, PTXCONF_CATCH2_BUILD_TESTING) \
	-DCATCH_BUILD_EXAMPLES:BOOL=OFF \
	-DCATCH_BUILD_EXTRA_TESTS:BOOL=OFF \
	-DCATCH_ENABLE_COVERAGE:BOOL=OFF \
	-DCATCH_ENABLE_WERROR:BOOL=OFF \
	-DCATCH_INSTALL_DOCS:BOOL=OFF \
	-DCATCH_INSTALL_HELPERS:BOOL=ON

# vim: ft=make noet tw=72 ts=8 sw=8