removed QT_NO_CAST_FROM_ASCII for compilation to go thru
[accounts-sso:accounts-qt.git] / Accounts / Accounts.pro
1
2 include( ../common-project-config.pri )
3 include( ../common-vars.pri )
4
5 TEMPLATE = lib
6
7 # Input
8 HEADERS += accountscommon.h \
9     Manager manager.h \
10     Account account.h \
11     Error error.h \
12     Provider provider.h \
13     Service service.h \
14     AccountService account-service.h \
15     ServiceType service-type.h
16
17 SOURCES += manager.cpp \
18     account.cpp \
19     error.cpp \
20     provider.cpp \
21     service.cpp \
22     account-service.cpp \
23     service-type.cpp
24
25 CONFIG += link_pkgconfig
26
27 #DEFINES += QT_NO_CAST_TO_ASCII QT_NO_CAST_FROM_ASCII
28 QT += core xml
29 QT -= gui
30 TARGET = accounts-qt
31 PKGCONFIG += \
32         glib-2.0 \
33         gobject-2.0 \
34         libaccounts-glib
35
36 QMAKE_CXXFLAGS += \
37     -fno-exceptions \
38     -fvisibility=hidden
39
40 headers.files = $$HEADERS
41
42 include( ../common-installs-config.pri )
43
44 # Temporary: install header files in /usr/include/accounts-qt too,
45 # while people are not #including <Accounts/*ClassName*>
46 tmp_headers.files = \
47     accountscommon.h \
48     manager.h \
49     account.h \
50     provider.h \
51     service.h \
52     account-service.h
53 tmp_headers.path = $${INSTALL_PREFIX}/include/$${TARGET}
54 INSTALLS += tmp_headers
55
56 # configuration feature
57 feature.files = accounts.prf
58 feature.path = $$[QT_INSTALL_DATA]/mkspecs/features
59 INSTALLS += feature
60
61 pkgconfig.files = accounts-qt.pc
62 pkgconfig.path = $${INSTALL_PREFIX}/lib/pkgconfig
63 INSTALLS += pkgconfig