From: Miao Chou Date: Sat, 30 May 2015 04:16:19 +0000 (-0700) Subject: gn-build: Build net_test_device using GN + ninja X-Git-Tag: android-x86-7.1-r1~394^2~216^2~149 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=e35d6ccc;p=android-x86%2Fsystem-bt.git gn-build: Build net_test_device using GN + ninja This CL adds gtest dependency to device/BUILD.gn to enable building net_test_device using GN + ninja. Bug: 21444879 Change-Id: I3760511d884f7b3562f86abcec96f679704ef2f4 --- diff --git a/device/BUILD.gn b/device/BUILD.gn index 4629bd435..1ca028809 100644 --- a/device/BUILD.gn +++ b/device/BUILD.gn @@ -32,6 +32,7 @@ static_library("device") { } executable("net_test_device") { + testonly = true sources = [ "//osi/test/AllocationTestHarness.cpp", "test/classic/peer_test.cpp", @@ -46,6 +47,7 @@ executable("net_test_device") { "//device", "//btcore", "//osi", + "//third_party/gtest:gtest_main", ] libs = [ "-lpthread", "-lrt", "-ldl" ]