The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | |
| 3 | # |
| 4 | # Bluetooth HW module |
| 5 | # |
| 6 | |
| 7 | include $(CLEAR_VARS) |
| 8 | |
| 9 | # HAL layer |
| 10 | LOCAL_SRC_FILES:= \ |
| 11 | ../btif/src/bluetooth.c |
| 12 | |
| 13 | # platform specific |
| 14 | LOCAL_SRC_FILES+= \ |
| 15 | bte_main.c \ |
| 16 | bte_init.c \ |
| 17 | bte_version.c \ |
| 18 | bte_logmsg.c \ |
| 19 | bte_conf.c |
| 20 | |
| 21 | # BTIF |
| 22 | LOCAL_SRC_FILES += \ |
| 23 | ../btif/src/btif_core.c \ |
| 24 | ../btif/src/btif_dm.c \ |
| 25 | ../btif/src/btif_storage.c \ |
| 26 | ../btif/src/btif_util.c \ |
| 27 | ../btif/src/btif_sm.c \ |
| 28 | ../btif/src/btif_hf.c \ |
| 29 | ../btif/src/btif_av.c \ |
| 30 | ../btif/src/btif_rc.c \ |
| 31 | ../btif/src/btif_media_task.c \ |
| 32 | ../btif/src/btif_hh.c \ |
| 33 | ../btif/src/btif_hl.c \ |
| 34 | ../btif/src/btif_sock.c \ |
| 35 | ../btif/src/btif_sock_rfc.c \ |
| 36 | ../btif/src/btif_sock_thread.c \ |
| 37 | ../btif/src/btif_sock_sdp.c \ |
| 38 | ../btif/src/btif_sock_util.c \ |
| 39 | ../btif/src/btif_pan.c \ |
Ganesh Ganapathi Batta | ead3cde | 2013-02-05 15:22:31 -0800 | [diff] [blame^] | 40 | ../btif/src/btif_gatt.c \ |
| 41 | ../btif/src/btif_gatt_client.c \ |
| 42 | ../btif/src/btif_gatt_server.c \ |
| 43 | ../btif/src/btif_gatt_util.c \ |
| 44 | ../btif/src/btif_gatt_test.c \ |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 45 | ../btif/src/btif_config.c \ |
| 46 | ../btif/src/btif_config_util.cpp \ |
| 47 | ../btif/src/btif_profile_queue.c |
| 48 | |
| 49 | # callouts |
| 50 | LOCAL_SRC_FILES+= \ |
| 51 | ../btif/co/bta_sys_co.c \ |
| 52 | ../btif/co/bta_fs_co.c \ |
| 53 | ../btif/co/bta_ag_co.c \ |
| 54 | ../btif/co/bta_dm_co.c \ |
| 55 | ../btif/co/bta_av_co.c \ |
| 56 | ../btif/co/bta_hh_co.c \ |
| 57 | ../btif/co/bta_hl_co.c \ |
Ganesh Ganapathi Batta | ead3cde | 2013-02-05 15:22:31 -0800 | [diff] [blame^] | 58 | ../btif/co/bta_pan_co.c \ |
| 59 | ../btif/co/bta_gattc_co.c \ |
| 60 | ../btif/co/bta_gatts_co.c \ |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 61 | |
| 62 | # sbc encoder |
| 63 | LOCAL_SRC_FILES+= \ |
| 64 | ../embdrv/sbc/encoder/srce/sbc_analysis.c \ |
| 65 | ../embdrv/sbc/encoder/srce/sbc_dct.c \ |
| 66 | ../embdrv/sbc/encoder/srce/sbc_dct_coeffs.c \ |
| 67 | ../embdrv/sbc/encoder/srce/sbc_enc_bit_alloc_mono.c \ |
| 68 | ../embdrv/sbc/encoder/srce/sbc_enc_bit_alloc_ste.c \ |
| 69 | ../embdrv/sbc/encoder/srce/sbc_enc_coeffs.c \ |
| 70 | ../embdrv/sbc/encoder/srce/sbc_encoder.c \ |
| 71 | ../embdrv/sbc/encoder/srce/sbc_packing.c \ |
| 72 | |
| 73 | LOCAL_SRC_FILES+= \ |
| 74 | ../udrv/ulinux/uipc.c |
| 75 | |
| 76 | LOCAL_C_INCLUDES+= . \ |
| 77 | $(LOCAL_PATH)/../bta/include \ |
| 78 | $(LOCAL_PATH)/../bta/sys \ |
| 79 | $(LOCAL_PATH)/../bta/dm \ |
| 80 | $(LOCAL_PATH)/../gki/common \ |
| 81 | $(LOCAL_PATH)/../gki/ulinux \ |
| 82 | $(LOCAL_PATH)/../include \ |
| 83 | $(LOCAL_PATH)/../stack/include \ |
| 84 | $(LOCAL_PATH)/../stack/l2cap \ |
| 85 | $(LOCAL_PATH)/../stack/a2dp \ |
| 86 | $(LOCAL_PATH)/../stack/btm \ |
| 87 | $(LOCAL_PATH)/../stack/avdt \ |
| 88 | $(LOCAL_PATH)/../hcis \ |
| 89 | $(LOCAL_PATH)/../hcis/include \ |
| 90 | $(LOCAL_PATH)/../hcis/patchram \ |
| 91 | $(LOCAL_PATH)/../udrv/include \ |
| 92 | $(LOCAL_PATH)/../btif/include \ |
| 93 | $(LOCAL_PATH)/../btif/co \ |
| 94 | $(LOCAL_PATH)/../hci/include\ |
| 95 | $(LOCAL_PATH)/../brcm/include \ |
| 96 | $(LOCAL_PATH)/../embdrv/sbc/encoder/include \ |
| 97 | $(LOCAL_PATH)/../audio_a2dp_hw \ |
| 98 | $(LOCAL_PATH)/../utils/include \ |
| 99 | $(bdroid_C_INCLUDES) \ |
| 100 | external/tinyxml2 |
| 101 | |
| 102 | LOCAL_CFLAGS += -DBUILDCFG $(bdroid_CFLAGS) -Werror -Wno-error=maybe-uninitialized -Wno-error=uninitialized |
| 103 | |
| 104 | ifeq ($(TARGET_PRODUCT), full_crespo) |
| 105 | LOCAL_CFLAGS += -DTARGET_CRESPO |
| 106 | endif |
| 107 | ifeq ($(TARGET_PRODUCT), full_crespo4g) |
| 108 | LOCAL_CFLAGS += -DTARGET_CRESPO |
| 109 | endif |
| 110 | ifeq ($(TARGET_PRODUCT), full_maguro) |
| 111 | LOCAL_CFLAGS += -DTARGET_MAGURO |
| 112 | endif |
| 113 | |
| 114 | # Fix this |
| 115 | #ifeq ($(TARGET_VARIANT), eng) |
| 116 | # LOCAL_CFLAGS += -O2 # and other production release flags |
| 117 | #else |
| 118 | # LOCAL_CFLAGS += |
| 119 | #endif |
| 120 | |
| 121 | LOCAL_SHARED_LIBRARIES := \ |
| 122 | libcutils \ |
| 123 | libpower \ |
| 124 | libbt-hci \ |
| 125 | libbt-utils |
| 126 | |
| 127 | #LOCAL_WHOLE_STATIC_LIBRARIES := libbt-brcm_gki libbt-brcm_stack libbt-brcm_bta |
| 128 | LOCAL_STATIC_LIBRARIES := libbt-brcm_gki libbt-brcm_bta libbt-brcm_stack libtinyxml2 |
| 129 | |
| 130 | LOCAL_MODULE := bluetooth.default |
| 131 | LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw |
| 132 | LOCAL_MODULE_TAGS := optional |
| 133 | LOCAL_MODULE_CLASS := SHARED_LIBRARIES |
| 134 | LOCAL_REQUIRED_MODULES := libbt-hci libbt-vendor bt_stack.conf bt_did.conf auto_pair_devlist.conf |
| 135 | |
| 136 | include $(BUILD_SHARED_LIBRARY) |