1 ###############################################################################
3 ## remove `CONFIG += use_leveldb` to use JSON history format!
4 ###############################################################################
13 #CONFIG += json_history
15 #CONFIG += use_hamsterdb
16 #CONFIG += use_leveldb
28 CONFIG
+= debug_and_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
50 OBJECTS_DIR
= _build
/obj
56 !CONFIG(use_hamsterdb
) {
57 !CONFIG(use_leveldb
) {
59 CONFIG
+= json_history
67 CONFIG
+= link_pkgconfig
71 CONFIG(use_hamsterdb
) {
72 DEFINES
+= USE_HAMSTER_DB
73 LIBS
+= $$PWD
/hamsterdb
/lib
/libhamsterdb
.a
74 INCLUDEPATH
+= $$PWD
/hamsterdb
78 DEFINES
+= USE_LEVEL_DB LEVELDB_PLATFORM_POSIX OS_LINUX
79 LIBS
+= $$PWD
/leveldb
/lib
/libleveldb
.a
80 INCLUDEPATH
+= $$PWD
/leveldb
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
)
105 RESOURCES
+= $$PWD
/data
.qrc
108 RESOURCES
+= $$PWD
/icons
.qrc