From f9762c01b058bfdd949ce1c94f01a7976e311e4b Mon Sep 17 00:00:00 2001 From: Anton Obzhirov Date: Tue, 15 May 2018 17:50:32 +0100 Subject: [PATCH] Add GTest. Change-Id: Ic9e3042a40a326399b9133e418c9249c174abfed --- build/scripts/dali_env | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build/scripts/dali_env b/build/scripts/dali_env index 5a9d556..b55670c 100755 --- a/build/scripts/dali_env +++ b/build/scripts/dali_env @@ -51,6 +51,7 @@ my @system_packages = ( "curl", "libssl-dev", "cifs-utils", + "libgtest-dev", ); # Some packages like require building from source @@ -66,6 +67,7 @@ my @source_pkgs = ( # original version used with DALi is 3.25.19. 3.32.7 is the latest we can use before # upgrading DALi to use c++0x or c++11 "version" => " 3.32.7", "make" => "make -j8 library=shared", "build-mode" =>"debug" }, + {"name" => "gtest" }, ); ### Detect any http proxy, part of v8 installation requires this information @@ -253,6 +255,12 @@ sub check_source_packages { install_v8( $pkgref ); } + elsif ($pkg eq "gtest") + { + print "Attempting to build $pkg\n"; + # from https://www.eriksmistad.no/getting-started-with-google-test-on-ubuntu/ + run_command("cd /usr/src/gtest; sudo cmake CMakeLists.txt; sudo make; sudo cp *.a /usr/lib; cd -;"); + } } } -- 2.7.4