Always define WXUSINGDLL when compiling Scintilla in shared wx build.
We need WXUSINGDLL even in monolithic build because Scintilla references wx debugging functions (wxOnAssert(), wxTheAssertHandler &c) which still must be seen as being exported from the (monolithic) DLL in this case. See #12626. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66222 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
aa6b8882a4
commit
02c9115ba8
@ -2053,7 +2053,7 @@ COND_USE_STC_1___wxscintilla___depname = \
|
||||
@COND_SHARED_0_USE_STC_1@ = install_wxscintilla
|
||||
@COND_SHARED_0_USE_STC_1@__uninstall_wxscintilla___depname \
|
||||
@COND_SHARED_0_USE_STC_1@ = uninstall_wxscintilla
|
||||
@COND_MONOLITHIC_0_SHARED_1@__wxscintilla_usingdll_p = -DWXUSINGDLL
|
||||
@COND_SHARED_1@__wxscintilla_usingdll_p = -DWXUSINGDLL
|
||||
@COND_MONOLITHIC_0@EXTRALIBS_FOR_BASE = $(EXTRALIBS)
|
||||
@COND_MONOLITHIC_1@EXTRALIBS_FOR_BASE = $(EXTRALIBS) $(EXTRALIBS_GUI)
|
||||
@COND_MONOLITHIC_0@EXTRALIBS_FOR_GUI = $(EXTRALIBS_GUI)
|
||||
|
@ -39,7 +39,7 @@
|
||||
</template>
|
||||
|
||||
<set var="wxscintilla_usingdll">
|
||||
<if cond="SHARED=='1' and MONOLITHIC=='0'">WXUSINGDLL</if>
|
||||
<if cond="SHARED=='1'">WXUSINGDLL</if>
|
||||
</set>
|
||||
|
||||
<lib id="wxscintilla" template="3rdparty_lib,wxscintilla_cppflags"
|
||||
|
@ -1526,7 +1526,7 @@ __wxjpeg___depname = $(LIBDIRNAME)\wxjpeg$(WXDEBUGFLAG).lib
|
||||
!if "$(USE_GUI)" == "1"
|
||||
__wxtiff___depname = $(LIBDIRNAME)\wxtiff$(WXDEBUGFLAG).lib
|
||||
!endif
|
||||
!if "$(MONOLITHIC)" == "0" && "$(SHARED)" == "1"
|
||||
!if "$(SHARED)" == "1"
|
||||
__wxscintilla_usingdll_p = -DWXUSINGDLL
|
||||
!endif
|
||||
!if "$(MONOLITHIC)" == "0"
|
||||
|
@ -1532,11 +1532,9 @@ endif
|
||||
ifeq ($(USE_GUI),1)
|
||||
__wxtiff___depname = $(LIBDIRNAME)\libwxtiff$(WXDEBUGFLAG).a
|
||||
endif
|
||||
ifeq ($(MONOLITHIC),0)
|
||||
ifeq ($(SHARED),1)
|
||||
__wxscintilla_usingdll_p = -DWXUSINGDLL
|
||||
endif
|
||||
endif
|
||||
ifeq ($(MONOLITHIC),0)
|
||||
EXTRALIBS_FOR_BASE =
|
||||
endif
|
||||
|
@ -1716,7 +1716,7 @@ __RUNTIME_LIBS_100 = D
|
||||
!if "$(RUNTIME_LIBS)" == "static"
|
||||
__RUNTIME_LIBS_100 = $(__THREADSFLAG)
|
||||
!endif
|
||||
!if "$(MONOLITHIC)" == "0" && "$(SHARED)" == "1"
|
||||
!if "$(SHARED)" == "1"
|
||||
__wxscintilla_usingdll_p = /DWXUSINGDLL
|
||||
!endif
|
||||
!if "$(MONOLITHIC)" == "0"
|
||||
|
@ -81,11 +81,9 @@ __wxtiff___depname =
|
||||
__wxtiff___depname = $(LIBDIRNAME)\wxtiff$(WXDEBUGFLAG).lib
|
||||
!endif
|
||||
__wxscintilla_usingdll_p =
|
||||
!ifeq MONOLITHIC 0
|
||||
!ifeq SHARED 1
|
||||
__wxscintilla_usingdll_p = -dWXUSINGDLL
|
||||
!endif
|
||||
!endif
|
||||
EXTRALIBS_FOR_BASE =
|
||||
!ifeq MONOLITHIC 0
|
||||
EXTRALIBS_FOR_BASE =
|
||||
|
Loading…
Reference in New Issue
Block a user