bug in displaying contacts in contactlist
[dyskinesia.git] / dyskinesia.pro
blobcf0f0825fd0cde85828f94921b4d4b80306fe87d
1 ###############################################################################
2 ## WARNING!
3 ## remove `CONFIG += use_leveldb` to use JSON history format!
4 ###############################################################################
6 TEMPLATE = app
7 TARGET = dyskinesia
9 QT -= xml
10 QT += gui network
12 CONFIG += packdata
13 #CONFIG += json_history
15 #CONFIG += use_hamsterdb
16 #CONFIG += use_leveldb
17 CONFIG += use_bhf
19 !win32 {
20 CONFIG += otr
21 LIBS += -lX11
25 CONFIG += usessl
27 CONFIG += qt warn_on
28 CONFIG += debug_and_release
29 #CONFIG += debug
30 #CONFIG += release
32 #QMAKE_CFLAGS_RELEASE ~= s/\-O./-Os
33 #QMAKE_CXXFLAGS_RELEASE ~= s/\-O./-Os
35 ##QMAKE_CFLAGS_RELEASE ~= s/\-O./-O2
36 ##QMAKE_CXXFLAGS_RELEASE ~= s/\-O./-O2
38 QMAKE_CFLAGS_RELEASE += -march=native
39 QMAKE_CXXFLAGS_RELEASE += -march=native
40 QMAKE_CFLAGS_RELEASE += -mtune=native
41 QMAKE_CXXFLAGS_RELEASE += -mtune=native
43 QMAKE_LFLAGS_RELEASE += -s
46 DESTDIR = .
47 OBJECTS_DIR = _build/obj
48 UI_DIR = _build/uic
49 MOC_DIR = _build/moc
50 RCC_DIR = _build/rcc
53 !CONFIG(use_hamsterdb) {
54 !CONFIG(use_leveldb) {
55 !CONFIG(use_bhf) {
56 CONFIG += json_history
61 CONFIG(otr) {
62 #LIBS += -lotr
63 DEFINES += USE_OTR
64 CONFIG += link_pkgconfig
65 PKGCONFIG += libotr
68 CONFIG(use_hamsterdb) {
69 DEFINES += USE_HAMSTER_DB
70 LIBS += $$PWD/hamsterdb/lib/libhamsterdb.a
71 INCLUDEPATH += $$PWD/hamsterdb
74 CONFIG(use_leveldb) {
75 DEFINES += USE_LEVEL_DB LEVELDB_PLATFORM_POSIX OS_LINUX
76 LIBS += $$PWD/leveldb/lib/libleveldb.a
77 INCLUDEPATH += $$PWD/leveldb
81 CONFIG(usessl) {
82 DEFINES += USE_SSL
86 CONFIG(staticpicplugs) {
87 QTPLUGIN += qgif4 qjpeg4 qmng4 qico4 qsvg4 qtiff4
88 DEFINES += USE_STATIC_PICPLUGS
89 DEFINES += QT_STATICPLUGIN
90 LIBS += -Lc:/Qtsdk/qt/plugins/imageformats
94 include(src/psycproto/psycproto.pri)
96 #include(src/test/parser/test.pri)
97 #include(src/test/socket/test.pri)
99 include(src/main.pri)
101 CONFIG(packdata) {
102 RESOURCES += $$PWD/data.qrc
105 RESOURCES += $$PWD/icons.qrc
107 win32 {
108 RC_FILE = winrc.rc