otr: removed TLV parsing code (i still has to fix SMP queries in callback)
[dyskinesia.git] / dyskinesia.pro
blobc45f5242cb7ea9486de9d9c130914a4b065993fa
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_CFLAGS_RELEASE += -fwrapv
44 QMAKE_CXXFLAGS_RELEASE += -fwrapv
46 QMAKE_LFLAGS_RELEASE += -s
49 DESTDIR = .
50 OBJECTS_DIR = _build/obj
51 UI_DIR = _build/uic
52 MOC_DIR = _build/moc
53 RCC_DIR = _build/rcc
56 !CONFIG(use_hamsterdb) {
57 !CONFIG(use_leveldb) {
58 !CONFIG(use_bhf) {
59 CONFIG += json_history
64 CONFIG(otr) {
65 #LIBS += -lotr
66 DEFINES += USE_OTR
67 CONFIG += link_pkgconfig
68 PKGCONFIG += libotr
71 CONFIG(use_hamsterdb) {
72 DEFINES += USE_HAMSTER_DB
73 LIBS += $$PWD/hamsterdb/lib/libhamsterdb.a
74 INCLUDEPATH += $$PWD/hamsterdb
77 CONFIG(use_leveldb) {
78 DEFINES += USE_LEVEL_DB LEVELDB_PLATFORM_POSIX OS_LINUX
79 LIBS += $$PWD/leveldb/lib/libleveldb.a
80 INCLUDEPATH += $$PWD/leveldb
84 CONFIG(usessl) {
85 DEFINES += USE_SSL
89 CONFIG(staticpicplugs) {
90 QTPLUGIN += qgif4 qjpeg4 qmng4 qico4 qsvg4 qtiff4
91 DEFINES += USE_STATIC_PICPLUGS
92 DEFINES += QT_STATICPLUGIN
93 LIBS += -Lc:/Qtsdk/qt/plugins/imageformats
97 include(src/psycproto/psycproto.pri)
99 #include(src/test/parser/test.pri)
100 #include(src/test/socket/test.pri)
102 include(src/main.pri)
104 CONFIG(packdata) {
105 RESOURCES += $$PWD/data.qrc
108 RESOURCES += $$PWD/icons.qrc
110 win32 {
111 RC_FILE = winrc.rc