mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
macos opencc pkgconfig
This commit is contained in:
parent
4255b4854e
commit
ca0dd2ba91
|
@ -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.
Loading…
Reference in a new issue