Fix Linux compile errors.
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@150 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
e826c9b1a0
commit
871a8a7770
1
cef.gyp
1
cef.gyp
|
@ -153,7 +153,6 @@
|
|||
[ 'OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
|
||||
'sources': [
|
||||
'tests/cefclient/cefclient_gtk.cpp',
|
||||
'tests/cefclient/string_util_gtk.cpp',
|
||||
],
|
||||
}],
|
||||
],
|
||||
|
|
|
@ -710,7 +710,7 @@ typedef struct _cef_post_data_element_t
|
|||
} cef_post_data_element_t;
|
||||
|
||||
|
||||
// Create a new cef_post_data_tElement object.
|
||||
// Create a new cef_post_data_element_t object.
|
||||
CEF_EXPORT cef_post_data_element_t* cef_post_data_element_create();
|
||||
|
||||
|
||||
|
|
|
@ -74,7 +74,9 @@ struct CefPluginInfo {
|
|||
std::vector<CefPluginMimeType> mime_types;
|
||||
|
||||
// Entry point function pointers.
|
||||
#if !defined(OS_POSIX) || defined(OS_MACOSX)
|
||||
NP_GetEntryPointsFunc np_getentrypoints;
|
||||
#endif
|
||||
NP_InitializeFunc np_initialize;
|
||||
NP_ShutdownFunc np_shutdown;
|
||||
};
|
||||
|
|
|
@ -74,7 +74,9 @@ typedef struct _cef_plugin_info_t {
|
|||
cef_string_t type_descriptions;
|
||||
|
||||
// Entry point function pointers.
|
||||
#if !defined(OS_POSIX) || defined(OS_MACOSX)
|
||||
NP_GetEntryPointsFunc np_getentrypoints;
|
||||
#endif
|
||||
NP_InitializeFunc np_initialize;
|
||||
NP_ShutdownFunc np_shutdown;
|
||||
} cef_plugin_info_t;
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#ifdef BUILDING_CEF_SHARED
|
||||
#include "base/string16.h"
|
||||
#endif
|
||||
#include <memory.h>
|
||||
#include <string>
|
||||
|
||||
// Traits implementation for wide character strings.
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
#include "base/compiler_specific.h"
|
||||
|
||||
#include "third_party/webkit/webcore/config.h"
|
||||
#include "third_party/WebKit/WebCore/config.h"
|
||||
MSVC_PUSH_WARNING_LEVEL(0);
|
||||
#include "MemoryCache.h"
|
||||
#include "TextEncoding.h"
|
||||
|
|
|
@ -91,7 +91,9 @@ static void UIT_RegisterPlugin(struct CefPluginInfo* plugin_info)
|
|||
}
|
||||
}
|
||||
|
||||
#if !defined(OS_POSIX) || defined(OS_MACOSX)
|
||||
info.entry_points.np_getentrypoints = plugin_info->np_getentrypoints;
|
||||
#endif
|
||||
info.entry_points.np_initialize = plugin_info->np_initialize;
|
||||
info.entry_points.np_shutdown = plugin_info->np_shutdown;
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
#include "stream_impl.h"
|
||||
#include "base/logging.h"
|
||||
#include <stdlib.h>
|
||||
|
||||
// Static functions
|
||||
|
||||
|
|
|
@ -264,6 +264,7 @@ CefBrowserCppToC::CefBrowserCppToC(CefBrowser* cls)
|
|||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
long CefCppToC<CefBrowserCppToC, CefBrowser, cef_browser_t>::DebugObjCt = 0;
|
||||
template<> long CefCppToC<CefBrowserCppToC, CefBrowser,
|
||||
cef_browser_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@ CefDownloadHandlerCppToC::CefDownloadHandlerCppToC(CefDownloadHandler* cls)
|
|||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
long CefCppToC<CefDownloadHandlerCppToC, CefDownloadHandler,
|
||||
template<> long CefCppToC<CefDownloadHandlerCppToC, CefDownloadHandler,
|
||||
cef_download_handler_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -240,6 +240,7 @@ CefFrameCppToC::CefFrameCppToC(CefFrame* cls)
|
|||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
long CefCppToC<CefFrameCppToC, CefFrame, cef_frame_t>::DebugObjCt = 0;
|
||||
template<> long CefCppToC<CefFrameCppToC, CefFrame, cef_frame_t>::DebugObjCt =
|
||||
0;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -532,6 +532,7 @@ CefHandlerCppToC::CefHandlerCppToC(CefHandler* cls)
|
|||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
long CefCppToC<CefHandlerCppToC, CefHandler, cef_handler_t>::DebugObjCt = 0;
|
||||
template<> long CefCppToC<CefHandlerCppToC, CefHandler,
|
||||
cef_handler_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -101,6 +101,7 @@ CefPostDataCppToC::CefPostDataCppToC(CefPostData* cls)
|
|||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
long CefCppToC<CefPostDataCppToC, CefPostData, cef_post_data_t>::DebugObjCt = 0;
|
||||
template<> long CefCppToC<CefPostDataCppToC, CefPostData,
|
||||
cef_post_data_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -115,7 +115,7 @@ CefPostDataElementCppToC::CefPostDataElementCppToC(CefPostDataElement* cls)
|
|||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
long CefCppToC<CefPostDataElementCppToC, CefPostDataElement,
|
||||
template<> long CefCppToC<CefPostDataElementCppToC, CefPostDataElement,
|
||||
cef_post_data_element_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -66,7 +66,7 @@ CefReadHandlerCppToC::CefReadHandlerCppToC(CefReadHandler* cls)
|
|||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
long CefCppToC<CefReadHandlerCppToC, CefReadHandler,
|
||||
template<> long CefCppToC<CefReadHandlerCppToC, CefReadHandler,
|
||||
cef_read_handler_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -162,6 +162,7 @@ CefRequestCppToC::CefRequestCppToC(CefRequest* cls)
|
|||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
long CefCppToC<CefRequestCppToC, CefRequest, cef_request_t>::DebugObjCt = 0;
|
||||
template<> long CefCppToC<CefRequestCppToC, CefRequest,
|
||||
cef_request_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -70,7 +70,7 @@ CefSchemeHandlerCppToC::CefSchemeHandlerCppToC(CefSchemeHandler* cls)
|
|||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
long CefCppToC<CefSchemeHandlerCppToC, CefSchemeHandler,
|
||||
template<> long CefCppToC<CefSchemeHandlerCppToC, CefSchemeHandler,
|
||||
cef_scheme_handler_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ CefSchemeHandlerFactoryCppToC::CefSchemeHandlerFactoryCppToC(
|
|||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
long CefCppToC<CefSchemeHandlerFactoryCppToC, CefSchemeHandlerFactory,
|
||||
cef_scheme_handler_factory_t>::DebugObjCt = 0;
|
||||
template<> long CefCppToC<CefSchemeHandlerFactoryCppToC,
|
||||
CefSchemeHandlerFactory, cef_scheme_handler_factory_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -100,7 +100,7 @@ CefStreamReaderCppToC::CefStreamReaderCppToC(CefStreamReader* cls)
|
|||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
long CefCppToC<CefStreamReaderCppToC, CefStreamReader,
|
||||
template<> long CefCppToC<CefStreamReaderCppToC, CefStreamReader,
|
||||
cef_stream_reader_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -99,7 +99,7 @@ CefStreamWriterCppToC::CefStreamWriterCppToC(CefStreamWriter* cls)
|
|||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
long CefCppToC<CefStreamWriterCppToC, CefStreamWriter,
|
||||
template<> long CefCppToC<CefStreamWriterCppToC, CefStreamWriter,
|
||||
cef_stream_writer_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -35,6 +35,6 @@ CefTaskCppToC::CefTaskCppToC(CefTask* cls)
|
|||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
long CefCppToC<CefTaskCppToC, CefTask, cef_task_t>::DebugObjCt = 0;
|
||||
template<> long CefCppToC<CefTaskCppToC, CefTask, cef_task_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@ CefV8HandlerCppToC::CefV8HandlerCppToC(CefV8Handler* cls)
|
|||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
long CefCppToC<CefV8HandlerCppToC, CefV8Handler, cef_v8handler_t>::DebugObjCt =
|
||||
0;
|
||||
template<> long CefCppToC<CefV8HandlerCppToC, CefV8Handler,
|
||||
cef_v8handler_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -430,6 +430,7 @@ CefV8ValueCppToC::CefV8ValueCppToC(CefV8Value* cls)
|
|||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
long CefCppToC<CefV8ValueCppToC, CefV8Value, cef_v8value_t>::DebugObjCt = 0;
|
||||
template<> long CefCppToC<CefV8ValueCppToC, CefV8Value,
|
||||
cef_v8value_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -67,7 +67,7 @@ CefWriteHandlerCppToC::CefWriteHandlerCppToC(CefWriteHandler* cls)
|
|||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
long CefCppToC<CefWriteHandlerCppToC, CefWriteHandler,
|
||||
template<> long CefCppToC<CefWriteHandlerCppToC, CefWriteHandler,
|
||||
cef_write_handler_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -378,7 +378,7 @@ CefXmlReaderCppToC::CefXmlReaderCppToC(CefXmlReader* cls)
|
|||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
long CefCppToC<CefXmlReaderCppToC, CefXmlReader, cef_xml_reader_t>::DebugObjCt =
|
||||
0;
|
||||
template<> long CefCppToC<CefXmlReaderCppToC, CefXmlReader,
|
||||
cef_xml_reader_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -166,7 +166,7 @@ CefZipReaderCppToC::CefZipReaderCppToC(CefZipReader* cls)
|
|||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
long CefCppToC<CefZipReaderCppToC, CefZipReader, cef_zip_reader_t>::DebugObjCt =
|
||||
0;
|
||||
template<> long CefCppToC<CefZipReaderCppToC, CefZipReader,
|
||||
cef_zip_reader_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -198,6 +198,7 @@ void CefBrowserCToCpp::StopFinding(bool clearSelection)
|
|||
|
||||
|
||||
#ifdef _DEBUG
|
||||
long CefCToCpp<CefBrowserCToCpp, CefBrowser, cef_browser_t>::DebugObjCt = 0;
|
||||
template<> long CefCToCpp<CefBrowserCToCpp, CefBrowser,
|
||||
cef_browser_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ void CefDownloadHandlerCToCpp::Complete()
|
|||
|
||||
|
||||
#ifdef _DEBUG
|
||||
long CefCToCpp<CefDownloadHandlerCToCpp, CefDownloadHandler,
|
||||
template<> long CefCToCpp<CefDownloadHandlerCToCpp, CefDownloadHandler,
|
||||
cef_download_handler_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -195,6 +195,7 @@ CefString CefFrameCToCpp::GetURL()
|
|||
|
||||
|
||||
#ifdef _DEBUG
|
||||
long CefCToCpp<CefFrameCToCpp, CefFrame, cef_frame_t>::DebugObjCt = 0;
|
||||
template<> long CefCToCpp<CefFrameCToCpp, CefFrame, cef_frame_t>::DebugObjCt =
|
||||
0;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -367,6 +367,7 @@ CefHandler::RetVal CefHandlerCToCpp::HandleFindResult(
|
|||
|
||||
|
||||
#ifdef _DEBUG
|
||||
long CefCToCpp<CefHandlerCToCpp, CefHandler, cef_handler_t>::DebugObjCt = 0;
|
||||
template<> long CefCToCpp<CefHandlerCToCpp, CefHandler,
|
||||
cef_handler_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -80,6 +80,7 @@ void CefPostDataCToCpp::RemoveElements()
|
|||
|
||||
|
||||
#ifdef _DEBUG
|
||||
long CefCToCpp<CefPostDataCToCpp, CefPostData, cef_post_data_t>::DebugObjCt = 0;
|
||||
template<> long CefCToCpp<CefPostDataCToCpp, CefPostData,
|
||||
cef_post_data_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -87,7 +87,7 @@ size_t CefPostDataElementCToCpp::GetBytes(size_t size, void* bytes)
|
|||
|
||||
|
||||
#ifdef _DEBUG
|
||||
long CefCToCpp<CefPostDataElementCToCpp, CefPostDataElement,
|
||||
template<> long CefCToCpp<CefPostDataElementCToCpp, CefPostDataElement,
|
||||
cef_post_data_element_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@ int CefReadHandlerCToCpp::Eof()
|
|||
|
||||
|
||||
#ifdef _DEBUG
|
||||
long CefCToCpp<CefReadHandlerCToCpp, CefReadHandler,
|
||||
template<> long CefCToCpp<CefReadHandlerCToCpp, CefReadHandler,
|
||||
cef_read_handler_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -149,6 +149,7 @@ void CefRequestCToCpp::Set(const CefString& url, const CefString& method,
|
|||
|
||||
|
||||
#ifdef _DEBUG
|
||||
long CefCToCpp<CefRequestCToCpp, CefRequest, cef_request_t>::DebugObjCt = 0;
|
||||
template<> long CefCToCpp<CefRequestCToCpp, CefRequest,
|
||||
cef_request_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ bool CefSchemeHandlerCToCpp::ReadResponse(void* data_out, int bytes_to_read,
|
|||
|
||||
|
||||
#ifdef _DEBUG
|
||||
long CefCToCpp<CefSchemeHandlerCToCpp, CefSchemeHandler,
|
||||
template<> long CefCToCpp<CefSchemeHandlerCToCpp, CefSchemeHandler,
|
||||
cef_scheme_handler_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ CefRefPtr<CefSchemeHandler> CefSchemeHandlerFactoryCToCpp::Create()
|
|||
|
||||
|
||||
#ifdef _DEBUG
|
||||
long CefCToCpp<CefSchemeHandlerFactoryCToCpp, CefSchemeHandlerFactory,
|
||||
cef_scheme_handler_factory_t>::DebugObjCt = 0;
|
||||
template<> long CefCToCpp<CefSchemeHandlerFactoryCToCpp,
|
||||
CefSchemeHandlerFactory, cef_scheme_handler_factory_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -82,7 +82,7 @@ int CefStreamReaderCToCpp::Eof()
|
|||
|
||||
|
||||
#ifdef _DEBUG
|
||||
long CefCToCpp<CefStreamReaderCToCpp, CefStreamReader,
|
||||
template<> long CefCToCpp<CefStreamReaderCToCpp, CefStreamReader,
|
||||
cef_stream_reader_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -82,7 +82,7 @@ int CefStreamWriterCToCpp::Flush()
|
|||
|
||||
|
||||
#ifdef _DEBUG
|
||||
long CefCToCpp<CefStreamWriterCToCpp, CefStreamWriter,
|
||||
template<> long CefCToCpp<CefStreamWriterCToCpp, CefStreamWriter,
|
||||
cef_stream_writer_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -25,6 +25,6 @@ void CefTaskCToCpp::Execute(CefThreadId threadId)
|
|||
|
||||
|
||||
#ifdef _DEBUG
|
||||
long CefCToCpp<CefTaskCToCpp, CefTask, cef_task_t>::DebugObjCt = 0;
|
||||
template<> long CefCToCpp<CefTaskCToCpp, CefTask, cef_task_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@ bool CefV8HandlerCToCpp::Execute(const CefString& name,
|
|||
|
||||
|
||||
#ifdef _DEBUG
|
||||
long CefCToCpp<CefV8HandlerCToCpp, CefV8Handler, cef_v8handler_t>::DebugObjCt =
|
||||
0;
|
||||
template<> long CefCToCpp<CefV8HandlerCToCpp, CefV8Handler,
|
||||
cef_v8handler_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -369,6 +369,7 @@ bool CefV8ValueCToCpp::ExecuteFunction(CefRefPtr<CefV8Value> object,
|
|||
|
||||
|
||||
#ifdef _DEBUG
|
||||
long CefCToCpp<CefV8ValueCToCpp, CefV8Value, cef_v8value_t>::DebugObjCt = 0;
|
||||
template<> long CefCToCpp<CefV8ValueCToCpp, CefV8Value,
|
||||
cef_v8value_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@ int CefWriteHandlerCToCpp::Flush()
|
|||
|
||||
|
||||
#ifdef _DEBUG
|
||||
long CefCToCpp<CefWriteHandlerCToCpp, CefWriteHandler,
|
||||
template<> long CefCToCpp<CefWriteHandlerCToCpp, CefWriteHandler,
|
||||
cef_write_handler_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -308,7 +308,7 @@ bool CefXmlReaderCToCpp::MoveToCarryingElement()
|
|||
|
||||
|
||||
#ifdef _DEBUG
|
||||
long CefCToCpp<CefXmlReaderCToCpp, CefXmlReader, cef_xml_reader_t>::DebugObjCt =
|
||||
0;
|
||||
template<> long CefCToCpp<CefXmlReaderCToCpp, CefXmlReader,
|
||||
cef_xml_reader_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -131,7 +131,7 @@ bool CefZipReaderCToCpp::Eof()
|
|||
|
||||
|
||||
#ifdef _DEBUG
|
||||
long CefCToCpp<CefZipReaderCToCpp, CefZipReader, cef_zip_reader_t>::DebugObjCt =
|
||||
0;
|
||||
template<> long CefCToCpp<CefZipReaderCToCpp, CefZipReader,
|
||||
cef_zip_reader_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -136,7 +136,9 @@ CEF_EXPORT int cef_register_plugin(const cef_plugin_info_t* plugin_info)
|
|||
pluginInfo.mime_types.push_back(mimeType);
|
||||
}
|
||||
|
||||
#if !defined(OS_POSIX) || defined(OS_MACOSX)
|
||||
pluginInfo.np_getentrypoints = plugin_info->np_getentrypoints;
|
||||
#endif
|
||||
pluginInfo.np_initialize = plugin_info->np_initialize;
|
||||
pluginInfo.np_shutdown = plugin_info->np_shutdown;
|
||||
|
||||
|
|
|
@ -6,6 +6,10 @@
|
|||
#include "libcef_dll/cef_logging.h"
|
||||
#include <algorithm>
|
||||
|
||||
#if defined(__linux__)
|
||||
#include <wctype.h>
|
||||
#endif
|
||||
|
||||
namespace {
|
||||
|
||||
class CefZipFile : public CefThreadSafeBase<CefZipArchive::File>
|
||||
|
|
|
@ -116,7 +116,9 @@ bool CefRegisterPlugin(const struct CefPluginInfo& plugin_info)
|
|||
cef_string_from_utf8(typeDescriptions.c_str(), typeDescriptions.length(),
|
||||
&pluginInfo.type_descriptions);
|
||||
|
||||
#if !defined(OS_POSIX) || defined(OS_MACOSX)
|
||||
pluginInfo.np_getentrypoints = plugin_info.np_getentrypoints;
|
||||
#endif
|
||||
pluginInfo.np_initialize = plugin_info.np_initialize;
|
||||
pluginInfo.np_shutdown = plugin_info.np_shutdown;
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
#include "string_util.h"
|
||||
#include "util.h"
|
||||
#include <sstream>
|
||||
#include <stdio.h>
|
||||
#include <string>
|
||||
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
#include "download_handler.h"
|
||||
#include "util.h"
|
||||
#include <sstream>
|
||||
#include <stdio.h>
|
||||
#include <vector>
|
||||
|
||||
#ifdef _WIN32
|
||||
|
|
|
@ -73,7 +73,7 @@ def make_cpptoc_header(header, clsname):
|
|||
|
||||
|
||||
def write_cpptoc_header(header, clsname, dir, backup):
|
||||
file = dir+'\\'+get_capi_name(clsname[3:], False)+'_cpptoc.h'
|
||||
file = dir+os.sep+get_capi_name(clsname[3:], False)+'_cpptoc.h'
|
||||
|
||||
if file_exists(file):
|
||||
oldcontents = read_file(file)
|
||||
|
|
|
@ -134,7 +134,7 @@ def make_cpptoc_impl(header, clsname, impl):
|
|||
|
||||
const += '}\n\n'+ \
|
||||
'#ifdef _DEBUG\n'+ \
|
||||
'long CefCppToC<'+clsname+'CppToC, '+clsname+', '+capiname+'>::DebugObjCt = 0;\n'+ \
|
||||
'template<> long CefCppToC<'+clsname+'CppToC, '+clsname+', '+capiname+'>::DebugObjCt = 0;\n'+ \
|
||||
'#endif\n'
|
||||
result += wrap_code(const)
|
||||
|
||||
|
@ -142,7 +142,7 @@ def make_cpptoc_impl(header, clsname, impl):
|
|||
|
||||
|
||||
def write_cpptoc_impl(header, clsname, dir, backup):
|
||||
file = dir+'\\'+get_capi_name(clsname[3:], False)+'_cpptoc.cc'
|
||||
file = dir+os.sep+get_capi_name(clsname[3:], False)+'_cpptoc.cc'
|
||||
|
||||
if file_exists(file):
|
||||
oldcontents = read_file(file)
|
||||
|
|
|
@ -81,7 +81,7 @@ def make_ctocpp_header(header, clsname):
|
|||
|
||||
|
||||
def write_ctocpp_header(header, clsname, dir, backup):
|
||||
file = dir+'\\'+get_capi_name(clsname[3:], False)+'_ctocpp.h'
|
||||
file = dir+os.sep+get_capi_name(clsname[3:], False)+'_ctocpp.h'
|
||||
|
||||
if file_exists(file):
|
||||
oldcontents = read_file(file)
|
||||
|
|
|
@ -121,14 +121,14 @@ def make_ctocpp_impl(header, clsname, impl):
|
|||
result += includes+'\n'+resultingimpl+'\n'
|
||||
|
||||
result += wrap_code('#ifdef _DEBUG\n'+ \
|
||||
'long CefCToCpp<'+clsname+'CToCpp, '+clsname+', '+capiname+'>::DebugObjCt = 0;\n'+ \
|
||||
'template<> long CefCToCpp<'+clsname+'CToCpp, '+clsname+', '+capiname+'>::DebugObjCt = 0;\n'+ \
|
||||
'#endif\n')
|
||||
|
||||
return result
|
||||
|
||||
|
||||
def write_ctocpp_impl(header, clsname, dir, backup):
|
||||
file = dir+'\\'+get_capi_name(clsname[3:], False)+'_ctocpp.cc'
|
||||
file = dir+os.sep+get_capi_name(clsname[3:], False)+'_ctocpp.cc'
|
||||
|
||||
if file_exists(file):
|
||||
oldcontents = read_file(file)
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
python translator.py --cpp-header ../include/cef.h --capi-header ../include/cef_capi.h --cpptoc-dir ../libcef_dll/cpptoc --ctocpp-dir ../libcef_dll/ctocpp
|
Loading…
Reference in New Issue