Home | History | Annotate | Download | only in main
      1 
      2 // Bluetooth main HW module / shared library for target
      3 // ========================================================
      4 cc_library_shared {
      5     name: "libbluetooth",
      6     defaults: ["fluoride_defaults"],
      7     header_libs: ["libbluetooth_headers"],
      8     export_header_lib_headers: ["libbluetooth_headers"],
      9     srcs: [
     10         // platform specific
     11         "bte_conf.cc",
     12         "bte_init.cc",
     13         "bte_init_cpp_logging.cc",
     14         "bte_logmsg.cc",
     15         "bte_main.cc",
     16         "stack_config.cc",
     17     ],
     18     include_dirs: [
     19         "system/bt",
     20         "system/bt/bta/include",
     21         "system/bt/bta/sys",
     22         "system/bt/bta/dm",
     23         "system/bt/btcore/include",
     24         "system/bt/internal_include",
     25         "system/bt/stack/include",
     26         "system/bt/stack/l2cap",
     27         "system/bt/stack/a2dp",
     28         "system/bt/stack/btm",
     29         "system/bt/stack/avdt",
     30         "system/bt/udrv/include",
     31         "system/bt/btif/include",
     32         "system/bt/btif/co",
     33         "system/bt/hci/include",
     34         "system/bt/vnd/include",
     35         "system/bt/embdrv/sbc/encoder/include",
     36         "system/bt/embdrv/sbc/decoder/include",
     37         "system/bt/utils/include",
     38     ],
     39     logtags: ["../EventLogTags.logtags"],
     40     shared_libs: [
     41         "android.hardware.bluetooth (a] 1.0",
     42         "android.hardware.bluetooth.a2dp (a] 1.0",
     43         "libaudioclient",
     44         "libcutils",
     45         "libdl",
     46         "libhidlbase",
     47         "libhidltransport",
     48         "libhwbinder",
     49         "liblog",
     50         "libprotobuf-cpp-lite",
     51         "libutils",
     52         "libtinyxml2",
     53         "libz",
     54     ],
     55     static_libs: [
     56         "libbt-sbc-decoder",
     57         "libbt-sbc-encoder",
     58         "libFraunhoferAAC",
     59         "libg722codec",
     60         "libudrv-uipc",
     61     ],
     62     whole_static_libs: [
     63         "libbt-bta",
     64         "libbtdevice",
     65         "libbtif",
     66         "libbt-hci",
     67         "libbt-stack",
     68         "libbt-utils",
     69         "libbtcore",
     70         "libosi",
     71         "libbt-protos-lite",
     72     ],
     73     // Shared library link options.
     74     // References to global symbols and functions should bind to the library
     75     // itself. This is to avoid issues with some of the unit/system tests
     76     // that might link statically with some of the code in the library, and
     77     // also dlopen(3) the shared library.
     78     ldflags: ["-Wl,-Bsymbolic,-Bsymbolic-functions"],
     79     required: [
     80         "bt_did.conf",
     81         "bt_stack.conf",
     82         "libldacBT_enc",
     83         "libldacBT_abr",
     84     ],
     85     cflags: [
     86         "-DBUILDCFG",
     87     ],
     88 }
     89 
     90 cc_library_static {
     91     name: "libbluetooth-for-tests",
     92     defaults: ["fluoride_defaults"],
     93 
     94     srcs: [
     95         "bte_conf.cc",
     96         "bte_init.cc",
     97         "bte_init_cpp_logging.cc",
     98         "bte_logmsg.cc",
     99         "bte_main.cc",
    100         "stack_config.cc",
    101     ],
    102     include_dirs: [
    103         "system/bt",
    104         "system/bt/bta/include",
    105         "system/bt/btcore/include",
    106         "system/bt/btif/include",
    107         "system/bt/hci/include",
    108         "system/bt/internal_include",
    109         "system/bt/stack/include",
    110         "system/bt/utils/include",
    111     ],
    112     cflags: [
    113         "-DBUILDCFG",
    114     ],
    115 }
    116