mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-23 20:14:05 +00:00
1
This commit is contained in:
parent
d839b3488d
commit
a8403dcf29
4
.github/workflows/Release-all.yml
vendored
4
.github/workflows/Release-all.yml
vendored
|
@ -39,11 +39,11 @@ jobs:
|
||||||
libogg \
|
libogg \
|
||||||
libvorbis \
|
libvorbis \
|
||||||
libzim \
|
libzim \
|
||||||
|
icu4c \
|
||||||
lzip \
|
lzip \
|
||||||
ninja \
|
ninja \
|
||||||
opencc \
|
opencc \
|
||||||
xapian
|
xapian
|
||||||
brew install icu4c --force
|
|
||||||
- name: Install eb
|
- name: Install eb
|
||||||
run: |
|
run: |
|
||||||
git clone https://github.com/xiaoyifang/eb.git
|
git clone https://github.com/xiaoyifang/eb.git
|
||||||
|
|
|
@ -79,15 +79,13 @@ endif ()
|
||||||
if (WITH_ZIM)
|
if (WITH_ZIM)
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
|
|
||||||
# 执行 brew list 命令并捕获输出
|
if (EXISTS /opt/homebrew)
|
||||||
execute_process(
|
set(ENV{PKG_CONFIG_PATH} "/opt/homebrew/lib/pkgconfig:$ENV{PKG_CONFIG_PATH}")
|
||||||
COMMAND brew --prefix libzim
|
endif()
|
||||||
OUTPUT_VARIABLE LIBZIM_PATH
|
|
||||||
|
if (EXISTS /usr/local)
|
||||||
)
|
set(ENV{PKG_CONFIG_PATH} "/usr/local/lib/pkgconfig:$ENV{PKG_CONFIG_PATH}")
|
||||||
message(STATUS "zim path:${LIBZIM_PATH}")
|
endif()
|
||||||
# ICU from homebrew is "key-only", we need to manually prioritize it -> see `brew info icu4c`
|
|
||||||
set(ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:${LIBZIM_PATH}/lib/pkgconfig")
|
|
||||||
endif ()
|
endif ()
|
||||||
pkg_check_modules(ZIM REQUIRED IMPORTED_TARGET libzim)
|
pkg_check_modules(ZIM REQUIRED IMPORTED_TARGET libzim)
|
||||||
target_link_libraries(${GOLDENDICT} PRIVATE PkgConfig::ZIM)
|
target_link_libraries(${GOLDENDICT} PRIVATE PkgConfig::ZIM)
|
||||||
|
|
Loading…
Reference in a new issue