Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e95fd90b authored by Marie Janssen's avatar Marie Janssen
Browse files

gn-build: Get net_test_bluetooth to compile

This makes net_test_bluetooth compile.

Bug: 21584091

Change-Id: Id0c3d6bdcfd6f2c75c749e7f5a306645371fbb25
parent c7ba5d29
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -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",
  ]
}
+1 −0
Original line number Diff line number Diff line
@@ -53,6 +53,7 @@ shared_library("bluetooth.default") {
    "//embdrv/sbc/decoder/include",
    "//audio_a2dp_hw",
    "//utils/include",
    "//test/suite",
  ]

  deps = [
+8 −2
Original line number Diff line number Diff line
@@ -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"
  ]

+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" ]

}
+0 −1
Original line number Diff line number Diff line
@@ -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