-
Notifications
You must be signed in to change notification settings - Fork 0
/
TcBtApp.pro
191 lines (170 loc) · 4.99 KB
/
TcBtApp.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
#-------------------------------------------------
#
# Project created by QtCreator 2014-11-26T13:59:50
#
#-------------------------------------------------
QT += gui
greaterThan(QT_MAJOR_VERSION, 4) {
QT += widgets
QT.gui.CONFIG -= opengl
}
TEMPLATE = app
DESTDIR = bin
CONFIG += release
DEFINES -= UNICODE \
_UNICODE
CONFIG(debug, debug|release) {
OBJECTS_DIR = build/debug/obj
MOC_DIR = build/debug/moc
}
else {
OBJECTS_DIR = build/release/obj
MOC_DIR = build/release/moc
}
#DEFINES += LINUX_3_4
DEFINES += LINUX_3_18
DBUS_XML_CONFIG_PATH = $(PWD)/../../../../../../dbus_xml_config
!exists($$DBUS_XML_CONFIG_PATH) {
DBUS_XML_CONFIG_PATH = $(BUILDDIR)/dbus_xml_config
!exists($$DBUS_XML_CONFIG_PATH) {
error("Could not found dbus_xml_config path!!");
}}
include($$DBUS_XML_CONFIG_PATH/DBusXMLConfig_BlueToothMidware.pri) {
DBUS_ADAPTORS += $$DBUS_BLUETOOTH_MIDWARE_XML_FILES
}
else {
error("Could not load DBusXMLConfig_BlueToothMidware.pri");
}
include($$DBUS_XML_CONFIG_PATH/DBusXMLConfig_AudioManageMidware.pri) {
DBUS_INTERFACES += $$DBUS_AUDIO_MANAGE_XML_FILES
}
else {
error("Could not load DBusXMLConfig_AudioManageMidware.pri");
}
TARGET = SmkBluetoothMidware
SOURCES += main.cpp\
BTAPP/BtSys.cpp \
BTAPP/BtThread.cpp \
BTAPP/BtApp_Gap.cpp \
TC_BT/BtSysCmd.cpp\
TC_BT/BtPlatform.cpp \
TC_BT/BtNvDbFile.cpp \
TC_BT/BtMsgCmd.cpp \
BTAPP/BtDeviceManage.cpp \
TC_BT/BtDmCmd.cpp \
TC_BT/BtCmCmd.cpp \
TC_BT/BtPacCmd.cpp \
BTAPP/BtPhoneBookEvt.cpp \
BTAPP/BtPhoneBook.cpp \
BTAPP/BtPhoneBookCmd.cpp \
TC_BT/BtHfDev.cpp \
TC_BT/BtHfSco.cpp \
TC_BT/BtHfCmd.cpp\
BTAPP/BtApp_HF.cpp\
BTAPP/BtHandFree.cpp \
BTAPP/BtApp_HfEvt.cpp \
TC_BT/BtA2dpCmd.cpp \
TC_BT/BtAvRcpCmd.cpp \
BTAPP/BtApp_Av.cpp \
BTAPP/BtA2dpEvent.cpp \
BTAPP/BtAvRcpEvent.cpp \
BTAPP/BtHfEvent.cpp \
BTAPP/TcBtEvt.cpp \
BTAPP/TcBtHFEvt.cpp \
TcBtPhone.cpp \
TcBtMusic.cpp\
TcBtPhoneConvertor.cpp \
BlueToothMidwareDBusRegistant.cpp \
TcBtMusicConvertor.cpp \
VolumeManagerData.cpp \
VolumeManager.cpp
HEADERS += \
inc/BtBase.h\
inc/BtDataType.h\
BTAPP/inc/BT_CFG.h \
BTAPP/inc/BtThread.h \
BTAPP/inc/BtSys.h \
TC_BT/inc/BtBase.h \
TC_BT/inc/BtSysCmd.h \
TC_BT/inc/BtPlatform.h\
TC_BT/inc/TC_BT_DATATYPE.h \
TC_BT/inc/TC_BT_NV_DB_FILE.h \
TC_BT/inc/TC_BT_UTIL.h\
TC_BT/inc/BtUtil.h \
TC_BT/inc/BtDataType.h \
TC_BT/inc/BtNvDbFile.h \
TC_BT/inc/TC_BT_EVT.h \
TC_BT/inc/TC_BT_SD_EVT.h \
BTAPP/inc/BTAPP.h \
BTAPP/inc/BtApp_Gap.h \
TC_BT/inc/TC_BT_CMD.h \
BTAPP/inc/BtDeviceManage.h \
TC_BT/inc/TC_BT_SC_CMD.h \
TC_BT/inc/BtDmCmd.h \
TC_BT/inc/TC_BT_SC_EVT.h \
TC_BT/inc/TC_BT_CM_CMD.h \
TC_BT/inc/TC_BT_CM_EVT.h \
TC_BT/inc/TC_BT_SYS_CMD.h \
TC_BT/inc/TC_BT_PAC_CMD.h \
TC_BT/inc/BtPacCmd.h \
BTAPP/inc/BtPhoneBook.h \
BTAPP/inc/BtPhoneBookEvt.h \
BTAPP/inc/BtPhoneBookCmd.h \
TC_BT/inc/TC_BT_PAC_EVT.h \
TC_BT/inc/TC_BT_HF_CMD.h \
TC_BT/inc/TC_BT_HF_DEV.h \
TC_BT/inc/TC_BT_HF_EVT.h \
TC_BT/inc/TC_BT_HF_UTIL.h \
TC_BT/inc/TC_BT_HF_SCO.h \
TC_BT/inc/BtHfCmd.h \
BTAPP/inc/BtApp_HF.h \
BTAPP/inc/BtHandFree.h \
BTAPP/inc/BtApp_HfEvt.h\
Codec/HFRing/hf_ring1_8khz_mono.h \
Codec/HFRing/hf_ring2_8khz_mono.h \
Codec/HFRing/hf_ring3_8khz_mono.h \
Codec/HFRing/hfring.h \
Codec/HFRing/hfringtype.h \
TC_BT/inc/TC_BT_A2DP_CMD.h \
TC_BT/inc/TC_BT_AVRCP_CMD.h \
BTAPP/inc/BtApp_Av.h \
TC_BT/inc/TC_BT_A2DP_EVT.h \
TC_BT/inc/TC_BT_AVRCP_EVT.h \
BTAPP/inc/BtA2dpEvent.h \
BTAPP/inc/BtAvRcpEvent.h \
BTAPP/inc/BtHfEvent.h \
BTAPP/inc/TcBtEvt.h \
BTAPP/inc/TcBtHFEvt.h \
BTAPP/inc/TcBtHFTypes.h \
TcBtPhone.h \
TcBtMusic.h\
TcBtPhoneConvertor.h \
BlueToothMidwareDBusRegistant.h \
TcBtMusicConvertor.h \
VolumeManagerData.h \
VolumeManager.h
INCLUDEPATH += ./BTAPP/inc
INCLUDEPATH += ./TC_BT/inc
INCLUDEPATH += ./TC_BT_SUB
INCLUDEPATH += ./TC_BT_DBUS
INCLUDEPATH += ./Codec/AAC/include
INCLUDEPATH += ./Codec/AEC
INCLUDEPATH += ./Codec/AEC/include
INCLUDEPATH += ./Codec/HFRing
LIBS += -L$$PWD/LIB/ -lTcBt
LIBS += -L$$PWD/Codec/HFRing -lhfring
LIBS += -L$$PWD/Codec/AAC/lib/ -lTCC_ARMv7_AACDEC_LINUX_V3.21.09
LIBS += -L$$PWD/Codec/AAC/lib/ -lTCCxxxx_LATMDMX_LINUX_V2.00.03
LIBS += -lasound -lpthread -lrt -ldbus-1 -ltcutils -lglib-2.0
#LIBS += -L$$PWD/../../telechips_sdk/sysroots/cortexa7-vfp-neon-telechips-linux-gnueabi/usr/lib -ltcutils
#INCLUDEPATH += $$PWD/../../telechips_sdk/sysroots/cortexa7-vfp-neon-telechips-linux-gnueabi/usr/include
LIBS += -L$$PWD/Codec/AEC/ -laeclessaudio
DEFINES += BT_AEC_INCLUDE
SOURCES += Codec/AEC/source/aecif_aecless.c
HEADERS += Codec/AEC/include/aecif_aecless.h
HEADERS += Codec/AAC/include/common.h \
Codec/AAC/include/adec.h \
Codec/AAC/include/tcc_latm_dmx.h
DEFINES += USE_BTBR
target.path = /usr/bin
INSTALLS += target