OSDN Git Service

Allocate/free the SDP connection timers only during stack startup/shutdown
[android-x86/system-bt.git] / osi / BUILD.gn
index 28307f3..80d7d3b 100644 (file)
@@ -31,7 +31,10 @@ static_library("osi") {
     "src/hash_map.c",
     "src/hash_map_utils.c",
     "src/list.c",
+    "src/metrics_linux.cpp",
     "src/mutex.c",
+    "src/osi.c",
+    "src/properties.c",
     "src/reactor.c",
     "src/ringbuffer.c",
     "src/semaphore.c",
@@ -41,14 +44,15 @@ static_library("osi") {
     # dependencies are abstracted.
     "src/socket_utils/socket_local_client.c",
     "src/socket_utils/socket_local_server.c",
-
     "src/thread.c",
     "src/time.c",
+    "src/wakelock.c",
   ]
 
   include_dirs = [
     "//",
     "//utils/include",
+    "//stack/include",
   ]
 }
 
@@ -67,7 +71,11 @@ executable("net_test_osi") {
     "test/future_test.cpp",
     "test/hash_map_test.cpp",
     "test/hash_map_utils_test.cpp",
+    "test/leaky_bonded_queue_test.cpp",
     "test/list_test.cpp",
+    "test/metrics_test.cpp",
+    "test/properties_test.cpp",
+    "test/rand_test.cpp",
     "test/reactor_test.cpp",
     "test/ringbuffer_test.cpp",
     "test/thread_test.cpp",
@@ -76,12 +84,18 @@ executable("net_test_osi") {
 
   include_dirs = [
     "//",
+    "//osi/test",
   ]
 
   deps = [
     "//osi",
-    "//third_party/gtest:gtest_main",
+    "//third_party/googletest:gtest_main",
+    "//third_party/googletest:gmock_main",
+    "//third_party/libchrome:base",
   ]
 
-  libs = [ "-lpthread", "-lrt" ]
+  libs = [
+    "-lpthread",
+    "-lrt",
+  ]
 }