From patchwork Tue Feb 5 15:18:30 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephan Hoffmann X-Patchwork-Id: 218273 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 4E4E52C02CB for ; Wed, 6 Feb 2013 02:18:39 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id CA86E1FE3A; Tue, 5 Feb 2013 15:18:37 +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 IdAwqPAdtwSc; Tue, 5 Feb 2013 15:18:36 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 2AC6820182; Tue, 5 Feb 2013 15:18:36 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 1AC048F783 for ; Tue, 5 Feb 2013 15:18:42 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id CECC320182 for ; Tue, 5 Feb 2013 15:18:34 +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 3p8+efbp9pie for ; Tue, 5 Feb 2013 15:18:33 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.187]) by silver.osuosl.org (Postfix) with ESMTPS id 786B51FE3A for ; Tue, 5 Feb 2013 15:18:33 +0000 (UTC) Received: from stephan-desktop (p5492DFDB.dip.t-dialin.net [84.146.223.219]) by mrelayeu.kundenserver.de (node=mrbap3) with ESMTP (Nemesis) id 0LaUDn-1UoQqu2Pkt-00mJTO; Tue, 05 Feb 2013 16:18:31 +0100 Received: by stephan-desktop (Postfix, from userid 1000) id E7E20500FD1; Tue, 5 Feb 2013 16:18:30 +0100 (CET) From: Stephan Hoffmann To: buildroot@uclibc.org Date: Tue, 5 Feb 2013 16:18:30 +0100 Message-Id: <1360077510-6556-1-git-send-email-sho@relinux.de> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1360076909-5929-1-git-send-email-sho@relinux.de> References: <1360076909-5929-1-git-send-email-sho@relinux.de> X-Provags-ID: V02:K0:qzdKi0C3Mx7NoU4Zwk4G/JK5Tjcf518niq3GoFjCRQO 8BImaxwp2+L/psN3Jx3lmF76e1hT8GDRLlLiuVHwT0y0IwLhao YQ7F81mdNys97BoKGUC5zx9y9WIOxkmvgHaj4ZdrWkHIf+1HZQ XgaKLYTD1kqSCN0Fp14pnjJ22ejp+Cb7SYtrDeTqejumtiUota bAU6W316N7PgXgzwmQo8zPTWFCL2Rqt6ljE3Sb1iJR6ZndCNbo L4TM66M+PUqedI9e49kBhny+vtQHofqkBgomJ+p2TewKMWbuMt I9qnAuI8yB03zCY/eeKTJA5h5yJE44UKPlekJZEPp5IfGA4X9Y 4r3XOM2NC2epoJwi4tU52YQk1Drbsmbhs12yvewHOf+YKErDoo 79uPWC9Ks3VXw== Subject: [Buildroot] [PATCH v2] New package: googletest X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Google's framework for writing C++ tests on a variety of platforms (Linux, Mac OS X, Windows, Cygwin, Windows CE, and Symbian). Based on the xUnit architecture. Supports automatic test discovery, a rich set of assertions, user-defined assertions, death tests, fatal and non-fatal failures, value- and type-parameterized tests, various options for running the tests, and XML test report generation. Googletest also allows to easily build testsuites for C programs. This package allows running testsuites on the target which might be advanteous in certain cases. http://code.google.com/p/googletest/ Signed-off-by: Stephan Hoffmann --- package/Config.in | 1 + package/gtest/Config.in | 20 ++++++++++++++++++++ package/gtest/gtest.mk | 23 +++++++++++++++++++++++ 3 files changed, 44 insertions(+), 0 deletions(-) create mode 100644 package/gtest/Config.in create mode 100644 package/gtest/gtest.mk diff --git a/package/Config.in b/package/Config.in index 2f219b6..845fe57 100644 --- a/package/Config.in +++ b/package/Config.in @@ -541,6 +541,7 @@ source "package/fftw/Config.in" source "package/libargtable2/Config.in" source "package/argp-standalone/Config.in" source "package/boost/Config.in" +source "package/gtest/Config.in" source "package/libatomic_ops/Config.in" source "package/libcap/Config.in" source "package/libcap-ng/Config.in" diff --git a/package/gtest/Config.in b/package/gtest/Config.in new file mode 100644 index 0000000..c7581b5 --- /dev/null +++ b/package/gtest/Config.in @@ -0,0 +1,20 @@ +config BR2_PACKAGE_GTEST + bool "googletest" + depends on BR2_USE_WCHAR && BR2_TOOLCHAIN_HAS_THREADS && BR2_INSTALL_LIBSTDCPP + help + Google's framework for writing C++ tests on a variety of platforms (Linux, + Mac OS X, Windows, Cygwin, Windows CE, and Symbian). Based on the xUnit + architecture. Supports automatic test discovery, a rich set of assertions, + user-defined assertions, death tests, fatal and non-fatal failures, value- + and type-parameterized tests, various options for running the tests, and XML + test report generation. + + Googletest also allows to easily build testsuites for C programs. + + This package allows running testsiuites on the target which might be + advanteous in certain cases. + + http://code.google.com/p/googletest/ + +comment "googletest requires a toolchain with c++, WCHAR and PTHREADS support" + depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP diff --git a/package/gtest/gtest.mk b/package/gtest/gtest.mk new file mode 100644 index 0000000..4090c14 --- /dev/null +++ b/package/gtest/gtest.mk @@ -0,0 +1,23 @@ +############################################################# +# +# googletest +# +############################################################# + +GTEST_VERSION = 1.6.0 +GTEST_SOURCE = gtest-1.6.0.zip +GTEST_SITE = http://googletest.googlecode.com/files/ +GTEST_INSTALL_STAGING = YES +GTEST_INSTALL_TARGET = NO + +define GTEST_EXTRACT_CMDS + unzip $(DL_DIR)/$(GTEST_SOURCE) -d $(BUILD_DIR) +endef + +define GTEST_INSTALL_STAGING_CMDS + $(INSTALL) -D -m 0755 $(@D)/libgtest.a $(STAGING_DIR)/usr/lib/libgtest.a + $(INSTALL) -d -m 0755 $(STAGING_DIR)/usr/include/gtest/ + cp -rp $(@D)/include/gtest/* $(STAGING_DIR)/usr/include/gtest/ +endef + +$(eval $(cmake-package))