OSDN Git Service

gn-build: Build net_test_device using GN + ninja
authorMiao Chou <mcchou@google.com>
Sat, 30 May 2015 04:16:19 +0000 (21:16 -0700)
committerMiao Chou <mcchou@google.com>
Tue, 2 Jun 2015 04:58:55 +0000 (21:58 -0700)
This CL adds gtest dependency to device/BUILD.gn to enable building
net_test_device using GN + ninja.

Bug: 21444879
Change-Id: I3760511d884f7b3562f86abcec96f679704ef2f4

device/BUILD.gn

index 4629bd4..1ca0288 100644 (file)
@@ -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" ]