initial Bluetooth Device Model addition
[profile/ivi/bluetooth-qt.git] / bluetooth-qt.pro
1 !exists(bluemanager.h):system(qdbusxml2cpp -p bluemanager.h:bluemanager.cpp manager.xml)
2 !exists(blueadapter.h):system(qdbusxml2cpp -p blueadapter.h:blueadapter.cpp adapter.xml)
3 !exists(bluedevice.h):system(qdbusxml2cpp -p bluedevice.h:bluedevice.cpp -i devicetypes.h device.xml)
4 !exists(audiosink.h):system(qdbusxml2cpp -p audiosink.h:audiosink.cpp audiosink.xml)
5 !exists(audiosource.h):system(qdbusxml2cpp -p audiosource.h:audiosource.cpp audiosrc.xml)
6 !exists(headset.h):system(qdbusxml2cpp -p headset.h:headset.cpp headset.xml)
7 include(obex/obex.pri)
8
9 TEMPLATE = lib
10 TARGET = bluetooth-qt
11 QT += dbus
12 CONFIG += link_pkgconfig \
13         debug
14 OTHER_FILES += McpBluetooth.conf \
15         manager.xml \
16         device.xml \
17         audiosrc.xml \
18         audiosink.xml \
19         adapter.xml \
20         headset.xml
21 HEADERS += agentadaptor.h \
22         bluemanager.h \
23         bluedevice.h \
24         blueadapter.h \
25         audiosource.h \
26         audiosink.h \
27         headset.h \
28         btprofiles.h \
29         nearbydevicesmodel.h \
30         bluetoothbaseagent.h \
31         asyncagent.h \
32         devicetypes.h \
33     bluetoothdevice.h \
34     bluetoothdevicemodel.h
35 SOURCES += agentadaptor.cpp \
36         bluemanager.cpp \
37         bluedevice.cpp \
38         blueadapter.cpp \
39         audiosource.cpp \
40         audiosink.cpp \
41         headset.cpp \
42         nearbydevicesmodel.cpp \
43         bluetoothbaseagent.cpp \
44         asyncagent.cpp \
45     bluetoothdevice.cpp \
46     bluetoothdevicemodel.cpp
47
48 target.path = $$INSTALL_ROOT/usr/lib
49 headers.path = $$INSTALL_ROOT/usr/include/bluetooth-qt/
50 headers.files = $$HEADERS
51 INSTALLS += target \
52         headers
53
54 CONFIG += create_pc create_prl
55 QMAKE_PKGCONFIG_DESCRIPTION = Qt Bluetooth Library
56 QMAKE_PKGCONFIG_INCDIR = $$headers.path
57 pkgconfig.path = $$INSTALL_ROOT/usr/lib/pkgconfig
58 pkgconfig.files = bluetooth-qt.pc
59
60 INSTALLS += pkgconfig