The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
/////////////////////////////////////////////////////////////////////////////
// Name:        ext/webview/WebView.xs
// Purpose:     XS for Wx::WebView
// Author:      Mark Dootson
// Modified by:
// Created:     17/03/2012
// SVN-ID:      $Id: $
// Copyright:   (c) 2012 Mattia Barbon
// Licence:     This program is free software; you can redistribute it and/or
//              modify it under the same terms as Perl itself
/////////////////////////////////////////////////////////////////////////////

#define PERL_NO_GET_CONTEXT

#include "cpp/wxapi.h"
#include "cpp/constants.h"
#include "cpp/overload.h"

#undef THIS

#if WXPERL_W_VERSION_GE( 2, 9, 3 ) && wxUSE_WEBVIEW

#include <wx/filesys.h>
#include <wx/webview.h>
#include <wx/webviewarchivehandler.h>
#include "cpp/streams.h"
#include "cpp/helpers.h"

#endif

MODULE=Wx__WebView

BOOT:
  INIT_PLI_HELPERS( wx_pli_helpers );

#if WXPERL_W_VERSION_GE( 2, 9, 3 ) && wxUSE_WEBVIEW

INCLUDE_COMMAND: $^X -I../.. -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp -t ../../typemap.xsp XS/WebView.xsp

MODULE=Wx__WebView PACKAGE=Wx::WebView

#include "cpp/ovl_const.cpp"
#include <cpp/webview_constants.cpp>

#endif

#  //FIXME//tricky
#if defined(__WXMSW__)
#undef XS
#define XS( name ) WXXS( name )
#endif

MODULE=Wx__WebView