Enable wxWebviewChromium dynamic builds.

This commit is contained in:
Haojian Wu 2014-05-29 00:14:47 +08:00 committed by Tobias Taschner
parent 9de0e4fdd7
commit 3a4d793579
No known key found for this signature in database
GPG key ID: AE6ECD71294F87FD
4 changed files with 24 additions and 2 deletions

View file

@ -3102,6 +3102,24 @@ IMPORTANT: please read docs/tech/tn0016.txt before modifying this file!
<set var="CEF_INCLUDE_DIR">
</set>
<set var="CONFIGURE" >
<if cond="BUILD=='debug'">Debug</if>
<if cond="BUILD=='release'">Release</if>
</set>
<!--specify CEF lib dir-->
<set var="CEF_LIB_DIR">
<if cond="PLATFORM_WIN32=='1'">
$(CEF_INCLUDE_DIR)/$(CONFIGURE)/,$(CEF_INCLUDE_DIR)/out/$(CONFIGURE)/lib/
</if>
<if cond="PLATFORM_MACOSX=='1'">
<!--TODO -->
</if>
<if cond="PLATFORM_UNIX=='1'">
<!--TODO -->
</if>
</set>
<set var="WEBVIEW_SRC_PLATFORM">
<if cond="TOOLKIT=='MSW'">src/msw/webview_ie.cpp</if>
<if cond="TOOLKIT=='GTK'">

View file

@ -186,6 +186,10 @@
<library>basedll</library>
<ldlibs>$(EXTRALIBS_WEBVIEW)</ldlibs>
<msvc-headers>$(WEBVIEW_HDR)</msvc-headers>
<include>$(CEF_INCLUDE_DIR)</include>
<lib-path>$(CEF_LIB_DIR)</lib-path>
<sys-lib>libcef</sys-lib>
<sys-lib>libcef_dll_wrapper</sys-lib>
</dll>
<lib id="webviewlib" template="wx_lib"

View file

@ -26,7 +26,7 @@
#pragma warning(pop)
#endif
extern const char wxWebViewBackendChromium[];
extern WXDLLIMPEXP_DATA_WEBVIEW(const char) wxWebViewBackendChromium[];
class wxWebViewChromium;

View file

@ -26,7 +26,7 @@
#pragma warning(pop)
#endif
extern const char wxWebViewBackendChromium[] = "wxWebViewChromium";
extern WXDLLIMPEXP_DATA_WEBVIEW(const char) wxWebViewBackendChromium[] = "wxWebViewChromium";
wxIMPLEMENT_DYNAMIC_CLASS(wxWebViewChromium, wxWebView);