From 136d1cb03b3c2ed98d9be095ca39de845efdaefc Mon Sep 17 00:00:00 2001 From: YiFang Xiao Date: Thu, 11 May 2023 10:48:25 +0800 Subject: [PATCH] opt: only use eb source on Windows --- goldendict.pro | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/goldendict.pro b/goldendict.pro index 8e2c6f31..f5f4e963 100644 --- a/goldendict.pro +++ b/goldendict.pro @@ -571,9 +571,14 @@ CONFIG( no_epwing_support ) { SOURCES += src/dict/epwing.cc \ src/dict/epwing_book.cc \ src/dict/epwing_charmap.cc - INCLUDEPATH += thirdparty - HEADERS += $$files(thirdparty/eb/*.h) - SOURCES += $$files(thirdparty/eb/*.c) + if(win32){ + INCLUDEPATH += thirdparty + HEADERS += $$files(thirdparty/eb/*.h) + SOURCES += $$files(thirdparty/eb/*.c) + } + else{ + LIBS += -leb + } } CONFIG( chinese_conversion_support ) {