Home | History | Annotate | Download | only in main
      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 shared_library("bluetooth.default") {
     18   # HAL layer
     19   sources = [
     20     "//btif/src/bluetooth.cc",
     21   ]
     22 
     23   # platform specific
     24   sources += [
     25     "bte_conf.cc",
     26     "bte_init.cc",
     27     "bte_init_cpp_logging.cc",
     28     "bte_logmsg.cc",
     29     "bte_main.cc",
     30     "stack_config.cc",
     31   ]
     32 
     33   include_dirs = [
     34     "//",
     35     "//bta/include",
     36     "//bta/sys",
     37     "//bta/dm",
     38     "//btcore/include",
     39     "//include",
     40     "//stack/include",
     41     "//stack/l2cap",
     42     "//stack/a2dp",
     43     "//stack/btm",
     44     "//stack/avdt",
     45     "//hci",
     46     "//hci/include",
     47     "//udrv/include",
     48     "//btif/include",
     49     "//btif/co",
     50     "//hci/includ",
     51     "//vnd/include",
     52     "//brcm/include",
     53     "//embdrv/sbc/encoder/include",
     54     "//embdrv/sbc/decoder/include",
     55     "//utils/include",
     56     "//test/suite",
     57   ]
     58 
     59   deps = [
     60     "//bta",
     61     "//btcore",
     62     "//btif",
     63     "//device",
     64     "//embdrv/sbc",
     65     "//hci",
     66     "//osi",
     67     "//stack",
     68     "//third_party/libchrome:base",
     69     "//third_party/tinyxml2",
     70     "//udrv",
     71     "//utils",
     72   ]
     73 
     74   cflags_c = [
     75     "-Lobj/osi",
     76     "-losi",
     77   ]
     78   libs = [
     79     "-ldl",
     80     "-lpthread",
     81     "-lresolv",
     82     "-lrt",
     83     "-lz",
     84     "-latomic",
     85   ]
     86 }
     87