1################################################################################ 2# 3# cxxtest 4# 5################################################################################ 6 7CXXTEST_VERSION = 4.4 8CXXTEST_SITE = https://github.com/CxxTest/cxxtest/releases/download/$(CXXTEST_VERSION) 9CXXTEST_LICENSE = LGPL-3.0 10CXXTEST_LICENSE_FILES = COPYING 11CXXTEST_INSTALL_STAGING = YES 12CXXTEST_INSTALL_TARGET = NO 13CXXTEST_DEPENDENCIES = host-cxxtest 14HOST_CXXTEST_SETUP_TYPE = setuptools 15HOST_CXXTEST_SUBDIR = python 16 17# Copy CxxTest header files to staging directory 18define CXXTEST_INSTALL_STAGING_CMDS 19 $(INSTALL) -m 755 -d $(STAGING_DIR)/usr/include/cxxtest 20 $(INSTALL) -m 644 -t $(STAGING_DIR)/usr/include/cxxtest $(@D)/cxxtest/* 21endef 22 23# CxxTest uses python infrastructure as the build system. It consists of two parts: 24# 1. cxxtestgen tool to process tests defined in header files to generate C++ source 25# files. cxxtestgen is built as a host package, so that it can be used natively. 26# 2. A set of header files which are installed in staging directory. This will be 27# used in cross-compiling test harness to generate executable which will run on target. 28 29$(eval $(generic-package)) 30$(eval $(host-python-package)) 31