Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ZSaberLv0 committed Jun 29, 2024
1 parent 7b92b24 commit 465808c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
16 changes: 16 additions & 0 deletions ZFLoader/zfproj_with_src/Qt/ZFLoader/ZFLoader.pro
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,22 @@ ZF_PROJ_SRC_EXT_PATH += $${_PRO_FILE_PWD_}/../../../zfsrc_ext
# can hold one or more paths, separated by space
ZF_PROJ_RES_PATH = $${_PRO_FILE_PWD_}/../../../zfres

# dllimport not work for app with all src, disable it explicitly
DEFINES += ZFLIB_ZFCore=
DEFINES += ZFLIB_ZFAlgorithm=
DEFINES += ZFLIB_ZFUtility=
DEFINES += ZFLIB_ZFUIKit=
DEFINES += ZFLIB_ZFUIWidget=
DEFINES += ZFLIB_ZFLua=
DEFINES += ZFLIB_ZFUIWebKit=
DEFINES += ZFLIB_ZFNet=
DEFINES += ZFLIB_ZF_impl=
DEFINES += ZFLIB_ZFCore_impl=
DEFINES += ZFLIB_ZFAlgorithm_impl=
DEFINES += ZFLIB_ZFUIKit_impl=
DEFINES += ZFLIB_ZFLua_impl=
DEFINES += ZFLIB_ZFUIWebKit_impl=
DEFINES += ZFLIB_ZFNet_impl=

# ======================================================================
CONFIG(debug, debug|release) {
Expand Down
5 changes: 5 additions & 0 deletions ZFLoader/zfproj_with_src/cmake/ZFLoader/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,8 @@ if(COMMAND zfprojConfigAfter_ZFLoader)
zfprojConfigAfter_ZFLoader(ZFLoader)
endif()

# dllimport not work for app with all src, disable it explicitly
foreach(LIB_NAME_ ${ZF_LIB_NAMES})
target_compile_definitions(ZFLoader PUBLIC ZFLIB_${LIB_NAME_}=)
endforeach()

0 comments on commit 465808c

Please sign in to comment.