wxwidgets/samples/webview_chromium/webview.cpp
Tobias Taschner 98a91eef40
Use single code base for webview_chromium and webview sample
While extra project/build files are required because of
extra linked libraries the core UI source only needs a few
small tweaks.
2018-02-20 18:33:13 +01:00

22 lines
729 B
C++

/////////////////////////////////////////////////////////////////////////////
// Name: webview.cpp
// Purpose: wxWebViewChromium sample proxy
// Author: Tobias Taschner
// Copyright: (c) 2018 wxWidgets development team
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
/*
The chromium sample is identical to the webview sample but needs different
libraries to be linked and uses a different project/build files
*/
#include "wx/wx.h"
#if !wxUSE_WEBVIEW_CHROMIUM
#error "A wxWebView Chromium backend is required by this sample"
#endif
// Include the default webview sample
#define wxWEBVIEW_SAMPLE_CHROMIUM
#include "../webview/webview.cpp"