X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=osi%2FBUILD.gn;h=80d7d3bf685a8bb6a0cd74fe5889cf718b1759e2;hb=36cefa88d34b45934b87f878b6b0ae9e7e30cb20;hp=28307f38c1ec7754898c447eb7ad4814bb235e84;hpb=45b278ab168b4d896a374b02f92672ce13f2fbb2;p=android-x86%2Fsystem-bt.git diff --git a/osi/BUILD.gn b/osi/BUILD.gn index 28307f38c..80d7d3bf6 100644 --- a/osi/BUILD.gn +++ b/osi/BUILD.gn @@ -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", + ] }