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