Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 1 | cc_defaults { |
| 2 | name: "fluoride_bta_defaults", |
| 3 | defaults: ["fluoride_defaults"], |
| 4 | local_include_dirs: [ |
| 5 | "include", |
| 6 | "sys", |
| 7 | "dm", |
| 8 | "hd", |
| 9 | "hh", |
Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 10 | ], |
| 11 | include_dirs: [ |
| 12 | "packages/modules/Bluetooth/system", |
| 13 | "packages/modules/Bluetooth/system/bta/include", |
| 14 | "packages/modules/Bluetooth/system/btcore/include", |
| 15 | "packages/modules/Bluetooth/system/hci/include", |
Jakub Pawlowski | 9e9eb4b | 2017-10-17 16:40:41 -0700 | [diff] [blame] | 16 | "packages/modules/Bluetooth/system/internal_include", |
Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 17 | "packages/modules/Bluetooth/system/stack/include", |
| 18 | "packages/modules/Bluetooth/system/stack/btm", |
| 19 | "packages/modules/Bluetooth/system/udrv/include", |
| 20 | "packages/modules/Bluetooth/system/vnd/include", |
| 21 | "packages/modules/Bluetooth/system/utils/include", |
| 22 | ], |
| 23 | shared_libs: [ |
| 24 | "libcutils", |
| 25 | ], |
Jakub Pawlowski | a75a654 | 2017-10-19 00:26:09 -0700 | [diff] [blame] | 26 | header_libs: ["libbluetooth_headers"], |
Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 27 | cflags: ["-DBUILDCFG"], |
| 28 | } |
| 29 | |
| 30 | // BTA static library for target |
| 31 | // ======================================================== |
| 32 | cc_library_static { |
| 33 | name: "libbt-bta", |
| 34 | defaults: ["fluoride_bta_defaults"], |
| 35 | srcs: [ |
| 36 | "ag/bta_ag_act.cc", |
| 37 | "ag/bta_ag_api.cc", |
| 38 | "ag/bta_ag_at.cc", |
| 39 | "ag/bta_ag_cfg.cc", |
Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 40 | "ag/bta_ag_cmd.cc", |
| 41 | "ag/bta_ag_main.cc", |
| 42 | "ag/bta_ag_rfc.cc", |
| 43 | "ag/bta_ag_sco.cc", |
| 44 | "ag/bta_ag_sdp.cc", |
| 45 | "ar/bta_ar.cc", |
| 46 | "av/bta_av_aact.cc", |
| 47 | "av/bta_av_act.cc", |
| 48 | "av/bta_av_api.cc", |
| 49 | "av/bta_av_cfg.cc", |
| 50 | "av/bta_av_ci.cc", |
| 51 | "av/bta_av_main.cc", |
| 52 | "av/bta_av_ssm.cc", |
Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 53 | "dm/bta_dm_act.cc", |
| 54 | "dm/bta_dm_api.cc", |
| 55 | "dm/bta_dm_cfg.cc", |
| 56 | "dm/bta_dm_ci.cc", |
| 57 | "dm/bta_dm_main.cc", |
| 58 | "dm/bta_dm_pm.cc", |
Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 59 | "gatt/bta_gattc_act.cc", |
| 60 | "gatt/bta_gattc_api.cc", |
| 61 | "gatt/bta_gattc_cache.cc", |
| 62 | "gatt/bta_gattc_main.cc", |
Jakub Pawlowski | 19d0aae | 2017-11-29 21:49:32 -0800 | [diff] [blame] | 63 | "gatt/bta_gattc_queue.cc", |
Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 64 | "gatt/bta_gattc_utils.cc", |
| 65 | "gatt/bta_gatts_act.cc", |
| 66 | "gatt/bta_gatts_api.cc", |
| 67 | "gatt/bta_gatts_main.cc", |
| 68 | "gatt/bta_gatts_utils.cc", |
Jakub Pawlowski | 7d06e57 | 2018-02-28 22:44:42 -0800 | [diff] [blame^] | 69 | "hearing_aid/hearing_aid.cc", |
Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 70 | "hf_client/bta_hf_client_act.cc", |
| 71 | "hf_client/bta_hf_client_api.cc", |
| 72 | "hf_client/bta_hf_client_at.cc", |
| 73 | "hf_client/bta_hf_client_main.cc", |
| 74 | "hf_client/bta_hf_client_rfc.cc", |
| 75 | "hf_client/bta_hf_client_sco.cc", |
| 76 | "hf_client/bta_hf_client_sdp.cc", |
| 77 | "hh/bta_hh_act.cc", |
| 78 | "hh/bta_hh_api.cc", |
| 79 | "hh/bta_hh_cfg.cc", |
| 80 | "hh/bta_hh_le.cc", |
| 81 | "hh/bta_hh_main.cc", |
| 82 | "hh/bta_hh_utils.cc", |
| 83 | "hl/bta_hl_act.cc", |
| 84 | "hl/bta_hl_api.cc", |
| 85 | "hl/bta_hl_ci.cc", |
| 86 | "hl/bta_hl_main.cc", |
| 87 | "hl/bta_hl_sdp.cc", |
| 88 | "hl/bta_hl_utils.cc", |
| 89 | "hd/bta_hd_act.cc", |
| 90 | "hd/bta_hd_api.cc", |
| 91 | "hd/bta_hd_main.cc", |
| 92 | "jv/bta_jv_act.cc", |
| 93 | "jv/bta_jv_api.cc", |
| 94 | "jv/bta_jv_cfg.cc", |
Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 95 | "mce/bta_mce_act.cc", |
| 96 | "mce/bta_mce_api.cc", |
| 97 | "mce/bta_mce_cfg.cc", |
| 98 | "mce/bta_mce_main.cc", |
| 99 | "pan/bta_pan_act.cc", |
| 100 | "pan/bta_pan_api.cc", |
| 101 | "pan/bta_pan_ci.cc", |
| 102 | "pan/bta_pan_main.cc", |
| 103 | "sdp/bta_sdp.cc", |
| 104 | "sdp/bta_sdp_act.cc", |
| 105 | "sdp/bta_sdp_api.cc", |
| 106 | "sdp/bta_sdp_cfg.cc", |
| 107 | "sys/bta_sys_conn.cc", |
| 108 | "sys/bta_sys_main.cc", |
| 109 | "sys/utl.cc", |
| 110 | ], |
| 111 | } |
| 112 | |
| 113 | // bta unit tests for target |
| 114 | // ======================================================== |
| 115 | cc_test { |
| 116 | name: "net_test_bta", |
| 117 | defaults: ["fluoride_bta_defaults"], |
| 118 | srcs: [ |
Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 119 | "test/bta_hf_client_test.cc", |
Jakub Pawlowski | d442620 | 2017-12-13 10:02:32 -0800 | [diff] [blame] | 120 | "test/gatt_cache_file_test.cc", |
Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 121 | ], |
| 122 | shared_libs: [ |
Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 123 | "liblog", |
| 124 | "libprotobuf-cpp-lite", |
| 125 | ], |
| 126 | static_libs: [ |
| 127 | "libbtcore", |
| 128 | "libbt-bta", |
Jakub Pawlowski | f9f4585 | 2017-07-03 15:39:36 -0700 | [diff] [blame] | 129 | "libbluetooth-types", |
Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 130 | "libosi", |
| 131 | "libbt-protos", |
| 132 | ], |
| 133 | } |