Home | History | Annotate | Download | only in hci
      1 #
      2 #  Copyright (C) 2015 Google, Inc.
      3 #
      4 #  Licensed under the Apache License, Version 2.0 (the "License");
      5 #  you may not use this file except in compliance with the License.
      6 #  You may obtain a copy of the License at:
      7 #
      8 #  http://www.apache.org/licenses/LICENSE-2.0
      9 #
     10 #  Unless required by applicable law or agreed to in writing, software
     11 #  distributed under the License is distributed on an "AS IS" BASIS,
     12 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13 #  See the License for the specific language governing permissions and
     14 #  limitations under the License.
     15 #
     16 
     17 static_library("hci") {
     18   sources = [
     19     "src/btsnoop.cc",
     20     "src/btsnoop_mem.cc",
     21     "src/btsnoop_net.cc",
     22     "src/buffer_allocator.cc",
     23     "src/hci_inject.cc",
     24     "src/hci_layer.cc",
     25     "src/hci_layer_linux.cc",
     26     "src/hci_packet_factory.cc",
     27     "src/hci_packet_parser.cc",
     28     "src/packet_fragmenter.cc",
     29   ]
     30 
     31   include_dirs = [
     32     "include",
     33     "//",
     34     "//include",
     35     "//bta/include",
     36     "//btcore/include",
     37     "//stack/include",
     38   ]
     39 
     40   deps = [
     41     "//third_party/libchrome:base",
     42   ]
     43 }
     44 
     45 executable("net_test_hci") {
     46   testonly = true
     47   sources = [
     48     "//osi/test/AllocationTestHarness.cc",
     49     "//osi/test/AlarmTestHarness.cc",
     50     "test/packet_fragmenter_test.cc",
     51   ]
     52 
     53   include_dirs = [
     54     "//",
     55     "//include",
     56     "//btcore/include",
     57     "//hci/include",
     58     "//osi/test",
     59     "//stack/include",
     60   ]
     61 
     62   deps = [
     63     "//hci",
     64     "//osi",
     65     "//btcore",
     66     "//third_party/googletest:gtest_main",
     67     "//third_party/libchrome:base",
     68   ]
     69 
     70   libs = [
     71     "-lpthread",
     72     "-lrt",
     73     "-ldl",
     74   ]
     75 }
     76