2009-05-16 18:04:21 +00:00
|
|
|
TEMPLATE = app
|
|
|
|
TARGET = goldendict
|
2023-05-31 12:56:28 +00:00
|
|
|
VERSION = 23.06.02-alpha
|
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).
|
|
|
|
|
2022-02-07 14:18:51 +00:00
|
|
|
system(git describe --tags --always --dirty): hasGit=1
|
2010-07-02 17:07:05 +00:00
|
|
|
|
2022-02-07 14:18:51 +00:00
|
|
|
!isEmpty(hasGit){
|
2022-03-15 11:55:23 +00:00
|
|
|
GIT_HASH=$$system(git rev-parse --short=8 HEAD )
|
2010-07-02 17:07:05 +00:00
|
|
|
}
|
2022-05-31 12:11:04 +00:00
|
|
|
|
2022-12-14 02:02:20 +00:00
|
|
|
!exists( version.txt ) {
|
|
|
|
message( "generate version.txt...." )
|
|
|
|
system(echo $${VERSION}.$${GIT_HASH} on $${_DATE_} > version.txt)
|
|
|
|
}
|
|
|
|
|
2010-07-02 17:07:05 +00:00
|
|
|
|
2022-05-27 08:52:16 +00:00
|
|
|
!CONFIG( verbose_build_output ) {
|
|
|
|
!win32|*-msvc* {
|
|
|
|
# Reduce build log verbosity except for MinGW builds (mingw-make cannot
|
|
|
|
# execute "@echo ..." commands inserted by qmake).
|
|
|
|
CONFIG += silent
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-06-01 15:39:24 +00:00
|
|
|
CONFIG( release, debug|release ) {
|
|
|
|
DEFINES += NDEBUG
|
|
|
|
}
|
2022-06-01 15:23:41 +00:00
|
|
|
|
2009-05-16 18:04:21 +00:00
|
|
|
# DEPENDPATH += . generators
|
2022-12-24 14:42:40 +00:00
|
|
|
INCLUDEPATH += ./src/
|
2023-04-18 00:41:47 +00:00
|
|
|
INCLUDEPATH += ./src/ui # for compiled .ui files to find headers
|
|
|
|
INCLUDEPATH += ./src/common
|
2023-04-29 06:59:19 +00:00
|
|
|
INCLUDEPATH += ./thirdparty/tomlplusplus
|
2023-05-19 23:55:56 +00:00
|
|
|
INCLUDEPATH += ./thirdparty/fmt/include
|
2013-05-30 13:24:21 +00:00
|
|
|
|
|
|
|
QT += core \
|
|
|
|
gui \
|
|
|
|
xml \
|
|
|
|
network \
|
2022-02-27 05:17:37 +00:00
|
|
|
svg \
|
|
|
|
widgets \
|
2021-12-19 10:37:27 +00:00
|
|
|
webenginewidgets\
|
|
|
|
webchannel\
|
|
|
|
printsupport \
|
2022-07-31 01:19:50 +00:00
|
|
|
concurrent \
|
|
|
|
texttospeech
|
2021-12-19 10:37:27 +00:00
|
|
|
|
2022-02-27 14:42:40 +00:00
|
|
|
greaterThan(QT_MAJOR_VERSION, 5): QT += webenginecore core5compat
|
2022-02-27 05:17:37 +00:00
|
|
|
|
2022-01-08 13:16:22 +00:00
|
|
|
DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x050F00
|
2021-12-26 11:01:05 +00:00
|
|
|
|
2021-12-19 10:37:27 +00:00
|
|
|
!CONFIG( no_qtmultimedia_player ) {
|
|
|
|
QT += multimedia
|
|
|
|
DEFINES += MAKE_QTMULTIMEDIA_PLAYER
|
2013-05-30 13:24:21 +00:00
|
|
|
}
|
|
|
|
|
2018-03-29 17:00:53 +00:00
|
|
|
!CONFIG( no_ffmpeg_player ) {
|
2022-11-12 09:03:20 +00:00
|
|
|
# ffmpeg depended on multimedia now.
|
|
|
|
QT += multimedia
|
2018-03-29 17:00:53 +00:00
|
|
|
DEFINES += MAKE_FFMPEG_PLAYER
|
|
|
|
}
|
|
|
|
|
2023-01-22 12:06:05 +00:00
|
|
|
contains(DEFINES, MAKE_QTMULTIMEDIA_PLAYER|MAKE_FFMPEG_PLAYER) {
|
2023-04-17 20:12:27 +00:00
|
|
|
HEADERS += \
|
2023-04-17 21:56:55 +00:00
|
|
|
src/audiooutput.hh
|
2023-04-17 20:12:27 +00:00
|
|
|
SOURCES += \
|
2023-04-17 21:56:55 +00:00
|
|
|
src/audiooutput.cc
|
2023-01-22 12:06:05 +00:00
|
|
|
}
|
|
|
|
|
2023-05-17 14:29:56 +00:00
|
|
|
#xapian is the must option now.
|
2023-05-20 02:29:20 +00:00
|
|
|
win32{
|
|
|
|
Debug: LIBS+= -L$$PWD/winlibs/lib/xapian/dbg/ -lxapian
|
|
|
|
Release: LIBS+= -L$$PWD/winlibs/lib/xapian/rel/ -lxapian
|
|
|
|
}else{
|
|
|
|
LIBS += -lxapian
|
|
|
|
}
|
2022-10-01 13:57:55 +00:00
|
|
|
|
2023-05-01 08:01:48 +00:00
|
|
|
CONFIG( use_breakpad ) {
|
|
|
|
DEFINES += USE_BREAKPAD
|
|
|
|
|
|
|
|
win32: LIBS += -L$$PWD/thirdparty/breakpad/lib/ -llibbreakpad -llibbreakpad_client
|
|
|
|
else:unix: LIBS += -L$$PWD/thirdparty/breakpad/lib/ -llibbreakpa
|
2023-04-02 15:54:09 +00:00
|
|
|
|
2023-05-01 08:01:48 +00:00
|
|
|
INCLUDEPATH += $$PWD/thirdparty/breakpad/include
|
|
|
|
DEPENDPATH += $$PWD/thirdparty/breakpad/include
|
2023-04-02 15:54:09 +00:00
|
|
|
|
2023-05-01 08:01:48 +00:00
|
|
|
CONFIG( release, debug|release ) {
|
|
|
|
# create debug symbols for release builds
|
|
|
|
CONFIG*=force_debug_info
|
|
|
|
QMAKE_CXXFLAGS_RELEASE_WITH_DEBUGINFO -= -O2
|
|
|
|
}
|
2022-10-01 13:57:55 +00:00
|
|
|
}
|
|
|
|
|
2023-02-01 15:08:57 +00:00
|
|
|
CONFIG( use_iconv ) {
|
|
|
|
DEFINES += USE_ICONV
|
2023-02-01 16:04:04 +00:00
|
|
|
unix:!mac{
|
|
|
|
#ignore
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
LIBS+= -liconv
|
|
|
|
}
|
2023-02-01 15:08:57 +00:00
|
|
|
}
|
|
|
|
|
2009-05-16 18:04:21 +00:00
|
|
|
CONFIG += exceptions \
|
|
|
|
rtti \
|
2022-03-12 16:55:35 +00:00
|
|
|
stl \
|
2022-05-22 08:25:03 +00:00
|
|
|
c++17 \
|
2022-03-27 13:03:57 +00:00
|
|
|
lrelease \
|
2023-05-07 11:54:47 +00:00
|
|
|
utf8_source
|
2022-03-24 13:46:01 +00:00
|
|
|
|
|
|
|
mac {
|
2022-09-21 15:40:06 +00:00
|
|
|
CONFIG += app_bundle
|
2022-03-24 13:46:01 +00:00
|
|
|
}
|
2022-09-21 15:40:06 +00:00
|
|
|
|
2009-05-16 18:04:21 +00:00
|
|
|
OBJECTS_DIR = build
|
|
|
|
UI_DIR = build
|
|
|
|
MOC_DIR = build
|
2022-09-21 15:40:06 +00:00
|
|
|
RCC_DIR = build
|
2023-05-01 08:28:33 +00:00
|
|
|
LIBS += -lbz2 \
|
2013-04-23 12:07:05 +00:00
|
|
|
-llzo2
|
2010-01-17 13:04:55 +00:00
|
|
|
|
2023-05-01 08:28:33 +00:00
|
|
|
win32{
|
2023-05-22 14:53:35 +00:00
|
|
|
Debug: LIBS+= -lzlibd
|
|
|
|
Release: LIBS+= -lzlib
|
2023-05-01 08:28:33 +00:00
|
|
|
}else{
|
|
|
|
LIBS += -lz
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2013-04-24 14:52:04 +00:00
|
|
|
win32 {
|
2022-11-21 05:12:36 +00:00
|
|
|
QM_FILES_INSTALL_PATH = /locale/
|
2013-08-07 18:15:49 +00:00
|
|
|
TARGET = GoldenDict
|
|
|
|
|
|
|
|
win32-msvc* {
|
2022-08-22 12:38:14 +00:00
|
|
|
# VS does not recognize 22.number.alpha,cause errors during compilation under MSVC++
|
2023-05-31 12:56:28 +00:00
|
|
|
VERSION = 23.06.02
|
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
|
2023-05-10 23:13:10 +00:00
|
|
|
# silence the warning C4290: C++ exception specification ignored,C4267 size_t to const T , lost data.
|
|
|
|
QMAKE_CXXFLAGS += /wd4290 /wd4267 /Zc:__cplusplus /std:c++17 /permissive-
|
2022-04-23 11:41:45 +00:00
|
|
|
# QMAKE_LFLAGS_RELEASE += /OPT:REF /OPT:ICF
|
2022-05-29 23:57:00 +00:00
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2022-02-26 00:56:46 +00:00
|
|
|
LIBS += -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-06-18 03:22:07 +00:00
|
|
|
-logg
|
2018-03-29 17:00:53 +00:00
|
|
|
!CONFIG( no_ffmpeg_player ) {
|
2022-11-08 12:16:41 +00:00
|
|
|
LIBS += -lswresample \
|
2022-02-02 06:32:03 +00:00
|
|
|
-lavutil \
|
|
|
|
-lavformat \
|
|
|
|
-lavcodec
|
2013-06-18 01:11:21 +00:00
|
|
|
}
|
2013-05-30 13:24:21 +00:00
|
|
|
|
2022-02-19 12:56:32 +00:00
|
|
|
RC_ICONS += icons/programicon.ico icons/programicon_old.ico
|
2009-05-16 18:04:21 +00:00
|
|
|
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
|
|
|
|
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
|
|
|
}
|
2023-05-03 06:10:49 +00:00
|
|
|
|
|
|
|
!mac {
|
2022-09-09 06:46:48 +00:00
|
|
|
DEFINES += INCLUDE_LIBRARY_PATH
|
|
|
|
}
|
2023-05-03 06:10:49 +00:00
|
|
|
|
2011-09-17 10:28:50 +00:00
|
|
|
unix:!mac {
|
2022-03-13 03:58:45 +00:00
|
|
|
DEFINES += HAVE_X11
|
2010-05-29 11:27:10 +00:00
|
|
|
|
2022-03-13 03:58:45 +00:00
|
|
|
lessThan(QT_MAJOR_VERSION, 6): QT += x11extras
|
2015-06-24 14:56:29 +00:00
|
|
|
|
2010-01-22 22:50:28 +00:00
|
|
|
CONFIG += link_pkgconfig
|
2022-03-13 03:58:45 +00:00
|
|
|
|
2010-01-22 22:50:28 +00:00
|
|
|
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
|
2018-03-29 17:00:53 +00:00
|
|
|
!CONFIG( no_ffmpeg_player ) {
|
2022-11-08 12:16:41 +00:00
|
|
|
PKGCONFIG += libavutil \
|
2013-06-18 01:11:21 +00:00
|
|
|
libavformat \
|
2020-07-18 12:42:29 +00:00
|
|
|
libavcodec \
|
|
|
|
libswresample \
|
2013-06-18 01:11:21 +00:00
|
|
|
}
|
2022-05-29 02:05:44 +00:00
|
|
|
!arm {
|
2012-12-04 08:21:13 +00:00
|
|
|
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
|
2021-02-25 10:31:18 +00:00
|
|
|
metainfo.path = $$PREFIX/share/metainfo
|
|
|
|
metainfo.files = redist/*.metainfo.xml
|
|
|
|
INSTALLS += metainfo
|
2009-05-16 18:04:21 +00:00
|
|
|
}
|
2019-04-01 21:48:46 +00:00
|
|
|
freebsd {
|
2022-02-26 00:56:46 +00:00
|
|
|
LIBS += -lexecinfo
|
2019-04-01 21:48:46 +00:00
|
|
|
}
|
2011-08-06 18:39:16 +00:00
|
|
|
mac {
|
2022-11-21 05:50:15 +00:00
|
|
|
QM_FILES_INSTALL_PATH = /locale/
|
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
|
2023-02-01 15:08:57 +00:00
|
|
|
LIBS += -lz \
|
2012-03-26 00:53:12 +00:00
|
|
|
-lbz2 \
|
2011-08-07 08:13:20 +00:00
|
|
|
-lvorbisfile \
|
|
|
|
-lvorbis \
|
|
|
|
-logg \
|
2013-06-18 01:11:21 +00:00
|
|
|
-llzo2
|
2022-08-06 16:33:10 +00:00
|
|
|
|
2018-03-29 17:00:53 +00:00
|
|
|
!CONFIG( no_ffmpeg_player ) {
|
2022-11-08 12:16:41 +00:00
|
|
|
LIBS += -lswresample \
|
2022-03-24 13:46:01 +00:00
|
|
|
-lavutil \
|
|
|
|
-lavformat \
|
|
|
|
-lavcodec
|
2013-06-18 01:11:21 +00:00
|
|
|
}
|
2022-09-08 13:46:17 +00:00
|
|
|
QT_CONFIG -= no-pkg-config
|
2022-03-12 12:16:01 +00:00
|
|
|
CONFIG += link_pkgconfig
|
2022-08-06 16:33:10 +00:00
|
|
|
|
2023-05-03 06:10:49 +00:00
|
|
|
PKGCONFIG += hunspell
|
|
|
|
INCLUDEPATH += /opt/homebrew/include /usr/local/include
|
|
|
|
LIBS += -L/opt/homebrew/lib -L/usr/local/lib -framework AppKit -framework Carbon
|
|
|
|
|
2022-08-06 16:33:10 +00:00
|
|
|
|
2023-04-18 00:00:36 +00:00
|
|
|
OBJECTIVE_SOURCES += src/macos/machotkeywrapper.mm \
|
|
|
|
src/macos/macmouseover.mm
|
2011-08-07 08:13:20 +00:00
|
|
|
ICON = icons/macicon.icns
|
2023-04-18 00:55:32 +00:00
|
|
|
QMAKE_INFO_PLIST = redist/myInfo.plist
|
2022-08-06 16:33:10 +00:00
|
|
|
|
2023-05-03 06:10:49 +00:00
|
|
|
|
|
|
|
QMAKE_POST_LINK = mkdir -p GoldenDict.app/Contents/Frameworks && \
|
|
|
|
mkdir -p GoldenDict.app/Contents/MacOS/locale && \
|
|
|
|
cp -R locale/*.qm GoldenDict.app/Contents/MacOS/locale/
|
|
|
|
|
2022-09-30 23:27:11 +00:00
|
|
|
|
2016-04-21 14:50:56 +00:00
|
|
|
!CONFIG( no_chinese_conversion_support ) {
|
|
|
|
CONFIG += chinese_conversion_support
|
2022-03-24 13:46:01 +00:00
|
|
|
QMAKE_POST_LINK += && mkdir -p GoldenDict.app/Contents/MacOS/opencc && \
|
2022-02-26 05:21:27 +00:00
|
|
|
cp -R $${PWD}/opencc/*.* GoldenDict.app/Contents/MacOS/opencc/
|
2016-04-21 14:50:56 +00:00
|
|
|
}
|
2022-09-30 23:27:11 +00:00
|
|
|
|
2011-08-06 18:39:16 +00:00
|
|
|
}
|
2009-05-16 18:04:21 +00:00
|
|
|
DEFINES += PROGRAM_VERSION=\\\"$$VERSION\\\"
|
|
|
|
|
|
|
|
# Input
|
2023-04-17 20:55:34 +00:00
|
|
|
HEADERS += \
|
2023-04-17 21:17:36 +00:00
|
|
|
src/ankiconnector.hh \
|
|
|
|
src/article_maker.hh \
|
|
|
|
src/article_netmgr.hh \
|
2023-04-18 01:35:15 +00:00
|
|
|
src/common/atomic_rename.hh \
|
2023-04-17 21:17:36 +00:00
|
|
|
src/audiolink.hh \
|
|
|
|
src/audioplayerfactory.hh \
|
|
|
|
src/audioplayerinterface.hh \
|
|
|
|
src/btreeidx.hh \
|
|
|
|
src/chunkedstorage.hh \
|
2023-04-18 00:41:47 +00:00
|
|
|
src/common/base_type.hh \
|
|
|
|
src/common/ex.hh \
|
|
|
|
src/common/file.hh \
|
|
|
|
src/common/filetype.hh \
|
|
|
|
src/common/gddebug.hh \
|
|
|
|
src/common/globalbroadcaster.hh \
|
|
|
|
src/common/globalregex.hh \
|
2023-04-22 00:43:50 +00:00
|
|
|
src/common/help.hh \
|
2023-04-18 00:41:47 +00:00
|
|
|
src/common/htmlescape.hh \
|
|
|
|
src/common/iconv.hh \
|
|
|
|
src/common/inc_case_folding.hh \
|
|
|
|
src/common/sptr.hh \
|
|
|
|
src/common/ufile.hh \
|
|
|
|
src/common/utf8.hh \
|
|
|
|
src/common/utils.hh \
|
|
|
|
src/common/wstring.hh \
|
|
|
|
src/common/wstring_qt.hh \
|
2023-04-17 21:17:36 +00:00
|
|
|
src/config.hh \
|
|
|
|
src/decompress.hh \
|
|
|
|
src/delegate.hh \
|
2023-04-17 20:55:34 +00:00
|
|
|
src/dict/aard.hh \
|
|
|
|
src/dict/belarusiantranslit.hh \
|
|
|
|
src/dict/bgl.hh \
|
|
|
|
src/dict/bgl_babylon.hh \
|
2023-05-13 11:56:09 +00:00
|
|
|
src/dict/customtransliteration.hh \
|
2023-04-17 23:11:58 +00:00
|
|
|
src/dict/dictdfiles.hh \
|
2023-04-17 20:55:34 +00:00
|
|
|
src/dict/dictionary.hh \
|
2023-04-17 23:11:58 +00:00
|
|
|
src/dict/dictserver.hh \
|
2023-04-17 20:55:34 +00:00
|
|
|
src/dict/dsl.hh \
|
|
|
|
src/dict/dsl_details.hh \
|
|
|
|
src/dict/forvo.hh \
|
|
|
|
src/dict/german.hh \
|
|
|
|
src/dict/gls.hh \
|
|
|
|
src/dict/greektranslit.hh \
|
2023-04-17 21:56:55 +00:00
|
|
|
src/dict/hunspell.hh \
|
2023-04-17 20:12:27 +00:00
|
|
|
src/dict/lingualibre.hh \
|
2023-04-17 23:11:58 +00:00
|
|
|
src/dict/loaddictionaries.hh \
|
2023-04-17 20:55:34 +00:00
|
|
|
src/dict/lsa.hh \
|
2023-04-17 23:11:58 +00:00
|
|
|
src/dict/mdictparser.hh \
|
2023-04-17 20:55:34 +00:00
|
|
|
src/dict/mdx.hh \
|
|
|
|
src/dict/mediawiki.hh \
|
|
|
|
src/dict/programs.hh \
|
2023-04-18 00:41:47 +00:00
|
|
|
src/dict/ripemd.hh \
|
2023-04-17 20:55:34 +00:00
|
|
|
src/dict/romaji.hh \
|
|
|
|
src/dict/russiantranslit.hh \
|
|
|
|
src/dict/sdict.hh \
|
|
|
|
src/dict/slob.hh \
|
|
|
|
src/dict/sounddir.hh \
|
|
|
|
src/dict/sources.hh \
|
|
|
|
src/dict/stardict.hh \
|
|
|
|
src/dict/transliteration.hh \
|
|
|
|
src/dict/voiceengines.hh \
|
|
|
|
src/dict/website.hh \
|
|
|
|
src/dict/xdxf.hh \
|
|
|
|
src/dict/xdxf2html.hh \
|
|
|
|
src/dict/zim.hh \
|
|
|
|
src/dict/zipsounds.hh \
|
2023-04-17 21:17:36 +00:00
|
|
|
src/dictzip.hh \
|
|
|
|
src/externalaudioplayer.hh \
|
|
|
|
src/externalviewer.hh \
|
|
|
|
src/ffmpegaudio.hh \
|
|
|
|
src/ffmpegaudioplayer.hh \
|
2023-04-18 01:35:15 +00:00
|
|
|
src/common/folding.hh \
|
2023-04-17 21:17:36 +00:00
|
|
|
src/ftshelpers.hh \
|
|
|
|
src/fulltextsearch.hh \
|
|
|
|
src/gestures.hh \
|
|
|
|
src/headwordsmodel.hh \
|
|
|
|
src/history.hh \
|
|
|
|
src/hotkeywrapper.hh \
|
|
|
|
src/iframeschemehandler.hh \
|
|
|
|
src/indexedzip.hh \
|
|
|
|
src/initializing.hh \
|
|
|
|
src/instances.hh \
|
|
|
|
src/keyboardstate.hh \
|
|
|
|
src/langcoder.hh \
|
|
|
|
src/language.hh \
|
2023-04-30 04:31:49 +00:00
|
|
|
src/metadata.hh \
|
2023-04-17 21:17:36 +00:00
|
|
|
src/multimediaaudioplayer.hh \
|
|
|
|
src/parsecmdline.hh \
|
|
|
|
src/resourceschemehandler.hh \
|
|
|
|
src/splitfile.hh \
|
|
|
|
src/termination.hh \
|
|
|
|
src/tiff.hh \
|
2023-04-17 23:11:58 +00:00
|
|
|
src/ui/about.hh \
|
|
|
|
src/ui/article_inspect.hh \
|
2023-04-17 20:12:27 +00:00
|
|
|
src/ui/articleview.hh \
|
2023-04-17 23:11:58 +00:00
|
|
|
src/ui/articlewebpage.hh \
|
|
|
|
src/ui/articlewebview.hh \
|
|
|
|
src/ui/dictheadwords.hh \
|
|
|
|
src/ui/dictinfo.hh \
|
|
|
|
src/ui/dictionarybar.hh \
|
|
|
|
src/ui/dictspanewidget.hh \
|
|
|
|
src/ui/editdictionaries.hh \
|
|
|
|
src/ui/favoritespanewidget.hh \
|
2023-04-17 20:12:27 +00:00
|
|
|
src/ui/ftssearchpanel.hh \
|
2023-04-17 23:11:58 +00:00
|
|
|
src/ui/groupcombobox.hh \
|
|
|
|
src/ui/groups.hh \
|
|
|
|
src/ui/groups_widgets.hh \
|
|
|
|
src/ui/historypanewidget.hh \
|
|
|
|
src/ui/mainstatusbar.hh \
|
|
|
|
src/ui/maintabwidget.hh \
|
|
|
|
src/ui/mainwindow.hh \
|
|
|
|
src/ui/mruqmenu.hh \
|
|
|
|
src/ui/orderandprops.hh \
|
|
|
|
src/ui/preferences.hh \
|
|
|
|
src/ui/scanpopup.hh \
|
2023-04-17 20:12:27 +00:00
|
|
|
src/ui/searchpanel.hh \
|
2023-04-17 23:11:58 +00:00
|
|
|
src/ui/searchpanewidget.hh \
|
|
|
|
src/ui/stylescombobox.hh \
|
|
|
|
src/ui/translatebox.hh \
|
2023-04-17 21:17:36 +00:00
|
|
|
src/webmultimediadownload.hh \
|
2023-04-17 21:56:55 +00:00
|
|
|
src/weburlrequestinterceptor.hh \
|
2023-04-17 21:17:36 +00:00
|
|
|
src/wordfinder.hh \
|
|
|
|
src/wordlist.hh \
|
2023-04-18 00:41:47 +00:00
|
|
|
src/zipfile.hh \
|
2023-04-29 06:59:19 +00:00
|
|
|
thirdparty/tomlplusplus/toml.hpp
|
2013-01-17 09:08:53 +00:00
|
|
|
|
2023-04-17 17:40:05 +00:00
|
|
|
FORMS += $$files(src/ui/*.ui)
|
2015-01-22 15:17:05 +00:00
|
|
|
|
2023-04-17 20:55:34 +00:00
|
|
|
SOURCES += \
|
2023-04-17 21:17:36 +00:00
|
|
|
src/ankiconnector.cc \
|
|
|
|
src/article_maker.cc \
|
|
|
|
src/article_netmgr.cc \
|
2023-04-18 01:35:15 +00:00
|
|
|
src/common/atomic_rename.cc \
|
2023-04-17 21:17:36 +00:00
|
|
|
src/audiolink.cc \
|
|
|
|
src/audioplayerfactory.cc \
|
|
|
|
src/btreeidx.cc \
|
|
|
|
src/chunkedstorage.cc \
|
2023-04-18 00:41:47 +00:00
|
|
|
src/common/file.cc \
|
|
|
|
src/common/filetype.cc \
|
|
|
|
src/common/gddebug.cc \
|
|
|
|
src/common/globalbroadcaster.cc \
|
|
|
|
src/common/globalregex.cc \
|
2023-04-22 00:43:50 +00:00
|
|
|
src/common/help.cc \
|
2023-04-18 00:41:47 +00:00
|
|
|
src/common/htmlescape.cc \
|
|
|
|
src/common/iconv.cc \
|
|
|
|
src/common/ufile.cc \
|
|
|
|
src/common/utf8.cc \
|
|
|
|
src/common/utils.cc \
|
|
|
|
src/common/wstring_qt.cc \
|
2023-04-17 21:17:36 +00:00
|
|
|
src/config.cc \
|
|
|
|
src/decompress.cc \
|
|
|
|
src/delegate.cc \
|
2023-04-17 20:55:34 +00:00
|
|
|
src/dict/aard.cc \
|
|
|
|
src/dict/belarusiantranslit.cc \
|
|
|
|
src/dict/bgl.cc \
|
|
|
|
src/dict/bgl_babylon.cc \
|
2023-05-15 03:51:17 +00:00
|
|
|
src/dict/customtransliteration.cc \
|
2023-04-17 23:11:58 +00:00
|
|
|
src/dict/dictdfiles.cc \
|
2023-04-17 20:55:34 +00:00
|
|
|
src/dict/dictionary.cc \
|
2023-04-17 23:11:58 +00:00
|
|
|
src/dict/dictserver.cc \
|
2023-04-17 20:55:34 +00:00
|
|
|
src/dict/dsl.cc \
|
|
|
|
src/dict/dsl_details.cc \
|
|
|
|
src/dict/forvo.cc \
|
|
|
|
src/dict/german.cc \
|
|
|
|
src/dict/gls.cc \
|
|
|
|
src/dict/greektranslit.cc \
|
|
|
|
src/dict/hunspell.cc \
|
|
|
|
src/dict/lingualibre.cc \
|
2023-04-17 23:11:58 +00:00
|
|
|
src/dict/loaddictionaries.cc \
|
2023-04-17 20:55:34 +00:00
|
|
|
src/dict/lsa.cc \
|
2023-04-17 23:11:58 +00:00
|
|
|
src/dict/mdictparser.cc \
|
2023-04-17 20:55:34 +00:00
|
|
|
src/dict/mdx.cc \
|
|
|
|
src/dict/mediawiki.cc \
|
|
|
|
src/dict/programs.cc \
|
2023-04-18 00:41:47 +00:00
|
|
|
src/dict/ripemd.cc \
|
2023-04-17 20:55:34 +00:00
|
|
|
src/dict/romaji.cc \
|
|
|
|
src/dict/russiantranslit.cc \
|
|
|
|
src/dict/sdict.cc \
|
|
|
|
src/dict/slob.cc \
|
|
|
|
src/dict/sounddir.cc \
|
|
|
|
src/dict/sources.cc \
|
|
|
|
src/dict/stardict.cc \
|
|
|
|
src/dict/transliteration.cc \
|
|
|
|
src/dict/voiceengines.cc \
|
|
|
|
src/dict/website.cc \
|
|
|
|
src/dict/xdxf.cc \
|
|
|
|
src/dict/xdxf2html.cc \
|
|
|
|
src/dict/zim.cc \
|
|
|
|
src/dict/zipsounds.cc \
|
2023-04-17 21:17:36 +00:00
|
|
|
src/dictzip.c \
|
|
|
|
src/externalaudioplayer.cc \
|
|
|
|
src/externalviewer.cc \
|
|
|
|
src/ffmpegaudio.cc \
|
2023-04-18 01:35:15 +00:00
|
|
|
src/common/folding.cc \
|
2023-04-17 21:17:36 +00:00
|
|
|
src/ftshelpers.cc \
|
|
|
|
src/fulltextsearch.cc \
|
|
|
|
src/gestures.cc \
|
|
|
|
src/headwordsmodel.cc \
|
|
|
|
src/history.cc \
|
|
|
|
src/hotkeywrapper.cc \
|
|
|
|
src/iframeschemehandler.cc \
|
|
|
|
src/indexedzip.cc \
|
|
|
|
src/initializing.cc \
|
|
|
|
src/instances.cc \
|
|
|
|
src/keyboardstate.cc \
|
|
|
|
src/langcoder.cc \
|
|
|
|
src/language.cc \
|
|
|
|
src/main.cc \
|
2023-04-30 04:31:49 +00:00
|
|
|
src/metadata.cc \
|
2023-04-17 21:17:36 +00:00
|
|
|
src/multimediaaudioplayer.cc \
|
|
|
|
src/parsecmdline.cc \
|
|
|
|
src/resourceschemehandler.cc \
|
|
|
|
src/splitfile.cc \
|
|
|
|
src/termination.cc \
|
|
|
|
src/tiff.cc \
|
2023-04-17 23:11:58 +00:00
|
|
|
src/ui/about.cc \
|
|
|
|
src/ui/article_inspect.cc \
|
2023-04-17 20:55:34 +00:00
|
|
|
src/ui/articleview.cc \
|
2023-04-17 23:11:58 +00:00
|
|
|
src/ui/articlewebpage.cc \
|
|
|
|
src/ui/articlewebview.cc \
|
|
|
|
src/ui/dictheadwords.cc \
|
|
|
|
src/ui/dictinfo.cc \
|
|
|
|
src/ui/dictionarybar.cc \
|
|
|
|
src/ui/editdictionaries.cc \
|
|
|
|
src/ui/favoritespanewidget.cc \
|
2023-04-17 20:55:34 +00:00
|
|
|
src/ui/ftssearchpanel.cc \
|
2023-04-17 23:11:58 +00:00
|
|
|
src/ui/groupcombobox.cc \
|
|
|
|
src/ui/groups.cc \
|
|
|
|
src/ui/groups_widgets.cc \
|
|
|
|
src/ui/historypanewidget.cc \
|
|
|
|
src/ui/mainstatusbar.cc \
|
|
|
|
src/ui/maintabwidget.cc \
|
|
|
|
src/ui/mainwindow.cc \
|
|
|
|
src/ui/mruqmenu.cc \
|
|
|
|
src/ui/orderandprops.cc \
|
|
|
|
src/ui/preferences.cc \
|
|
|
|
src/ui/scanpopup.cc \
|
2023-04-17 20:55:34 +00:00
|
|
|
src/ui/searchpanel.cc \
|
2023-04-17 23:11:58 +00:00
|
|
|
src/ui/stylescombobox.cc \
|
|
|
|
src/ui/translatebox.cc \
|
2023-04-17 21:17:36 +00:00
|
|
|
src/webmultimediadownload.cc \
|
|
|
|
src/weburlrequestinterceptor.cc \
|
|
|
|
src/wordfinder.cc \
|
|
|
|
src/wordlist.cc \
|
2023-05-19 23:55:56 +00:00
|
|
|
src/zipfile.cc \
|
|
|
|
thirdparty/fmt/format.cc
|
2013-01-17 09:08:53 +00:00
|
|
|
|
2022-07-31 01:19:50 +00:00
|
|
|
#speech to text
|
2023-04-17 21:56:55 +00:00
|
|
|
SOURCES += src/speechclient.cc \
|
|
|
|
src/texttospeechsource.cc
|
|
|
|
HEADERS += src/texttospeechsource.hh \
|
|
|
|
src/speechclient.hh
|
2013-04-10 13:31:44 +00:00
|
|
|
|
|
|
|
mac {
|
2023-04-18 00:00:36 +00:00
|
|
|
HEADERS += src/macos/macmouseover.hh \
|
|
|
|
src/macos/gd_clipboard.hh
|
|
|
|
SOURCES += src/macos/gd_clipboard.cc
|
2013-04-10 13:31:44 +00:00
|
|
|
}
|
|
|
|
|
2017-06-05 13:15:38 +00:00
|
|
|
unix:!mac {
|
2023-04-17 23:11:58 +00:00
|
|
|
HEADERS += src/ui/scanflag.hh
|
|
|
|
SOURCES += src/ui/scanflag.cc
|
2017-06-05 13:15:38 +00:00
|
|
|
}
|
|
|
|
|
2022-01-23 22:49:20 +00:00
|
|
|
|
2023-04-18 01:35:15 +00:00
|
|
|
HEADERS += src/common/wildcard.hh
|
|
|
|
SOURCES += src/common/wildcard.cc
|
2022-01-23 22:49:20 +00:00
|
|
|
|
2018-02-21 14:43:35 +00:00
|
|
|
|
2013-09-14 16:17:32 +00:00
|
|
|
CONFIG( zim_support ) {
|
|
|
|
DEFINES += MAKE_ZIM_SUPPORT
|
2023-05-27 04:12:16 +00:00
|
|
|
LIBS += -llzma -lzstd -lzim
|
|
|
|
|
|
|
|
win32{
|
|
|
|
Debug: LIBS+= -L$$PWD/winlibs/lib/dbg/
|
|
|
|
Release: LIBS+= -L$$PWD/winlibs/lib/
|
|
|
|
}
|
2013-09-14 16:17:32 +00:00
|
|
|
}
|
|
|
|
|
2014-05-20 13:59:56 +00:00
|
|
|
CONFIG( no_epwing_support ) {
|
|
|
|
DEFINES += NO_EPWING_SUPPORT
|
|
|
|
}
|
|
|
|
|
|
|
|
!CONFIG( no_epwing_support ) {
|
2023-04-17 22:36:29 +00:00
|
|
|
HEADERS += src/dict/epwing.hh \
|
|
|
|
src/dict/epwing_book.hh \
|
|
|
|
src/dict/epwing_charmap.hh
|
|
|
|
SOURCES += src/dict/epwing.cc \
|
|
|
|
src/dict/epwing_book.cc \
|
|
|
|
src/dict/epwing_charmap.cc
|
2023-05-11 02:48:25 +00:00
|
|
|
if(win32){
|
|
|
|
INCLUDEPATH += thirdparty
|
|
|
|
HEADERS += $$files(thirdparty/eb/*.h)
|
|
|
|
SOURCES += $$files(thirdparty/eb/*.c)
|
|
|
|
}
|
|
|
|
else{
|
|
|
|
LIBS += -leb
|
|
|
|
}
|
2014-05-20 13:59:56 +00:00
|
|
|
}
|
|
|
|
|
2015-10-25 13:54:38 +00:00
|
|
|
CONFIG( chinese_conversion_support ) {
|
|
|
|
DEFINES += MAKE_CHINESE_CONVERSION_SUPPORT
|
2023-04-17 22:18:28 +00:00
|
|
|
FORMS += src/ui/chineseconversion.ui
|
|
|
|
HEADERS += src/dict/chinese.hh \
|
2023-04-17 23:11:58 +00:00
|
|
|
src/ui/chineseconversion.hh
|
2023-04-17 22:18:28 +00:00
|
|
|
SOURCES += src/dict/chinese.cc \
|
2023-04-17 23:11:58 +00:00
|
|
|
src/ui/chineseconversion.cc
|
2022-03-25 05:04:49 +00:00
|
|
|
LIBS += -lopencc
|
2015-10-19 13:52:23 +00:00
|
|
|
}
|
|
|
|
|
2009-05-16 18:04:21 +00:00
|
|
|
RESOURCES += resources.qrc \
|
2023-04-18 01:26:05 +00:00
|
|
|
src/scripts/scripts.qrc \
|
2023-04-18 00:44:50 +00:00
|
|
|
icons/flags.qrc \
|
2023-04-17 17:40:05 +00:00
|
|
|
src/stylesheets/css.qrc
|
2022-03-27 13:03:57 +00:00
|
|
|
#EXTRA_TRANSLATIONS += thirdparty/qwebengine_ts/qtwebengine_zh_CN.ts
|
2023-04-17 17:40:05 +00:00
|
|
|
TRANSLATIONS += $$files(locale/*.ts)
|
|
|
|
|
2010-07-02 17:07:05 +00:00
|
|
|
# Build version file
|
2010-07-03 11:01:01 +00:00
|
|
|
!isEmpty( hasGit ) {
|
2012-12-03 19:11:33 +00:00
|
|
|
PRE_TARGETDEPS += $$PWD/version.txt
|
2010-07-03 11:01:01 +00:00
|
|
|
}
|
2010-07-02 17:07:05 +00:00
|
|
|
|
2022-09-21 15:40:06 +00:00
|
|
|
# This makes qmake generate translations
|
|
|
|
|
|
|
|
|
|
|
|
isEmpty(QMAKE_LRELEASE):QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease
|
|
|
|
|
|
|
|
|
|
|
|
# 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)
|
|
|
|
}
|
|
|
|
else{
|
|
|
|
system($${QMAKE_LRELEASE} -silent $${_PRO_FILE_})
|
|
|
|
}
|
2013-07-21 08:45:21 +00:00
|
|
|
|
2022-09-21 15:40:06 +00:00
|
|
|
updateqm.input = TRANSLATIONS
|
|
|
|
updateqm.output = locale/${QMAKE_FILE_BASE}.qm
|
|
|
|
updateqm.commands = $$QMAKE_LRELEASE \
|
|
|
|
${QMAKE_FILE_IN} \
|
|
|
|
-qm \
|
|
|
|
${QMAKE_FILE_OUT}
|
|
|
|
updateqm.CONFIG += no_link
|
|
|
|
QMAKE_EXTRA_COMPILERS += updateqm
|
|
|
|
TS_OUT = $$TRANSLATIONS
|
|
|
|
TS_OUT ~= s/.ts/.qm/g
|
|
|
|
PRE_TARGETDEPS += $$TS_OUT
|
2010-11-20 13:43:55 +00:00
|
|
|
|
2023-02-01 15:08:57 +00:00
|
|
|
#QTBUG-105984
|
|
|
|
# avoid qt6.4.0-6.4.2 . the qtmultimedia module is buggy in all these versions
|
2022-10-22 06:45:50 +00:00
|
|
|
|
2022-02-18 12:50:15 +00:00
|
|
|
include( thirdparty/qtsingleapplication/src/qtsingleapplication.pri )
|
2011-09-09 12:05:28 +00:00
|
|
|
|