#
#  Copyright 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.
#

if (defined(use.android) && use.android) {
  executable("net_test_bluetooth") {
    sources = [
      "adapter/adapter_unittest.cc",
      "adapter/bluetooth_test.cc",
    ]

    include_dirs = [
      "//bt/system",
      "//bt/system/test/suite",
    ]

    deps = [
      "//bt/system/btcore",
      "//bt/system/main:bluetooth",
      "//bt/system/service:service",
      "//bt/system/service:service_unittests",
      "//bt/system/types:types_unittests",
      "//bt/system/osi",
    ]

    configs += [
      "//bt/system:target_defaults",
      "//bt/system:external_gtest_main",
    ]

    libs = [
      "pthread",
      "rt",
      "dl",
    ]
  }
}
