macos opencc pkgconfig

This commit is contained in:
xiaoyifang 2022-03-12 20:16:01 +08:00
parent 4255b4854e
commit ca0dd2ba91
2 changed files with 4 additions and 1 deletions

View file

@ -193,6 +193,8 @@ mac {
-lavformat-gd \ -lavformat-gd \
-lavcodec-gd -lavcodec-gd
} }
QT_CONFIG -= no-pkg-config
CONFIG += link_pkgconfig
INCLUDEPATH = $${PWD}/maclibs/include INCLUDEPATH = $${PWD}/maclibs/include
LIBS += -L$${PWD}/maclibs/lib -framework AppKit -framework Carbon LIBS += -L$${PWD}/maclibs/lib -framework AppKit -framework Carbon
OBJECTIVE_SOURCES += lionsupport.mm \ OBJECTIVE_SOURCES += lionsupport.mm \
@ -211,6 +213,7 @@ mac {
CONFIG += zim_support CONFIG += zim_support
!CONFIG( no_chinese_conversion_support ) { !CONFIG( no_chinese_conversion_support ) {
CONFIG += chinese_conversion_support CONFIG += chinese_conversion_support
PKGCONFIG += opencc
QMAKE_POST_LINK += & mkdir -p GoldenDict.app/Contents/MacOS/opencc & \ QMAKE_POST_LINK += & mkdir -p GoldenDict.app/Contents/MacOS/opencc & \
cp -R $${PWD}/opencc/*.* GoldenDict.app/Contents/MacOS/opencc/ cp -R $${PWD}/opencc/*.* GoldenDict.app/Contents/MacOS/opencc/
} }
@ -543,7 +546,7 @@ CONFIG( chinese_conversion_support ) {
LIBS += -lopencc LIBS += -lopencc
} else { } else {
mac { mac {
LIBS += -lopencc.1.1 LIBS += -lopencc
} else { } else {
LIBS += -lopencc LIBS += -lopencc
} }

Binary file not shown.