2009-05-16 18:04:21 +00:00
|
|
|
# #####################################################################
|
|
|
|
# Automatically generated by qmake (2.01a) ?? ????. 2 18:38:07 2008
|
|
|
|
# #####################################################################
|
|
|
|
TEMPLATE = app
|
|
|
|
TARGET = goldendict
|
2010-12-04 10:09:20 +00:00
|
|
|
VERSION = 1.0.1+git
|
2009-05-16 18:04:21 +00:00
|
|
|
|
2010-07-02 17:07:05 +00:00
|
|
|
# Generate version file. We do this here and in a build rule described later.
|
|
|
|
# The build rule is required since qmake isn't run each time the project is
|
|
|
|
# rebuilt; and doing it here is required too since any other way the RCC
|
|
|
|
# compiler would complain if version.txt wouldn't exist (fresh checkouts).
|
|
|
|
|
|
|
|
system(git describe --tags --always --dirty > version.txt): hasGit=1
|
|
|
|
|
|
|
|
isEmpty( hasGit ) {
|
|
|
|
message(Failed to precisely describe the version via Git -- using the default version string)
|
|
|
|
system(echo $$VERSION > version.txt)
|
|
|
|
}
|
|
|
|
|
2009-05-16 18:04:21 +00:00
|
|
|
# DEPENDPATH += . generators
|
|
|
|
INCLUDEPATH += .
|
|
|
|
QT += webkit
|
|
|
|
QT += xml
|
|
|
|
QT += network
|
2010-01-02 18:16:22 +00:00
|
|
|
QT += phonon
|
2009-05-16 18:04:21 +00:00
|
|
|
CONFIG += exceptions \
|
|
|
|
rtti \
|
|
|
|
stl
|
|
|
|
OBJECTS_DIR = build
|
|
|
|
UI_DIR = build
|
|
|
|
MOC_DIR = build
|
|
|
|
RCC_DIR = build
|
2010-01-22 22:50:28 +00:00
|
|
|
LIBS += \
|
|
|
|
-lz \
|
2010-01-17 13:04:55 +00:00
|
|
|
|
2009-05-16 18:04:21 +00:00
|
|
|
win32 {
|
|
|
|
LIBS += -liconv \
|
|
|
|
-lwsock32 \
|
|
|
|
-lwinmm \
|
|
|
|
-lpsapi
|
2010-01-22 22:50:28 +00:00
|
|
|
LIBS += -lvorbisfile \
|
|
|
|
-lvorbis \
|
|
|
|
-logg \
|
|
|
|
-lhunspell-1.2
|
2009-05-16 18:04:21 +00:00
|
|
|
RC_FILE = goldendict.rc
|
|
|
|
INCLUDEPATH += winlibs/include
|
|
|
|
LIBS += -Lwinlibs/lib
|
|
|
|
}
|
2010-01-22 22:50:28 +00:00
|
|
|
unix {
|
2010-05-29 11:27:10 +00:00
|
|
|
|
|
|
|
# This is to keep symbols for backtraces
|
|
|
|
QMAKE_CXXFLAGS += -rdynamic
|
|
|
|
QMAKE_LFLAGS += -rdynamic
|
|
|
|
|
2010-01-22 22:50:28 +00:00
|
|
|
CONFIG += link_pkgconfig
|
|
|
|
PKGCONFIG += vorbisfile \
|
|
|
|
vorbis \
|
|
|
|
ogg \
|
|
|
|
hunspell
|
2010-01-17 13:04:55 +00:00
|
|
|
LIBS += -lX11 \
|
|
|
|
-lXtst
|
2009-05-16 18:04:21 +00:00
|
|
|
PREFIX = $$(PREFIX)
|
|
|
|
isEmpty( PREFIX ):PREFIX = /usr/local
|
|
|
|
DEFINES += PROGRAM_DATA_DIR=\\\"$$PREFIX/share/apps/goldendict/\\\"
|
|
|
|
target.path = $$PREFIX/bin/
|
|
|
|
locale.path = $$PREFIX/share/apps/goldendict/locale/
|
|
|
|
locale.files = locale/*.qm
|
|
|
|
INSTALLS += target \
|
|
|
|
locale
|
2009-11-10 18:52:50 +00:00
|
|
|
icons.path = $$PREFIX/share/pixmaps
|
2009-05-16 18:04:21 +00:00
|
|
|
icons.files = redist/icons/*.*
|
|
|
|
INSTALLS += icons
|
2009-11-10 18:52:50 +00:00
|
|
|
icons2.path = $$PREFIX/share/app-install/icons
|
2009-05-16 18:04:21 +00:00
|
|
|
icons2.files = redist/icons/*.*
|
|
|
|
INSTALLS += icons2
|
2009-11-10 18:52:50 +00:00
|
|
|
desktops.path = $$PREFIX/share/applications
|
2009-05-16 18:04:21 +00:00
|
|
|
desktops.files = redist/*.desktop
|
|
|
|
INSTALLS += desktops
|
2009-11-10 18:52:50 +00:00
|
|
|
desktops2.path = $$PREFIX/share/app-install/desktop
|
2009-05-16 18:04:21 +00:00
|
|
|
desktops2.files = redist/*.desktop
|
|
|
|
INSTALLS += desktops2
|
|
|
|
}
|
|
|
|
DEFINES += PROGRAM_VERSION=\\\"$$VERSION\\\"
|
|
|
|
|
|
|
|
# Input
|
|
|
|
HEADERS += folding.hh \
|
|
|
|
inc_case_folding.hh \
|
|
|
|
inc_diacritic_folding.hh \
|
|
|
|
mainwindow.hh \
|
|
|
|
sptr.hh \
|
|
|
|
dictionary.hh \
|
|
|
|
ex.hh \
|
|
|
|
config.hh \
|
|
|
|
sources.hh \
|
|
|
|
utf8.hh \
|
|
|
|
file.hh \
|
|
|
|
bgl_babylon.hh \
|
|
|
|
bgl.hh \
|
|
|
|
initializing.hh \
|
|
|
|
article_netmgr.hh \
|
|
|
|
dictzip.h \
|
|
|
|
btreeidx.hh \
|
|
|
|
stardict.hh \
|
|
|
|
chunkedstorage.hh \
|
|
|
|
xdxf2html.hh \
|
|
|
|
iconv.hh \
|
|
|
|
lsa.hh \
|
|
|
|
htmlescape.hh \
|
|
|
|
dsl.hh \
|
|
|
|
dsl_details.hh \
|
|
|
|
filetype.hh \
|
|
|
|
fsencoding.hh \
|
|
|
|
groups.hh \
|
|
|
|
groups_widgets.hh \
|
|
|
|
instances.hh \
|
|
|
|
article_maker.hh \
|
|
|
|
scanpopup.hh \
|
|
|
|
articleview.hh \
|
|
|
|
externalviewer.hh \
|
|
|
|
wordfinder.hh \
|
|
|
|
groupcombobox.hh \
|
|
|
|
keyboardstate.hh \
|
|
|
|
mouseover.hh \
|
|
|
|
preferences.hh \
|
|
|
|
mutex.hh \
|
|
|
|
mediawiki.hh \
|
|
|
|
sounddir.hh \
|
|
|
|
hunspell.hh \
|
|
|
|
dictdfiles.hh \
|
|
|
|
audiolink.hh \
|
|
|
|
wstring.hh \
|
|
|
|
wstring_qt.hh \
|
|
|
|
processwrapper.hh \
|
|
|
|
hotkeywrapper.hh \
|
|
|
|
searchpanewidget.hh \
|
|
|
|
hotkeyedit.hh \
|
|
|
|
langcoder.hh \
|
|
|
|
editdictionaries.hh \
|
|
|
|
loaddictionaries.hh \
|
|
|
|
transliteration.hh \
|
|
|
|
romaji.hh \
|
|
|
|
russiantranslit.hh \
|
|
|
|
german.hh \
|
2009-05-18 18:01:50 +00:00
|
|
|
website.hh \
|
2009-05-24 16:38:08 +00:00
|
|
|
orderandprops.hh \
|
2009-09-21 17:50:03 +00:00
|
|
|
language.hh \
|
2009-09-29 13:01:05 +00:00
|
|
|
dictionarybar.hh \
|
2009-10-21 19:37:07 +00:00
|
|
|
broken_xrecord.hh \
|
|
|
|
history.hh \
|
2009-10-22 11:38:11 +00:00
|
|
|
atomic_rename.hh \
|
2009-10-25 22:49:24 +00:00
|
|
|
articlewebview.hh \
|
|
|
|
zipfile.hh \
|
2010-01-17 13:04:55 +00:00
|
|
|
indexedzip.hh \
|
2010-05-29 09:22:08 +00:00
|
|
|
termination.hh \
|
2010-05-29 11:33:04 +00:00
|
|
|
greektranslit.hh \
|
2010-06-12 20:16:35 +00:00
|
|
|
webmultimediadownload.hh \
|
|
|
|
forvo.hh \
|
2010-11-14 16:28:50 +00:00
|
|
|
country.hh \
|
2011-05-29 05:08:37 +00:00
|
|
|
about.hh \
|
|
|
|
programs.hh
|
2009-05-16 18:04:21 +00:00
|
|
|
FORMS += groups.ui \
|
|
|
|
dictgroupwidget.ui \
|
|
|
|
mainwindow.ui \
|
|
|
|
sources.ui \
|
|
|
|
initializing.ui \
|
|
|
|
groupselectorwidget.ui \
|
|
|
|
scanpopup.ui \
|
|
|
|
articleview.ui \
|
|
|
|
preferences.ui \
|
|
|
|
about.ui \
|
2009-05-18 18:01:50 +00:00
|
|
|
editdictionaries.ui \
|
|
|
|
orderandprops.ui
|
2009-05-16 18:04:21 +00:00
|
|
|
SOURCES += folding.cc \
|
|
|
|
main.cc \
|
|
|
|
dictionary.cc \
|
|
|
|
config.cc \
|
|
|
|
sources.cc \
|
|
|
|
mainwindow.cc \
|
|
|
|
utf8.cc \
|
|
|
|
file.cc \
|
|
|
|
bgl_babylon.cc \
|
|
|
|
bgl.cc \
|
|
|
|
initializing.cc \
|
|
|
|
article_netmgr.cc \
|
|
|
|
dictzip.c \
|
|
|
|
btreeidx.cc \
|
|
|
|
stardict.cc \
|
|
|
|
chunkedstorage.cc \
|
|
|
|
xdxf2html.cc \
|
|
|
|
iconv.cc \
|
|
|
|
lsa.cc \
|
|
|
|
htmlescape.cc \
|
|
|
|
dsl.cc \
|
|
|
|
dsl_details.cc \
|
|
|
|
filetype.cc \
|
|
|
|
fsencoding.cc \
|
|
|
|
groups.cc \
|
|
|
|
groups_widgets.cc \
|
|
|
|
instances.cc \
|
|
|
|
article_maker.cc \
|
|
|
|
scanpopup.cc \
|
|
|
|
articleview.cc \
|
|
|
|
externalviewer.cc \
|
|
|
|
wordfinder.cc \
|
|
|
|
groupcombobox.cc \
|
|
|
|
keyboardstate.cc \
|
|
|
|
mouseover.cc \
|
|
|
|
preferences.cc \
|
|
|
|
mutex.cc \
|
|
|
|
mediawiki.cc \
|
|
|
|
sounddir.cc \
|
|
|
|
hunspell.cc \
|
|
|
|
dictdfiles.cc \
|
|
|
|
audiolink.cc \
|
|
|
|
wstring.cc \
|
|
|
|
wstring_qt.cc \
|
|
|
|
processwrapper.cc \
|
|
|
|
hotkeywrapper.cc \
|
|
|
|
hotkeyedit.cc \
|
|
|
|
langcoder.cc \
|
|
|
|
editdictionaries.cc \
|
|
|
|
loaddictionaries.cc \
|
|
|
|
transliteration.cc \
|
|
|
|
romaji.cc \
|
|
|
|
russiantranslit.cc \
|
|
|
|
german.cc \
|
2009-05-18 18:01:50 +00:00
|
|
|
website.cc \
|
2009-05-24 16:38:08 +00:00
|
|
|
orderandprops.cc \
|
2009-09-21 17:50:03 +00:00
|
|
|
language.cc \
|
2009-09-29 13:01:05 +00:00
|
|
|
dictionarybar.cc \
|
2009-10-21 19:37:07 +00:00
|
|
|
broken_xrecord.cc \
|
|
|
|
history.cc \
|
2009-10-22 11:38:11 +00:00
|
|
|
atomic_rename.cc \
|
2009-10-25 22:49:24 +00:00
|
|
|
articlewebview.cc \
|
|
|
|
zipfile.cc \
|
2010-01-17 13:04:55 +00:00
|
|
|
indexedzip.cc \
|
2010-05-29 09:22:08 +00:00
|
|
|
termination.cc \
|
2010-05-29 11:33:04 +00:00
|
|
|
greektranslit.cc \
|
2010-06-12 20:16:35 +00:00
|
|
|
webmultimediadownload.cc \
|
|
|
|
forvo.cc \
|
2010-11-14 16:28:50 +00:00
|
|
|
country.cc \
|
2011-05-29 05:08:37 +00:00
|
|
|
about.cc \
|
|
|
|
programs.cc
|
2009-05-16 18:04:21 +00:00
|
|
|
win32 {
|
|
|
|
SOURCES += mouseover_win32/ThTypes.c
|
|
|
|
HEADERS += mouseover_win32/ThTypes.h
|
|
|
|
}
|
|
|
|
RESOURCES += resources.qrc \
|
|
|
|
flags.qrc
|
2009-09-21 17:50:03 +00:00
|
|
|
TRANSLATIONS += locale/ru_RU.ts \
|
|
|
|
locale/zh_CN.ts \
|
|
|
|
locale/cs_CZ.ts \
|
2009-09-21 19:57:55 +00:00
|
|
|
locale/de_DE.ts \
|
2009-10-21 19:37:07 +00:00
|
|
|
locale/el_GR.ts \
|
2010-02-13 21:00:27 +00:00
|
|
|
locale/bg_BG.ts \
|
|
|
|
locale/ar_SA.ts \
|
2010-06-21 21:11:37 +00:00
|
|
|
locale/lt_LT.ts \
|
2010-08-20 13:56:10 +00:00
|
|
|
locale/uk_UA.ts \
|
2010-11-11 17:22:48 +00:00
|
|
|
locale/vi_VN.ts \
|
2011-01-05 06:35:26 +00:00
|
|
|
locale/it_IT.ts \
|
2011-03-04 06:56:26 +00:00
|
|
|
locale/pl_PL.ts \
|
2011-03-04 07:14:48 +00:00
|
|
|
locale/ja_JP.ts \
|
2011-03-09 03:36:10 +00:00
|
|
|
locale/zh_TW.ts \
|
2011-03-20 19:36:11 +00:00
|
|
|
locale/sq_AL.ts \
|
2011-05-28 22:22:12 +00:00
|
|
|
locale/pt_BR.ts \
|
|
|
|
locale/es_AR.ts
|
2009-05-16 18:04:21 +00:00
|
|
|
|
2010-07-02 17:07:05 +00:00
|
|
|
# Build version file
|
2010-07-03 11:01:01 +00:00
|
|
|
!isEmpty( hasGit ) {
|
|
|
|
QMAKE_EXTRA_TARGETS += revtarget
|
|
|
|
PRE_TARGETDEPS += version.txt
|
|
|
|
revtarget.target = version.txt
|
|
|
|
revtarget.commands = git describe --tags --always --dirty > $$revtarget.target
|
|
|
|
revtarget.depends = $$SOURCES $$HEADERS $$FORMS
|
|
|
|
}
|
2010-07-02 17:07:05 +00:00
|
|
|
|
2009-05-16 18:04:21 +00:00
|
|
|
# This makes qmake generate translations
|
2010-01-17 13:04:55 +00:00
|
|
|
win32:# Windows doesn't seem to have *-qt4 symlinks
|
|
|
|
isEmpty(QMAKE_LRELEASE):QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease
|
2009-11-10 18:52:50 +00:00
|
|
|
isEmpty(QMAKE_LRELEASE):QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease-qt4
|
2009-07-29 16:39:27 +00:00
|
|
|
updateqm.input = TRANSLATIONS
|
|
|
|
updateqm.output = ${QMAKE_FILE_PATH}/${QMAKE_FILE_BASE}.qm
|
2009-09-21 17:50:03 +00:00
|
|
|
updateqm.commands = $$QMAKE_LRELEASE \
|
|
|
|
${QMAKE_FILE_IN} \
|
|
|
|
-qm \
|
|
|
|
${QMAKE_FILE_PATH}/${QMAKE_FILE_BASE}.qm
|
2009-07-29 16:39:27 +00:00
|
|
|
updateqm.CONFIG += no_link
|
|
|
|
QMAKE_EXTRA_COMPILERS += updateqm
|
2009-05-16 18:04:21 +00:00
|
|
|
TS_OUT = $$TRANSLATIONS
|
2009-07-29 16:39:27 +00:00
|
|
|
TS_OUT ~= s/.ts/.qm/g
|
2009-05-16 18:04:21 +00:00
|
|
|
PRE_TARGETDEPS += $$TS_OUT
|
2010-11-20 13:43:55 +00:00
|
|
|
|
|
|
|
include( qtsingleapplication/src/qtsingleapplication.pri )
|