Loading BUILD.gn +12 −0 Original line number Diff line number Diff line Loading @@ -28,3 +28,15 @@ group("bluetooth") { "//vendor_libs:vendor-libs" ] } group("bluetooth_tests") { testonly = true deps = [ "//test/suite:net_test_bluedroid", "//btcore:net_test_btcore", "//hci:net_test_hci", "//osi:net_test_osi", "//device:net_test_device", ] } system/main/BUILD.gn +1 −0 Original line number Diff line number Diff line Loading @@ -53,6 +53,7 @@ shared_library("bluetooth.default") { "//embdrv/sbc/decoder/include", "//audio_a2dp_hw", "//utils/include", "//test/suite", ] deps = [ Loading system/service/BUILD.gn +8 −2 Original line number Diff line number Diff line Loading @@ -16,16 +16,22 @@ source_set("service") { sources = [ "a2dp_source.cpp", "core_stack.cpp", "adapter.cpp", "adapter_state.cpp", "daemon.cpp", "gatt_server.cpp", "hal/bluetooth_interface.cpp", "ipc/binder/bluetooth_binder_server.cpp", "ipc/binder/IBluetooth.cpp", "ipc/binder/IBluetoothCallback.cpp", "ipc/binder/ipc_handler_binder.cpp", "ipc/ipc_handler.cpp", "ipc/ipc_handler_linux.cpp", "ipc/ipc_manager.cpp", "ipc/linux_ipc_host.cpp", "logging_helpers.cpp", "settings.cpp", "util/atomic_string.cpp", "uuid.cpp" ] Loading system/test/suite/BUILD.gn 0 → 100644 +47 −0 Original line number Diff line number Diff line # # Copyright (C) 2015 Google, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # executable("net_test_bluetooth") { testonly = true sources = [ "cases/adapter.c", "cases/cases.c", "cases/gatt.c", "cases/pan.c", "cases/rfcomm.c", "support/adapter.c", "support/callbacks.c", "support/gatt.c", "support/hal.c", "support/pan.c", "support/rfcomm.c", "main.c", ] include_dirs = [ "//", "//test/suite", ] deps = [ "//btcore", "//main:bluetooth.default", "//osi", ] libs = [ "-lpthread", "-lrt", "-ldl" ] } system/test/suite/base.h +0 −1 Original line number Diff line number Diff line Loading @@ -27,7 +27,6 @@ #include <hardware/bt_gatt.h> #include <hardware/bt_pan.h> #include <hardware/bt_sock.h> #include <hardware/hardware.h> #ifndef ARRAY_SIZE # define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) Loading Loading
BUILD.gn +12 −0 Original line number Diff line number Diff line Loading @@ -28,3 +28,15 @@ group("bluetooth") { "//vendor_libs:vendor-libs" ] } group("bluetooth_tests") { testonly = true deps = [ "//test/suite:net_test_bluedroid", "//btcore:net_test_btcore", "//hci:net_test_hci", "//osi:net_test_osi", "//device:net_test_device", ] }
system/main/BUILD.gn +1 −0 Original line number Diff line number Diff line Loading @@ -53,6 +53,7 @@ shared_library("bluetooth.default") { "//embdrv/sbc/decoder/include", "//audio_a2dp_hw", "//utils/include", "//test/suite", ] deps = [ Loading
system/service/BUILD.gn +8 −2 Original line number Diff line number Diff line Loading @@ -16,16 +16,22 @@ source_set("service") { sources = [ "a2dp_source.cpp", "core_stack.cpp", "adapter.cpp", "adapter_state.cpp", "daemon.cpp", "gatt_server.cpp", "hal/bluetooth_interface.cpp", "ipc/binder/bluetooth_binder_server.cpp", "ipc/binder/IBluetooth.cpp", "ipc/binder/IBluetoothCallback.cpp", "ipc/binder/ipc_handler_binder.cpp", "ipc/ipc_handler.cpp", "ipc/ipc_handler_linux.cpp", "ipc/ipc_manager.cpp", "ipc/linux_ipc_host.cpp", "logging_helpers.cpp", "settings.cpp", "util/atomic_string.cpp", "uuid.cpp" ] Loading
system/test/suite/BUILD.gn 0 → 100644 +47 −0 Original line number Diff line number Diff line # # Copyright (C) 2015 Google, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # executable("net_test_bluetooth") { testonly = true sources = [ "cases/adapter.c", "cases/cases.c", "cases/gatt.c", "cases/pan.c", "cases/rfcomm.c", "support/adapter.c", "support/callbacks.c", "support/gatt.c", "support/hal.c", "support/pan.c", "support/rfcomm.c", "main.c", ] include_dirs = [ "//", "//test/suite", ] deps = [ "//btcore", "//main:bluetooth.default", "//osi", ] libs = [ "-lpthread", "-lrt", "-ldl" ] }
system/test/suite/base.h +0 −1 Original line number Diff line number Diff line Loading @@ -27,7 +27,6 @@ #include <hardware/bt_gatt.h> #include <hardware/bt_pan.h> #include <hardware/bt_sock.h> #include <hardware/hardware.h> #ifndef ARRAY_SIZE # define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) Loading