From patchwork Thu Dec 17 09:07:52 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abhishek Singh X-Patchwork-Id: 558150 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 2D752140273 for ; Thu, 17 Dec 2015 20:08:25 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 9618E33C21; Thu, 17 Dec 2015 09:08:23 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id opv8DBMMfURD; Thu, 17 Dec 2015 09:08:21 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 92C1033D09; Thu, 17 Dec 2015 09:08:21 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 104621BFA5C for ; Thu, 17 Dec 2015 09:08:21 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 0CD43A632E for ; Thu, 17 Dec 2015 09:08:21 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1qmry2Xb07mi for ; Thu, 17 Dec 2015 09:08:20 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mailapp01.imgtec.com (mailapp01.imgtec.com [195.59.15.196]) by fraxinus.osuosl.org (Postfix) with ESMTP id 48FA7A632D for ; Thu, 17 Dec 2015 09:08:20 +0000 (UTC) Received: from hhmail02.hh.imgtec.org (unknown [10.100.10.20]) by Websense Email Security Gateway with ESMTPS id DF0F350B866ED for ; Thu, 17 Dec 2015 09:08:15 +0000 (GMT) Received: from PUMAIL01.pu.imgtec.org (192.168.91.250) by hhmail02.hh.imgtec.org (10.100.10.20) with Microsoft SMTP Server (TLS) id 14.3.235.1; Thu, 17 Dec 2015 09:08:17 +0000 Received: from pudesk288-linux.pu.imgtec.org (192.168.95.22) by PUMAIL01.pu.imgtec.org (192.168.91.250) with Microsoft SMTP Server (TLS) id 14.3.123.3; Thu, 17 Dec 2015 14:38:15 +0530 From: Abhishek Singh To: Date: Thu, 17 Dec 2015 14:37:52 +0530 Message-ID: <1450343273-13731-1-git-send-email-Abhishek.Singh@imgtec.com> X-Mailer: git-send-email 2.6.2 MIME-Version: 1.0 X-Originating-IP: [192.168.95.22] Cc: Abhishek Singh , rahul.bedarkar@imgtec.com, piotr.nakraszewicz@imgtec.com, marcin.nowakowski@imgtec.com Subject: [Buildroot] [PATCH v3] cxxtest: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Reviewed-by: Marcin Nowakowski Reviewed-by: Rahul Bedarkar Reviewed-by: Piotr Nakraszewicz Signed-off-by: Abhishek Singh Reviewed-by: Jerzy Grzegorek --- changes v2 -> v3: - change source download path (suggested by Yann E. Morin) - modify comment (suggested by Yann E. Morin) changes v1 -> v2: - remove dependency on host-python (suggested by Thomas Petazzoni) - add comments in mk file (suggested by Thomas Petazzoni) --- package/Config.in | 1 + package/cxxtest/Config.in | 10 ++++++++++ package/cxxtest/cxxtest.hash | 2 ++ package/cxxtest/cxxtest.mk | 31 +++++++++++++++++++++++++++++++ 4 files changed, 44 insertions(+) create mode 100644 package/cxxtest/Config.in create mode 100644 package/cxxtest/cxxtest.hash create mode 100644 package/cxxtest/cxxtest.mk diff --git a/package/Config.in b/package/Config.in index 1eea89b..d9015c8 100644 --- a/package/Config.in +++ b/package/Config.in @@ -118,6 +118,7 @@ menu "Development tools" source "package/cmake/Config.in" source "package/cppunit/Config.in" source "package/cvs/Config.in" + source "package/cxxtest/Config.in" if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS source "package/diffutils/Config.in" source "package/dos2unix/Config.in" diff --git a/package/cxxtest/Config.in b/package/cxxtest/Config.in new file mode 100644 index 0000000..7512e4b --- /dev/null +++ b/package/cxxtest/Config.in @@ -0,0 +1,10 @@ +config BR2_PACKAGE_CXXTEST + bool "cxxtest" + depends on BR2_INSTALL_LIBSTDCPP + help + CxxTest is a unit testing framework for C++ + + http://cxxtest.com/ + +comment "cxxtest needs toolchain with C++ support" + depends on !BR2_INSTALL_LIBSTDCPP diff --git a/package/cxxtest/cxxtest.hash b/package/cxxtest/cxxtest.hash new file mode 100644 index 0000000..f552e80 --- /dev/null +++ b/package/cxxtest/cxxtest.hash @@ -0,0 +1,2 @@ +# Locally computed: +sha256 1c154fef91c65dbf1cd4519af7ade70a61d85a923b6e0c0b007dc7f4895cf7d8 cxxtest-4.4.tar.gz diff --git a/package/cxxtest/cxxtest.mk b/package/cxxtest/cxxtest.mk new file mode 100644 index 0000000..ab0da3d --- /dev/null +++ b/package/cxxtest/cxxtest.mk @@ -0,0 +1,31 @@ +####################################################################################### +# +# cxxtest +# +####################################################################################### + +CXXTEST_VERSION = 4.4 +CXXTEST_SOURCE = cxxtest-$(CXXTEST_VERSION).tar.gz +CXXTEST_SITE = https://github.com/CxxTest/cxxtest/releases/download/$(CXXTEST_VERSION) +CXXTEST_LICENSE = LGPLv3 +CXXTEST_LICENSE_FILES = COPYING +CXXTEST_INSTALL_STAGING = YES +CXXTEST_INSTALL_TARGET = NO +CXXTEST_DEPENDENCIES = host-cxxtest +HOST_CXXTEST_SETUP_TYPE = setuptools +HOST_CXXTEST_SUBDIR = python + +# Copy CxxTest header files to staging directory +define CXXTEST_INSTALL_STAGING_CMDS + mkdir -p $(STAGING_DIR)/usr/include/cxxtest + cp $(@D)/cxxtest/* $(STAGING_DIR)/usr/include/cxxtest +endef + +# CxxTest uses python infrastructure as the build system. It consists of two parts: +# 1. cxxtestgen tool to process tests defined in header files to generate C++ source +# files. cxxtestgen is built as a host package, so that it can be used natively. +# 2. A set of header files which are installed in staging directory. This will be +# used in cross-compiling test harness to generate executable which will run on target. + +$(eval $(generic-package)) +$(eval $(host-python-package))