optimize:utf-8 source encoding and execution encoding .

compatible with VS utf-8 bom complain about transliteration file
This commit is contained in:
xiaoyifang 2022-02-26 13:21:27 +08:00
parent 84dcc1cbb1
commit 0bf5bbf501

View file

@ -96,6 +96,8 @@ win32 {
-lavcodec
}
CONFIG+=utf8_source
RC_ICONS += icons/programicon.ico icons/programicon_old.ico
INCLUDEPATH += winlibs/include
@ -210,14 +212,8 @@ mac {
CONFIG += zim_support
!CONFIG( no_chinese_conversion_support ) {
CONFIG += chinese_conversion_support
#CONFIG( x86 ) {
QMAKE_POST_LINK += & mkdir -p GoldenDict.app/Contents/MacOS/opencc & \
cp -R $${PWD}/opencc/*.* GoldenDict.app/Contents/MacOS/opencc/
#} else {
# QMAKE_POST_LINK += & mkdir -p GoldenDict.app/Contents/MacOS/opencc & \
# cp -R $${PWD}/opencc/x64/*.json GoldenDict.app/Contents/MacOS/opencc/ & \
# cp -R $${PWD}/opencc/x64/*.ocd GoldenDict.app/Contents/MacOS/opencc/
#}
QMAKE_POST_LINK += & mkdir -p GoldenDict.app/Contents/MacOS/opencc & \
cp -R $${PWD}/opencc/*.* GoldenDict.app/Contents/MacOS/opencc/
}
}
DEFINES += PROGRAM_VERSION=\\\"$$VERSION\\\"