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_LFLAGS_RELEASE
+= -s
47 OBJECTS_DIR
= _build
/obj
53 !CONFIG(use_hamsterdb
) {
54 !CONFIG(use_leveldb
) {
56 CONFIG
+= json_history
64 CONFIG
+= link_pkgconfig
68 CONFIG(use_hamsterdb
) {
69 DEFINES
+= USE_HAMSTER_DB
70 LIBS
+= $$PWD
/hamsterdb
/lib
/libhamsterdb
.a
71 INCLUDEPATH
+= $$PWD
/hamsterdb
75 DEFINES
+= USE_LEVEL_DB LEVELDB_PLATFORM_POSIX OS_LINUX
76 LIBS
+= $$PWD
/leveldb
/lib
/libleveldb
.a
77 INCLUDEPATH
+= $$PWD
/leveldb
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)
102 RESOURCES
+= $$PWD
/data
.qrc
105 RESOURCES
+= $$PWD
/icons
.qrc