ae2e89db3c66d9225cd8cacce553b66d60f00482
[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(audio.h):system(qdbusxml2cpp -p audio.h:audio.cpp audio.xml)
5 !exists(audiosink.h):system(qdbusxml2cpp -p audiosink.h:audiosink.cpp audiosink.xml)
6 !exists(audiosource.h):system(qdbusxml2cpp -p audiosource.h:audiosource.cpp audiosrc.xml)
7 !exists(headset.h):system(qdbusxml2cpp -p headset.h:headset.cpp headset.xml)
8 include(obex/obex.pri)
9
10 VERSION+= 0.0.4
11
12 TEMPLATE = lib
13 TARGET = bluetooth-qt
14 QT += dbus
15 CONFIG += link_pkgconfig \
16         debug
17 OTHER_FILES += bluetooth-qt.conf \
18         manager.xml \
19         device.xml \
20         audiosrc.xml \
21         audiosink.xml \
22         adapter.xml \
23         headset.xml
24 HEADERS += agentadaptor.h \
25         bluemanager.h \
26         bluedevice.h \
27         blueadapter.h \
28         audiosource.h \
29         audiosink.h \
30         headset.h \
31         btprofiles.h \
32         nearbydevicesmodel.h \
33         bluetoothbaseagent.h \
34         asyncagent.h \
35         devicetypes.h \
36     bluetoothdevice.h \
37         bluetoothdevicemodel.h \
38         audio.h
39 SOURCES += agentadaptor.cpp \
40         bluemanager.cpp \
41         bluedevice.cpp \
42         blueadapter.cpp \
43         audiosource.cpp \
44         audiosink.cpp \
45         headset.cpp \
46         nearbydevicesmodel.cpp \
47         bluetoothbaseagent.cpp \
48         asyncagent.cpp \
49     bluetoothdevice.cpp \
50         bluetoothdevicemodel.cpp \
51         audio.cpp
52
53 target.path = $$INSTALL_ROOT/usr/lib
54 headers.path = $$INSTALL_ROOT/usr/include/bluetooth-qt/
55 headers.files = $$HEADERS
56 INSTALLS += target \
57         headers
58
59 CONFIG += create_pc create_prl
60 QMAKE_PKGCONFIG_DESCRIPTION = Qt Bluetooth Library
61 QMAKE_PKGCONFIG_INCDIR = $$headers.path
62 pkgconfig.path = $$INSTALL_ROOT/usr/lib/pkgconfig
63 pkgconfig.files = bluetooth-qt.pc
64
65 INSTALLS += pkgconfig
66
67 dbusfiles.path = $$INSTALL_ROOT/etc/dbus-1/system.d
68 dbusfiles.files = bluetooth-qt.conf
69
70 INSTALLS += dbusfiles