2012-02-23 19:18:08 +01:00
|
|
|
DESTDIR = $$PWD/../bin
|
|
|
|
OBJECTS_DIR = $$PWD/../build
|
|
|
|
MOC_DIR = $$PWD/../build
|
|
|
|
RCC_DIR = $$PWD/../build
|
|
|
|
UI_DIR = $$PWD/../build
|
2012-02-24 21:03:44 +01:00
|
|
|
unix: VERSION = 1.1.8
|
2012-02-18 14:47:38 +01:00
|
|
|
|
|
|
|
# Please read BUILD information #
|
|
|
|
#DEFINES += NO_SYSTEM_DATAPATH
|
|
|
|
#DEFINES += USE_WEBGL
|
|
|
|
#DEFINES += KDE
|
|
|
|
#DEFINES += PORTABLE_BUILD
|
|
|
|
win32 {
|
|
|
|
DEFINES += W7API
|
|
|
|
LIBS += User32.lib Ole32.lib Shell32.lib ShlWapi.lib Gdi32.lib ComCtl32.lib
|
|
|
|
}
|
|
|
|
|
|
|
|
DEFINES += QT_NO_URL_CAST_FROM_STRING
|
|
|
|
|
|
|
|
##It won't compile on windows with this define. Some bug in qtsingleapp / qvector template
|
|
|
|
!win32: !CONFIG(debug, debug|release): DEFINES += QT_NO_DEBUG_OUTPUT
|
|
|
|
|
|
|
|
d_no_system_datapath = $$(NO_SYSTEM_DATAPATH)
|
|
|
|
d_use_webgl = $$(USE_WEBGL)
|
|
|
|
d_w7api = $$(W7API)
|
|
|
|
d_kde = $$(KDE)
|
|
|
|
d_portable = $$(PORTABLE_BUILD)
|
|
|
|
|
|
|
|
equals(d_no_system_datapath, "true") { DEFINES += NO_SYSTEM_DATAPATH }
|
|
|
|
equals(d_use_webgl, "true") { DEFINES += USE_WEBGL }
|
|
|
|
equals(d_w7api, "true") { DEFINES += W7API }
|
|
|
|
equals(d_kde, "true") { DEFINES += KDE }
|
|
|
|
equals(d_portable, "true") { DEFINES += PORTABLE_BUILD }
|
2012-02-19 16:01:51 +01:00
|
|
|
|
|
|
|
!mac:unix {
|
|
|
|
d_prefix = $$(QUPZILLA_PREFIX)
|
2012-02-20 22:34:09 +01:00
|
|
|
binary_folder = /usr/bin
|
|
|
|
library_folder = /usr/lib
|
2012-02-19 16:01:51 +01:00
|
|
|
data_folder = /usr/share/qupzilla
|
2012-02-20 22:34:09 +01:00
|
|
|
launcher_folder = /usr/share/applications
|
|
|
|
icon_folder = /usr/share/pixmaps
|
|
|
|
hicolor_folder = /usr/share/icons/hicolor
|
2012-02-19 16:01:51 +01:00
|
|
|
|
|
|
|
!equals(d_prefix, "") {
|
2012-02-20 22:34:09 +01:00
|
|
|
binary_folder = "$$d_prefix"bin
|
|
|
|
library_folder = "$$d_prefix"lib
|
2012-02-19 16:01:51 +01:00
|
|
|
data_folder = "$$d_prefix"share/qupzilla
|
2012-02-20 22:34:09 +01:00
|
|
|
launcher_folder = "$$d_prefix"share/applications
|
|
|
|
icon_folder = "$$d_prefix"share/pixmaps
|
|
|
|
hicolor_folder = "$$d_prefix"share/icons/hicolor
|
2012-02-19 16:01:51 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
DEFINES += USE_DATADIR=\\\"""$$data_folder/"\\\""
|
|
|
|
|
|
|
|
#Git revision
|
2012-02-23 22:07:05 +01:00
|
|
|
rev = $$system(cd ../ && sh $$PWD/../scripts/getrevision.sh)
|
2012-02-19 16:01:51 +01:00
|
|
|
!equals(rev, ""): DEFINES += GIT_REVISION=\\\"""$$rev"\\\""
|
|
|
|
}
|
2012-02-23 19:18:08 +01:00
|
|
|
|
|
|
|
isEmpty(QMAKE_LRELEASE) {
|
|
|
|
win32|os2:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]\\lrelease.exe
|
|
|
|
else:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease
|
|
|
|
unix {
|
|
|
|
!exists($$QMAKE_LRELEASE) { QMAKE_LRELEASE = lrelease-qt4 }
|
|
|
|
} else {
|
|
|
|
!exists($$QMAKE_LRELEASE) { QMAKE_LRELEASE = lrelease }
|
|
|
|
}
|
|
|
|
}
|