2009-05-16 18:04:21 +00:00
|
|
|
TEMPLATE = app
|
|
|
|
TARGET = goldendict
|
2013-06-06 13:31:45 +00:00
|
|
|
VERSION = 1.5.0+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
|
2013-05-25 12:07:49 +00:00
|
|
|
QT += svg
|
2014-06-23 15:11:15 +00:00
|
|
|
QT += sql
|
2009-05-16 18:04:21 +00:00
|
|
|
CONFIG += exceptions \
|
|
|
|
rtti \
|
2014-06-23 15:11:15 +00:00
|
|
|
stl \
|
|
|
|
help
|
2009-05-16 18:04:21 +00:00
|
|
|
OBJECTS_DIR = build
|
|
|
|
UI_DIR = build
|
|
|
|
MOC_DIR = build
|
|
|
|
RCC_DIR = build
|
2010-01-22 22:50:28 +00:00
|
|
|
LIBS += \
|
|
|
|
-lz \
|
2013-04-23 12:07:05 +00:00
|
|
|
-lbz2 \
|
|
|
|
-llzo2
|
2010-01-17 13:04:55 +00:00
|
|
|
|
2013-06-18 01:11:21 +00:00
|
|
|
!isEmpty(DISABLE_INTERNAL_PLAYER): DEFINES += DISABLE_INTERNAL_PLAYER
|
|
|
|
|
2013-04-24 14:52:04 +00:00
|
|
|
win32 {
|
2013-08-07 18:15:49 +00:00
|
|
|
TARGET = GoldenDict
|
|
|
|
|
|
|
|
win32-msvc* {
|
|
|
|
VERSION = 1.5.0 # More complicated things cause errors during compilation under MSVC++
|
2013-08-10 18:43:00 +00:00
|
|
|
DEFINES += __WIN32 _CRT_SECURE_NO_WARNINGS
|
2013-08-11 07:30:43 +00:00
|
|
|
contains(QMAKE_TARGET.arch, x86_64) {
|
|
|
|
DEFINES += NOMINMAX __WIN64
|
|
|
|
}
|
2016-04-07 21:45:27 +00:00
|
|
|
LIBS += -L$${PWD}/winlibs/lib/msvc
|
2013-08-07 18:15:49 +00:00
|
|
|
QMAKE_CXXFLAGS += /wd4290 # silence the warning C4290: C++ exception specification ignored
|
2016-04-07 21:45:27 +00:00
|
|
|
QMAKE_LFLAGS_RELEASE += /OPT:REF /OPT:ICF
|
2013-08-11 07:30:43 +00:00
|
|
|
# QMAKE_CXXFLAGS_RELEASE += /GL # slows down the linking significantly
|
2016-04-07 21:45:27 +00:00
|
|
|
LIBS += -lshell32 -luser32 -lsapi -lole32
|
|
|
|
Debug: LIBS+= -lhunspelld
|
|
|
|
Release: LIBS+= -lhunspell
|
2013-08-11 07:30:43 +00:00
|
|
|
HUNSPELL_LIB = hunspell
|
2013-08-07 18:15:49 +00:00
|
|
|
} else {
|
2013-08-09 10:24:33 +00:00
|
|
|
LIBS += -lhunspell-1.3.2
|
2013-09-17 14:11:27 +00:00
|
|
|
CONFIG(gcc48) {
|
2013-09-30 12:03:25 +00:00
|
|
|
x64 {
|
|
|
|
LIBS += -L$${PWD}/winlibs/lib64-48
|
|
|
|
QMAKE_CXXFLAGS += -m64
|
|
|
|
QMAKE_CFLAGS += -m64
|
|
|
|
} else {
|
|
|
|
LIBS += -L$${PWD}/winlibs/lib32-48
|
|
|
|
}
|
2013-09-17 14:11:27 +00:00
|
|
|
} else {
|
|
|
|
LIBS += -L$${PWD}/winlibs/lib
|
|
|
|
}
|
2013-08-07 18:15:49 +00:00
|
|
|
!x64:QMAKE_LFLAGS += -Wl,--large-address-aware
|
|
|
|
}
|
|
|
|
|
2009-05-16 18:04:21 +00:00
|
|
|
LIBS += -liconv \
|
|
|
|
-lwsock32 \
|
2011-07-09 19:26:30 +00:00
|
|
|
-lpsapi \
|
|
|
|
-lole32 \
|
|
|
|
-loleaut32 \
|
2013-06-04 16:33:44 +00:00
|
|
|
-ladvapi32 \
|
|
|
|
-lcomdlg32
|
2010-01-22 22:50:28 +00:00
|
|
|
LIBS += -lvorbisfile \
|
|
|
|
-lvorbis \
|
2013-08-07 18:15:49 +00:00
|
|
|
-logg
|
|
|
|
|
2013-06-18 01:11:21 +00:00
|
|
|
isEmpty(DISABLE_INTERNAL_PLAYER) {
|
|
|
|
LIBS += -lao \
|
|
|
|
-lavutil-gd \
|
|
|
|
-lavformat-gd \
|
|
|
|
-lavcodec-gd
|
|
|
|
}
|
2009-05-16 18:04:21 +00:00
|
|
|
RC_FILE = goldendict.rc
|
|
|
|
INCLUDEPATH += winlibs/include
|
2011-06-03 11:24:13 +00:00
|
|
|
|
|
|
|
# Enable console in Debug mode on Windows, with useful logging messages
|
|
|
|
Debug:CONFIG += console
|
2011-06-19 18:50:11 +00:00
|
|
|
|
|
|
|
Release:DEFINES += NO_CONSOLE
|
2013-02-02 21:06:07 +00:00
|
|
|
|
2013-03-28 13:45:47 +00:00
|
|
|
gcc48:QMAKE_CXXFLAGS += -Wno-unused-local-typedefs
|
2013-09-14 16:17:32 +00:00
|
|
|
|
|
|
|
CONFIG += zim_support
|
2015-10-26 18:21:14 +00:00
|
|
|
!CONFIG( no_chinese_conversion_support ) {
|
|
|
|
CONFIG += chinese_conversion_support
|
|
|
|
}
|
2009-05-16 18:04:21 +00:00
|
|
|
}
|
2010-05-29 11:27:10 +00:00
|
|
|
|
2011-09-17 10:28:50 +00:00
|
|
|
unix:!mac {
|
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 \
|
2015-10-11 14:58:31 +00:00
|
|
|
vorbis \
|
2013-05-05 10:22:12 +00:00
|
|
|
ogg \
|
2013-06-18 01:11:21 +00:00
|
|
|
hunspell
|
|
|
|
isEmpty(DISABLE_INTERNAL_PLAYER) {
|
|
|
|
PKGCONFIG += ao \
|
|
|
|
libavutil \
|
|
|
|
libavformat \
|
|
|
|
libavcodec
|
|
|
|
}
|
2012-12-04 08:21:13 +00:00
|
|
|
arm {
|
|
|
|
LIBS += -liconv
|
|
|
|
} else {
|
|
|
|
LIBS += -lX11 -lXtst
|
|
|
|
}
|
2013-07-21 10:29:28 +00:00
|
|
|
|
|
|
|
# Install prefix: first try to use qmake's PREFIX variable,
|
|
|
|
# then $PREFIX from system environment, and if both fails,
|
|
|
|
# use the hardcoded /usr/local.
|
|
|
|
PREFIX = $${PREFIX}
|
|
|
|
isEmpty( PREFIX ):PREFIX = $$(PREFIX)
|
2009-05-16 18:04:21 +00:00
|
|
|
isEmpty( PREFIX ):PREFIX = /usr/local
|
2013-07-21 10:29:28 +00:00
|
|
|
message(Install Prefix is: $$PREFIX)
|
|
|
|
|
2013-07-21 09:55:20 +00:00
|
|
|
DEFINES += PROGRAM_DATA_DIR=\\\"$$PREFIX/share/goldendict/\\\"
|
2009-05-16 18:04:21 +00:00
|
|
|
target.path = $$PREFIX/bin/
|
2013-07-21 09:55:20 +00:00
|
|
|
locale.path = $$PREFIX/share/goldendict/locale/
|
2009-05-16 18:04:21 +00:00
|
|
|
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
|
|
|
desktops.path = $$PREFIX/share/applications
|
2009-05-16 18:04:21 +00:00
|
|
|
desktops.files = redist/*.desktop
|
|
|
|
INSTALLS += desktops
|
2014-06-23 15:11:15 +00:00
|
|
|
helps.path = $$PREFIX/share/goldendict/help/
|
|
|
|
helps.files = help/*.qch
|
|
|
|
INSTALLS += helps
|
2009-05-16 18:04:21 +00:00
|
|
|
}
|
2011-08-06 18:39:16 +00:00
|
|
|
mac {
|
2012-04-06 20:00:20 +00:00
|
|
|
TARGET = GoldenDict
|
2011-09-24 00:12:34 +00:00
|
|
|
# Uncomment this line to make a universal binary.
|
|
|
|
# You will need to use Xcode 3 and Qt Carbon SDK
|
|
|
|
# if you want the support for PowerPC and/or Mac OS X 10.4
|
|
|
|
# CONFIG += x86 x86_64 ppc
|
2011-08-14 20:04:27 +00:00
|
|
|
LIBS = -lz \
|
2012-03-26 00:53:12 +00:00
|
|
|
-lbz2 \
|
2011-08-14 20:04:27 +00:00
|
|
|
-liconv \
|
2011-08-07 08:13:20 +00:00
|
|
|
-lvorbisfile \
|
|
|
|
-lvorbis \
|
|
|
|
-logg \
|
2013-04-23 15:57:25 +00:00
|
|
|
-lhunspell-1.2 \
|
2013-06-18 01:11:21 +00:00
|
|
|
-llzo2
|
|
|
|
isEmpty(DISABLE_INTERNAL_PLAYER) {
|
|
|
|
LIBS += -lao \
|
|
|
|
-lavutil-gd \
|
|
|
|
-lavformat-gd \
|
|
|
|
-lavcodec-gd
|
|
|
|
}
|
2013-05-06 23:22:43 +00:00
|
|
|
INCLUDEPATH = $${PWD}/maclibs/include
|
|
|
|
LIBS += -L$${PWD}/maclibs/lib -framework AppKit -framework Carbon
|
2013-04-05 12:25:34 +00:00
|
|
|
OBJECTIVE_SOURCES += lionsupport.mm \
|
2013-04-10 13:31:44 +00:00
|
|
|
machotkeywrapper.mm \
|
2013-05-07 13:39:35 +00:00
|
|
|
macmouseover.mm \
|
|
|
|
speechclient_mac.mm
|
2011-08-07 08:13:20 +00:00
|
|
|
ICON = icons/macicon.icns
|
2013-08-26 00:44:04 +00:00
|
|
|
QMAKE_INFO_PLIST = myInfo.plist
|
2012-04-06 20:00:20 +00:00
|
|
|
QMAKE_POST_LINK = mkdir -p GoldenDict.app/Contents/Frameworks & \
|
2013-05-06 23:22:43 +00:00
|
|
|
cp -nR $${PWD}/maclibs/lib/ GoldenDict.app/Contents/Frameworks/ & \
|
2012-04-06 20:00:20 +00:00
|
|
|
mkdir -p GoldenDict.app/Contents/MacOS/locale & \
|
2014-06-23 15:11:15 +00:00
|
|
|
cp -R locale/*.qm GoldenDict.app/Contents/MacOS/locale/ & \
|
|
|
|
mkdir -p GoldenDict.app/Contents/MacOS/help & \
|
2014-07-21 13:36:32 +00:00
|
|
|
cp -R $${PWD}/help/*.qch GoldenDict.app/Contents/MacOS/help/
|
2013-09-16 14:13:52 +00:00
|
|
|
|
|
|
|
CONFIG += zim_support
|
2011-08-06 18:39:16 +00:00
|
|
|
}
|
2009-05-16 18:04:21 +00:00
|
|
|
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 \
|
2013-01-18 19:21:56 +00:00
|
|
|
belarusiantranslit.hh \
|
2009-05-16 18:04:21 +00:00
|
|
|
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 \
|
2011-05-30 01:05:28 +00:00
|
|
|
programs.hh \
|
2011-06-05 11:49:50 +00:00
|
|
|
parsecmdline.hh \
|
2011-06-19 18:50:11 +00:00
|
|
|
dictspanewidget.hh \
|
2011-06-23 14:17:09 +00:00
|
|
|
maintabwidget.hh \
|
2011-07-12 09:25:03 +00:00
|
|
|
mainstatusbar.hh \
|
2011-09-09 12:05:28 +00:00
|
|
|
gdappstyle.hh \
|
2012-01-24 12:55:28 +00:00
|
|
|
ufile.hh \
|
2012-02-09 12:49:41 +00:00
|
|
|
xdxf.hh \
|
2012-02-09 12:50:38 +00:00
|
|
|
sdict.hh \
|
|
|
|
decompress.hh \
|
2012-04-02 18:41:58 +00:00
|
|
|
aard.hh \
|
2012-09-24 12:51:51 +00:00
|
|
|
mruqmenu.hh \
|
2012-09-28 12:39:52 +00:00
|
|
|
dictinfo.hh \
|
2012-12-10 14:14:13 +00:00
|
|
|
zipsounds.hh \
|
2012-12-24 11:30:03 +00:00
|
|
|
stylescombobox.hh \
|
|
|
|
extlineedit.hh \
|
2013-01-17 09:08:53 +00:00
|
|
|
translatebox.hh \
|
2013-01-25 15:42:44 +00:00
|
|
|
historypanewidget.hh \
|
2013-04-23 12:07:05 +00:00
|
|
|
wordlist.hh \
|
|
|
|
mdictparser.hh \
|
2013-04-24 14:52:04 +00:00
|
|
|
mdx.hh \
|
2013-05-05 10:22:12 +00:00
|
|
|
voiceengines.hh \
|
2013-05-30 02:18:28 +00:00
|
|
|
ffmpegaudio.hh \
|
2013-07-06 15:31:31 +00:00
|
|
|
articleinspector.hh \
|
2013-09-14 16:17:32 +00:00
|
|
|
delegate.hh \
|
2013-11-16 18:34:09 +00:00
|
|
|
zim.hh \
|
2014-02-04 13:35:42 +00:00
|
|
|
gddebug.hh \
|
2014-02-11 14:02:00 +00:00
|
|
|
gestures.hh \
|
2014-02-28 12:36:28 +00:00
|
|
|
tiff.hh \
|
2014-04-16 16:18:28 +00:00
|
|
|
dictheadwords.hh \
|
|
|
|
fulltextsearch.hh \
|
2014-04-30 12:55:53 +00:00
|
|
|
ftshelpers.hh \
|
2014-06-23 15:11:15 +00:00
|
|
|
dictserver.hh \
|
2015-01-22 15:17:05 +00:00
|
|
|
helpwindow.hh \
|
2015-10-11 14:58:31 +00:00
|
|
|
slob.hh \
|
|
|
|
ripemd.hh
|
2013-01-17 09:08:53 +00:00
|
|
|
|
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 \
|
2012-09-24 12:51:51 +00:00
|
|
|
orderandprops.ui \
|
2014-02-28 12:36:28 +00:00
|
|
|
dictinfo.ui \
|
2014-04-03 14:21:02 +00:00
|
|
|
dictheadwords.ui \
|
2014-04-16 16:18:28 +00:00
|
|
|
authentication.ui \
|
|
|
|
fulltextsearch.ui
|
2015-01-22 15:17:05 +00:00
|
|
|
|
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 \
|
2013-01-18 19:21:56 +00:00
|
|
|
belarusiantranslit.cc \
|
2009-05-16 18:04:21 +00:00
|
|
|
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 \
|
2011-05-30 01:05:28 +00:00
|
|
|
programs.cc \
|
2011-06-23 14:17:09 +00:00
|
|
|
parsecmdline.cc \
|
2011-06-27 18:54:15 +00:00
|
|
|
maintabwidget.cc \
|
2011-07-12 09:25:03 +00:00
|
|
|
mainstatusbar.cc \
|
2011-09-09 12:05:28 +00:00
|
|
|
gdappstyle.cc \
|
2012-01-24 12:55:28 +00:00
|
|
|
ufile.cc \
|
2012-02-09 12:49:41 +00:00
|
|
|
xdxf.cc \
|
2012-02-09 12:50:38 +00:00
|
|
|
sdict.cc \
|
|
|
|
decompress.cc \
|
2012-04-02 18:41:58 +00:00
|
|
|
aard.cc \
|
2012-09-24 12:51:51 +00:00
|
|
|
mruqmenu.cc \
|
2012-09-28 12:39:52 +00:00
|
|
|
dictinfo.cc \
|
2012-12-10 14:14:13 +00:00
|
|
|
zipsounds.cc \
|
2012-12-24 11:30:03 +00:00
|
|
|
stylescombobox.cc \
|
|
|
|
extlineedit.cc \
|
2013-01-17 09:08:53 +00:00
|
|
|
translatebox.cc \
|
2013-01-25 15:42:44 +00:00
|
|
|
historypanewidget.cc \
|
2013-04-23 12:07:05 +00:00
|
|
|
wordlist.cc \
|
|
|
|
mdictparser.cc \
|
2013-04-24 14:52:04 +00:00
|
|
|
mdx.cc \
|
2013-05-05 10:22:12 +00:00
|
|
|
voiceengines.cc \
|
2013-05-30 02:18:28 +00:00
|
|
|
ffmpegaudio.cc \
|
2013-07-06 15:31:31 +00:00
|
|
|
articleinspector.cc \
|
2013-09-14 16:17:32 +00:00
|
|
|
delegate.cc \
|
2013-11-16 18:34:09 +00:00
|
|
|
zim.cc \
|
2014-02-04 13:35:42 +00:00
|
|
|
gddebug.cc \
|
2014-02-11 14:02:00 +00:00
|
|
|
gestures.cc \
|
2014-02-28 12:36:28 +00:00
|
|
|
tiff.cc \
|
2014-04-16 16:18:28 +00:00
|
|
|
dictheadwords.cc \
|
|
|
|
fulltextsearch.cc \
|
2014-04-30 12:55:53 +00:00
|
|
|
ftshelpers.cc \
|
2014-06-23 15:11:15 +00:00
|
|
|
dictserver.cc \
|
2015-01-22 15:17:05 +00:00
|
|
|
helpwindow.cc \
|
2015-10-11 14:58:31 +00:00
|
|
|
slob.cc \
|
|
|
|
ripemd.cc
|
2013-01-17 09:08:53 +00:00
|
|
|
|
2013-04-24 14:52:04 +00:00
|
|
|
win32 {
|
2015-10-11 14:58:31 +00:00
|
|
|
FORMS += texttospeechsource.ui
|
2011-07-09 19:26:30 +00:00
|
|
|
SOURCES += mouseover_win32/ThTypes.c \
|
|
|
|
wordbyauto.cc \
|
2012-01-24 12:39:23 +00:00
|
|
|
guids.c \
|
2012-11-23 12:43:36 +00:00
|
|
|
x64.cc \
|
2013-04-24 14:52:04 +00:00
|
|
|
speechclient_win.cc \
|
|
|
|
texttospeechsource.cc \
|
|
|
|
speechhlp.cc
|
2011-07-09 19:26:30 +00:00
|
|
|
HEADERS += mouseover_win32/ThTypes.h \
|
|
|
|
wordbyauto.hh \
|
2012-01-24 12:39:23 +00:00
|
|
|
uiauto.hh \
|
2012-11-23 12:43:36 +00:00
|
|
|
x64.hh \
|
2013-04-24 14:52:04 +00:00
|
|
|
texttospeechsource.hh \
|
|
|
|
sapi.hh \
|
|
|
|
sphelper.hh \
|
2013-04-26 13:41:39 +00:00
|
|
|
speechclient.hh \
|
|
|
|
speechhlp.hh
|
2009-05-16 18:04:21 +00:00
|
|
|
}
|
2013-04-10 13:31:44 +00:00
|
|
|
|
|
|
|
mac {
|
2013-05-07 13:39:35 +00:00
|
|
|
HEADERS += macmouseover.hh \
|
|
|
|
texttospeechsource.hh \
|
|
|
|
speechclient.hh
|
|
|
|
FORMS += texttospeechsource.ui
|
|
|
|
SOURCES += texttospeechsource.cc
|
2013-04-10 13:31:44 +00:00
|
|
|
}
|
|
|
|
|
2013-09-14 16:17:32 +00:00
|
|
|
CONFIG( zim_support ) {
|
|
|
|
DEFINES += MAKE_ZIM_SUPPORT
|
|
|
|
LIBS += -llzma
|
|
|
|
}
|
|
|
|
|
2014-02-11 14:02:00 +00:00
|
|
|
!CONFIG( no_extra_tiff_handler ) {
|
|
|
|
DEFINES += MAKE_EXTRA_TIFF_HANDLER
|
|
|
|
LIBS += -ltiff
|
|
|
|
}
|
|
|
|
|
2014-05-20 13:59:56 +00:00
|
|
|
CONFIG( no_epwing_support ) {
|
|
|
|
DEFINES += NO_EPWING_SUPPORT
|
|
|
|
}
|
|
|
|
|
|
|
|
!CONFIG( no_epwing_support ) {
|
|
|
|
HEADERS += epwing.hh \
|
2014-05-22 16:53:06 +00:00
|
|
|
epwing_book.hh \
|
|
|
|
epwing_charmap.hh
|
2014-05-20 13:59:56 +00:00
|
|
|
SOURCES += epwing.cc \
|
2014-05-22 16:53:06 +00:00
|
|
|
epwing_book.cc \
|
|
|
|
epwing_charmap.cc
|
2014-05-20 13:59:56 +00:00
|
|
|
LIBS += -leb
|
|
|
|
}
|
|
|
|
|
2015-10-25 13:54:38 +00:00
|
|
|
CONFIG( chinese_conversion_support ) {
|
|
|
|
DEFINES += MAKE_CHINESE_CONVERSION_SUPPORT
|
|
|
|
FORMS += chineseconversion.ui
|
|
|
|
HEADERS += chinese.hh \
|
|
|
|
chineseconversion.hh
|
|
|
|
SOURCES += chinese.cc \
|
|
|
|
chineseconversion.cc
|
2016-04-07 21:45:27 +00:00
|
|
|
win32-msvc* {
|
|
|
|
Debug: LIBS += -lopenccd
|
|
|
|
Release: LIBS += -lopencc
|
|
|
|
} else {
|
|
|
|
LIBS += -lopencc
|
|
|
|
}
|
2015-10-19 13:52:23 +00:00
|
|
|
}
|
|
|
|
|
2009-05-16 18:04:21 +00:00
|
|
|
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 \
|
2011-10-16 00:06:14 +00:00
|
|
|
locale/es_AR.ts \
|
2012-02-22 05:44:58 +00:00
|
|
|
locale/es_BO.ts \
|
|
|
|
locale/es_ES.ts \
|
2011-11-13 08:48:47 +00:00
|
|
|
locale/sk_SK.ts \
|
2012-01-26 14:07:10 +00:00
|
|
|
locale/tr_TR.ts \
|
2012-05-20 23:18:51 +00:00
|
|
|
locale/qu_WI.ts \
|
2012-12-24 18:21:43 +00:00
|
|
|
locale/tg_TJ.ts \
|
2013-01-15 07:13:15 +00:00
|
|
|
locale/ay_WI.ts \
|
|
|
|
locale/be_BY.ts \
|
2013-01-29 22:40:55 +00:00
|
|
|
locale/be_BY@latin.ts \
|
2013-03-18 08:01:52 +00:00
|
|
|
locale/fr_FR.ts \
|
2013-04-08 21:10:39 +00:00
|
|
|
locale/ko_KR.ts \
|
2013-08-24 17:20:43 +00:00
|
|
|
locale/nl_NL.ts \
|
2013-09-16 13:07:20 +00:00
|
|
|
locale/sr_SR.ts \
|
2013-09-23 09:48:52 +00:00
|
|
|
locale/sv_SE.ts \
|
2014-03-18 18:54:53 +00:00
|
|
|
locale/tk_TM.ts \
|
2014-05-26 15:48:18 +00:00
|
|
|
locale/fa_IR.ts \
|
|
|
|
locale/mk_MK.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
|
2012-12-03 19:11:33 +00:00
|
|
|
PRE_TARGETDEPS += $$PWD/version.txt
|
|
|
|
revtarget.target = $$PWD/version.txt
|
2012-12-05 16:46:58 +00:00
|
|
|
!win32 {
|
|
|
|
revtarget.commands = cd $$PWD; git describe --tags --always --dirty > $$revtarget.target
|
|
|
|
}
|
|
|
|
win32 {
|
|
|
|
revtarget.commands = git --git-dir=\"$$PWD/.git\" describe --tags --always --dirty > $$revtarget.target
|
|
|
|
}
|
2012-12-03 19:11:33 +00:00
|
|
|
ALL_SOURCES = $$SOURCES $$HEADERS $$FORMS
|
|
|
|
for(src, ALL_SOURCES) {
|
|
|
|
QUALIFIED_SOURCES += $${PWD}/$${src}
|
|
|
|
}
|
|
|
|
revtarget.depends = $$QUALIFIED_SOURCES
|
2010-07-03 11:01:01 +00:00
|
|
|
}
|
2010-07-02 17:07:05 +00:00
|
|
|
|
2009-05-16 18:04:21 +00:00
|
|
|
# This makes qmake generate translations
|
2012-12-03 19:11:33 +00:00
|
|
|
|
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
|
2013-07-21 08:45:21 +00:00
|
|
|
|
|
|
|
# The *.qm files might not exist when qmake is run for the first time,
|
|
|
|
# causing the standard install rule to be ignored, and no translations
|
|
|
|
# will be installed. With this, we create the qm files during qmake run.
|
|
|
|
!win32 {
|
|
|
|
system($${QMAKE_LRELEASE} -silent $${_PRO_FILE_} 2> /dev/null)
|
|
|
|
}
|
|
|
|
|
2009-07-29 16:39:27 +00:00
|
|
|
updateqm.input = TRANSLATIONS
|
2012-12-03 19:11:33 +00:00
|
|
|
updateqm.output = locale/${QMAKE_FILE_BASE}.qm
|
2009-09-21 17:50:03 +00:00
|
|
|
updateqm.commands = $$QMAKE_LRELEASE \
|
|
|
|
${QMAKE_FILE_IN} \
|
|
|
|
-qm \
|
2012-12-03 19:11:33 +00:00
|
|
|
${QMAKE_FILE_OUT}
|
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 )
|
2011-09-09 12:05:28 +00:00
|
|
|
|