Commit db7c0a75 authored by kevino@webkit.org's avatar kevino@webkit.org

Reviewed by Darin Adler.

Introduce WTF_USE_EXPORT_MACROS, which will allow us to put shared library import/export
info into the headers rather than in export symbol definition files, but disable it on 
all platforms initially so we can deal with port build issues one port at a time.
        
https://bugs.webkit.org/show_bug.cgi?id=27551


git-svn-id: svn://svn.chromium.org/blink/trunk@81135 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent da05cf8a
...@@ -80,6 +80,11 @@ typedef struct OpaqueJSValue* JSObjectRef; ...@@ -80,6 +80,11 @@ typedef struct OpaqueJSValue* JSObjectRef;
#define JS_EXPORT #define JS_EXPORT
#endif /* defined(JS_NO_EXPORT) */ #endif /* defined(JS_NO_EXPORT) */
/* JS tests uses WTF but has no config.h, so we need to set the export defines here. */
#ifndef WTF_EXPORT_PRIVATE
#define WTF_EXPORT_PRIVATE JS_EXPORT
#endif
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
......
2011-03-15 Kevin Ollivier <kevino@theolliviers.com>
Reviewed by Darin Adler.
Introduce WTF_USE_EXPORT_MACROS, which will allow us to put shared library import/export
info into the headers rather than in export symbol definition files, but disable it on
all platforms initially so we can deal with port build issues one port at a time.
https://bugs.webkit.org/show_bug.cgi?id=27551
* API/JSBase.h:
* config.h:
* wtf/Assertions.h:
* wtf/ExportMacros.h: Added.
* wtf/Platform.h:
2011-03-14 Laszlo Gombos <laszlo.1.gombos@nokia.com> 2011-03-14 Laszlo Gombos <laszlo.1.gombos@nokia.com>
Unreviewed build fix. Unreviewed build fix.
......
...@@ -29,6 +29,24 @@ ...@@ -29,6 +29,24 @@
#include <wtf/Platform.h> #include <wtf/Platform.h>
/* See note in wtf/Platform.h for more info on EXPORT_MACROS. */
#if USE(EXPORT_MACROS)
#include <wtf/ExportMacros.h>
#if defined(BUILDING_JavaScriptCore) || defined(BUILDING_WTF)
#define WTF_EXPORT_PRIVATE WTF_EXPORT
#define JS_EXPORT_PRIVATE WTF_EXPORT
#else
#define WTF_EXPORT_PRIVATE WTF_IMPORT
#define JS_EXPORT_PRIVATE WTF_IMPORT
#endif
#define JS_EXPORTDATA JS_EXPORT_PRIVATE
#define JS_EXPORTCLASS JS_EXPORT_PRIVATE
#else /* !USE(EXPORT_MACROS) */
#if !PLATFORM(CHROMIUM) && OS(WINDOWS) && !defined(BUILDING_WX__) && !COMPILER(GCC) #if !PLATFORM(CHROMIUM) && OS(WINDOWS) && !defined(BUILDING_WX__) && !COMPILER(GCC)
#if defined(BUILDING_JavaScriptCore) || defined(BUILDING_WTF) #if defined(BUILDING_JavaScriptCore) || defined(BUILDING_WTF)
#define JS_EXPORTDATA __declspec(dllexport) #define JS_EXPORTDATA __declspec(dllexport)
...@@ -41,6 +59,11 @@ ...@@ -41,6 +59,11 @@
#define JS_EXPORTCLASS #define JS_EXPORTCLASS
#endif #endif
#define WTF_EXPORT_PRIVATE JS_EXPORTDATA
#define JS_EXPORT_PRIVATE JS_EXPORTDATA
#endif /* USE(EXPORT_MACROS) */
#if OS(WINDOWS) #if OS(WINDOWS)
// If we don't define these, they get defined in windef.h. // If we don't define these, they get defined in windef.h.
......
...@@ -142,14 +142,14 @@ typedef struct { ...@@ -142,14 +142,14 @@ typedef struct {
WTFLogChannelState state; WTFLogChannelState state;
} WTFLogChannel; } WTFLogChannel;
void WTFReportAssertionFailure(const char* file, int line, const char* function, const char* assertion); WTF_EXPORT_PRIVATE void WTFReportAssertionFailure(const char* file, int line, const char* function, const char* assertion);
void WTFReportAssertionFailureWithMessage(const char* file, int line, const char* function, const char* assertion, const char* format, ...) WTF_ATTRIBUTE_PRINTF(5, 6); WTF_EXPORT_PRIVATE void WTFReportAssertionFailureWithMessage(const char* file, int line, const char* function, const char* assertion, const char* format, ...) WTF_ATTRIBUTE_PRINTF(5, 6);
void WTFReportArgumentAssertionFailure(const char* file, int line, const char* function, const char* argName, const char* assertion); WTF_EXPORT_PRIVATE void WTFReportArgumentAssertionFailure(const char* file, int line, const char* function, const char* argName, const char* assertion);
void WTFReportBacktrace(); WTF_EXPORT_PRIVATE void WTFReportBacktrace();
void WTFReportFatalError(const char* file, int line, const char* function, const char* format, ...) WTF_ATTRIBUTE_PRINTF(4, 5); WTF_EXPORT_PRIVATE void WTFReportFatalError(const char* file, int line, const char* function, const char* format, ...) WTF_ATTRIBUTE_PRINTF(4, 5);
void WTFReportError(const char* file, int line, const char* function, const char* format, ...) WTF_ATTRIBUTE_PRINTF(4, 5); WTF_EXPORT_PRIVATE void WTFReportError(const char* file, int line, const char* function, const char* format, ...) WTF_ATTRIBUTE_PRINTF(4, 5);
void WTFLog(WTFLogChannel* channel, const char* format, ...) WTF_ATTRIBUTE_PRINTF(2, 3); WTF_EXPORT_PRIVATE void WTFLog(WTFLogChannel*, const char* format, ...) WTF_ATTRIBUTE_PRINTF(2, 3);
void WTFLogVerbose(const char* file, int line, const char* function, WTFLogChannel* channel, const char* format, ...) WTF_ATTRIBUTE_PRINTF(5, 6); WTF_EXPORT_PRIVATE void WTFLogVerbose(const char* file, int line, const char* function, WTFLogChannel*, const char* format, ...) WTF_ATTRIBUTE_PRINTF(5, 6);
#ifdef __cplusplus #ifdef __cplusplus
} }
......
/*
* Copyright (C) 2011 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* This file handles shared library symbol export decorations. It is recommended
* that all WebKit projects use these definitions so that symbol exports work
* properly on all platforms and compilers that WebKit builds under.
*/
#ifndef ExportMacros_h
#define ExportMacros_h
#include "Platform.h"
#if !PLATFORM(CHROMIUM) && OS(WINDOWS) && !COMPILER(GCC)
#define WTF_EXPORT __declspec(dllexport)
#define WTF_IMPORT __declspec(dllimport)
#elif defined(__GNUC__) && !defined(__CC_ARM) && !defined(__ARMCC__)
#define WTF_EXPORT __attribute__((visibility("default")))
#define WTF_IMPORT WTF_EXPORT
#else
#define WTF_EXPORT
#define WTF_IMPORT
#endif
#endif /* ExportMacros_h */
...@@ -1184,4 +1184,10 @@ ...@@ -1184,4 +1184,10 @@
#include "GTypedefs.h" #include "GTypedefs.h"
#endif #endif
/* FIXME: This define won't be needed once #27551 is fully landed. However,
since most ports try to support sub-project independence, adding new headers
to WTF causes many ports to break, and so this way we can address the build
breakages one port at a time. */
#define WTF_USE_EXPORT_MACROS 0
#endif /* WTF_Platform_h */ #endif /* WTF_Platform_h */
2011-03-15 Kevin Ollivier <kevino@theolliviers.com>
Reviewed by Darin Adler.
Introduce WTF_USE_EXPORT_MACROS, which will allow us to put shared library import/export
info into the headers rather than in export symbol definition files, but disable it on
all platforms initially so we can deal with port build issues one port at a time.
https://bugs.webkit.org/show_bug.cgi?id=27551
* config.h:
2011-03-10 Geoffrey Garen <ggaren@apple.com> 2011-03-10 Geoffrey Garen <ggaren@apple.com>
Reviewed by Oliver Hunt. Reviewed by Oliver Hunt.
......
...@@ -19,3 +19,6 @@ ...@@ -19,3 +19,6 @@
#define JS_EXPORTDATA #define JS_EXPORTDATA
#define JS_EXPORTCLASS #define JS_EXPORTCLASS
#define JS_EXPORT_PRIVATE
#define WTF_EXPORT_PRIVATE
2011-03-15 Kevin Ollivier <kevino@theolliviers.com>
Reviewed by Darin Adler.
Introduce WTF_USE_EXPORT_MACROS, which will allow us to put shared library import/export
info into the headers rather than in export symbol definition files, but disable it on
all platforms initially so we can deal with port build issues one port at a time.
https://bugs.webkit.org/show_bug.cgi?id=27551
* config.h:
* platform/mac/LoggingMac.mm:
2011-03-15 Ilya Tikhonovsky <loislo@chromium.org> 2011-03-15 Ilya Tikhonovsky <loislo@chromium.org>
Unreviewed build fix. Unreviewed build fix.
......
...@@ -29,6 +29,30 @@ ...@@ -29,6 +29,30 @@
#include <wtf/Platform.h> #include <wtf/Platform.h>
/* See note in wtf/Platform.h for more info on EXPORT_MACROS. */
#if USE(EXPORT_MACROS)
#include <wtf/ExportMacros.h>
#if defined(BUILDING_JavaScriptCore) || defined(BUILDING_WTF)
#define WTF_EXPORT_PRIVATE WTF_EXPORT
#define JS_EXPORT_PRIVATE WTF_EXPORT
#else
#define WTF_EXPORT_PRIVATE WTF_IMPORT
#define JS_EXPORT_PRIVATE WTF_IMPORT
#endif
#define JS_EXPORTDATA JS_EXPORT_PRIVATE
#define JS_EXPORTCLASS JS_EXPORT_PRIVATE
#if defined(BUILDING_WebCore) || defined(BUILDING_WebKit)
#define WEBKIT_EXPORTDATA WTF_EXPORT
#else
#define WEBKIT_EXPORTDATA WTF_IMPORT
#endif
#else /* !USE(EXPORT_MACROS) */
#if !PLATFORM(CHROMIUM) && OS(WINDOWS) && !defined(BUILDING_WX__) && !COMPILER(GCC) #if !PLATFORM(CHROMIUM) && OS(WINDOWS) && !defined(BUILDING_WX__) && !COMPILER(GCC)
#if defined(BUILDING_JavaScriptCore) || defined(BUILDING_WTF) #if defined(BUILDING_JavaScriptCore) || defined(BUILDING_WTF)
#define JS_EXPORTDATA __declspec(dllexport) #define JS_EXPORTDATA __declspec(dllexport)
...@@ -40,13 +64,19 @@ ...@@ -40,13 +64,19 @@
#else #else
#define WEBKIT_EXPORTDATA __declspec(dllimport) #define WEBKIT_EXPORTDATA __declspec(dllimport)
#endif #endif
#define WTF_EXPORT_PRIVATE JS_EXPORTDATA
#define JS_EXPORT_PRIVATE JS_EXPORTDATA
#define JS_EXPORTCLASS JS_EXPORTDATA #define JS_EXPORTCLASS JS_EXPORTDATA
#else #else
#define JS_EXPORTDATA #define JS_EXPORTDATA
#define JS_EXPORTCLASS #define JS_EXPORTCLASS
#define WEBKIT_EXPORTDATA #define WEBKIT_EXPORTDATA
#define WTF_EXPORT_PRIVATE
#define JS_EXPORT_PRIVATE
#endif #endif
#endif /* USE(EXPORT_MACROS) */
#ifdef __APPLE__ #ifdef __APPLE__
#define HAVE_FUNC_USLEEP 1 #define HAVE_FUNC_USLEEP 1
#endif /* __APPLE__ */ #endif /* __APPLE__ */
......
...@@ -23,6 +23,8 @@ ...@@ -23,6 +23,8 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include "config.h"
#include "Logging.h" #include "Logging.h"
namespace WebCore { namespace WebCore {
......
2011-03-15 Kevin Ollivier <kevino@theolliviers.com>
Reviewed by Darin Adler.
Introduce WTF_USE_EXPORT_MACROS, which will allow us to put shared library import/export
info into the headers rather than in export symbol definition files, but disable it on
all platforms initially so we can deal with port build issues one port at a time.
https://bugs.webkit.org/show_bug.cgi?id=27551
* WebCoreSupport/WebInspectorClientCF.cpp:
2011-02-23 Patrick Gansterer <paroga@webkit.org> 2011-02-23 Patrick Gansterer <paroga@webkit.org>
Reviewed by Darin Adler. Reviewed by Darin Adler.
......
...@@ -37,6 +37,11 @@ ...@@ -37,6 +37,11 @@
#define WTF_USE_JSC 1 #define WTF_USE_JSC 1
#endif #endif
// Leave these set to nothing until we switch Mac and Win ports over to
// using the export macros.
#define JS_EXPORT_PRIVATE
#define WTF_EXPORT_PRIVATE
#if defined(WIN32) || defined(_WIN32) #if defined(WIN32) || defined(_WIN32)
#ifndef WTF_USE_CFNETWORK #ifndef WTF_USE_CFNETWORK
#define WTF_USE_CFNETWORK 1 #define WTF_USE_CFNETWORK 1
......
2011-03-15 Kevin Ollivier <kevino@theolliviers.com>
Reviewed by Darin Adler.
Introduce WTF_USE_EXPORT_MACROS, which will allow us to put shared library import/export
info into the headers rather than in export symbol definition files, but disable it on
all platforms initially so we can deal with port build issues one port at a time.
https://bugs.webkit.org/show_bug.cgi?id=27551
* WebKitPrefix.h:
2011-03-14 Brady Eidson <beidson@apple.com> 2011-03-14 Brady Eidson <beidson@apple.com>
Reviewed by Anders Carlsson. Reviewed by Anders Carlsson.
......
...@@ -79,12 +79,6 @@ typedef float CGFloat; ...@@ -79,12 +79,6 @@ typedef float CGFloat;
#define WTF_USE_JSC 1 #define WTF_USE_JSC 1
#define WTF_USE_V8 0 #define WTF_USE_V8 0
#ifdef __cplusplus
#include <wtf/FastMalloc.h>
#endif
#include <wtf/DisallowCType.h>
/* Work around bug with C++ library that screws up Objective-C++ when exception support is disabled. */ /* Work around bug with C++ library that screws up Objective-C++ when exception support is disabled. */
#undef try #undef try
#undef catch #undef catch
...@@ -92,3 +86,11 @@ typedef float CGFloat; ...@@ -92,3 +86,11 @@ typedef float CGFloat;
#define JS_EXPORTDATA #define JS_EXPORTDATA
#define JS_EXPORTCLASS #define JS_EXPORTCLASS
#define WEBKIT_EXPORTDATA #define WEBKIT_EXPORTDATA
#define WTF_EXPORT_PRIVATE
#define JS_EXPORT_PRIVATE
#ifdef __cplusplus
#include <wtf/FastMalloc.h>
#endif
#include <wtf/DisallowCType.h>
2011-03-15 Kevin Ollivier <kevino@theolliviers.com>
Reviewed by Darin Adler.
Introduce WTF_USE_EXPORT_MACROS, which will allow us to put shared library import/export
info into the headers rather than in export symbol definition files, but disable it on
all platforms initially so we can deal with port build issues one port at a time.
https://bugs.webkit.org/show_bug.cgi?id=27551
* WebCoreSupport/GeolocationClientQt.cpp:
* WebCoreSupport/PopupMenuQt.cpp:
2011-03-14 Brady Eidson <beidson@apple.com> 2011-03-14 Brady Eidson <beidson@apple.com>
Reviewed by Anders Carlsson. Reviewed by Anders Carlsson.
......
...@@ -140,3 +140,5 @@ void GeolocationClientQt::cancelPermissionRequest(Geolocation* geolocation) ...@@ -140,3 +140,5 @@ void GeolocationClientQt::cancelPermissionRequest(Geolocation* geolocation)
} }
} // namespace WebCore } // namespace WebCore
#include "moc_GeolocationClientQt.cpp"
...@@ -157,4 +157,6 @@ void PopupMenuQt::selectItem(int index, bool ctrl, bool shift) ...@@ -157,4 +157,6 @@ void PopupMenuQt::selectItem(int index, bool ctrl, bool shift)
} }
#include "moc_PopupMenuQt.cpp"
// vim: ts=4 sw=4 et // vim: ts=4 sw=4 et
2011-03-15 Kevin Ollivier <kevino@theolliviers.com>
Reviewed by Darin Adler.
Introduce WTF_USE_EXPORT_MACROS, which will allow us to put shared library import/export
info into the headers rather than in export symbol definition files, but disable it on
all platforms initially so we can deal with port build issues one port at a time.
https://bugs.webkit.org/show_bug.cgi?id=27551
* bindings/python/webview.i:
2011-03-07 Sam Weinig <sam@webkit.org> 2011-03-07 Sam Weinig <sam@webkit.org>
Reviewed by Anders Carlsson. Reviewed by Anders Carlsson.
......
...@@ -49,6 +49,7 @@ ...@@ -49,6 +49,7 @@
#include "WebDOMNodeList.h" #include "WebDOMNodeList.h"
#include "WebDOMObject.h" #include "WebDOMObject.h"
#include "WebDOMRange.h" #include "WebDOMRange.h"
#include "WebDOMWebKitAnimationList.h"
#ifndef __WXMSW__ #ifndef __WXMSW__
PyObject* createDOMNodeSubtype(WebDOMNode* ptr, bool setThisOwn, bool isValueObject) PyObject* createDOMNodeSubtype(WebDOMNode* ptr, bool setThisOwn, bool isValueObject)
......
2011-03-15 Kevin Ollivier <kevino@theolliviers.com>
Reviewed by Darin Adler.
Introduce WTF_USE_EXPORT_MACROS, which will allow us to put shared library import/export
info into the headers rather than in export symbol definition files, but disable it on
all platforms initially so we can deal with port build issues one port at a time.
https://bugs.webkit.org/show_bug.cgi?id=27551
* config.h:
2011-03-14 Alexey Proskuryakov <ap@apple.com> 2011-03-14 Alexey Proskuryakov <ap@apple.com>
Reviewed by Darin Adler. Reviewed by Darin Adler.
......
...@@ -28,16 +28,6 @@ ...@@ -28,16 +28,6 @@
#include "autotoolsconfig.h" #include "autotoolsconfig.h"
#endif /* defined (BUILDING_GTK__) */ #endif /* defined (BUILDING_GTK__) */
#ifdef __cplusplus
// These undefs match up with defines in WebKit2Prefix.h for Mac OS X.
// Helps us catch if anyone uses new or delete by accident in code and doesn't include "config.h".
#undef new
#undef delete
#include <wtf/FastMalloc.h>
#endif
#include <wtf/DisallowCType.h> #include <wtf/DisallowCType.h>
#include <wtf/Platform.h> #include <wtf/Platform.h>
...@@ -68,6 +58,8 @@ static const type& name() \ ...@@ -68,6 +58,8 @@ static const type& name() \
#define JS_EXPORTDATA #define JS_EXPORTDATA
#define JS_EXPORTCLASS #define JS_EXPORTCLASS
#define WTF_EXPORT_PRIVATE
#define JS_EXPORT_PRIVATE
#elif defined(__APPLE__) #elif defined(__APPLE__)
...@@ -102,6 +94,9 @@ static const type& name() \ ...@@ -102,6 +94,9 @@ static const type& name() \
#define JS_EXPORTCLASS #define JS_EXPORTCLASS
#define WEBKIT_EXPORTDATA #define WEBKIT_EXPORTDATA
#define WTF_EXPORT_PRIVATE
#define JS_EXPORT_PRIVATE
#include <WebCore/EmptyProtocolDefinitions.h> #include <WebCore/EmptyProtocolDefinitions.h>
#elif defined(WIN32) || defined(_WIN32) #elif defined(WIN32) || defined(_WIN32)
...@@ -136,6 +131,16 @@ static const type& name() \ ...@@ -136,6 +131,16 @@ static const type& name() \
#endif /* defined(WIN32) || defined(_WIN32) */ #endif /* defined(WIN32) || defined(_WIN32) */
#ifdef __cplusplus
// These undefs match up with defines in WebKit2Prefix.h for Mac OS X.
// Helps us catch if anyone uses new or delete by accident in code and doesn't include "config.h".
#undef new
#undef delete
#include <wtf/FastMalloc.h>
#endif
#if PLATFORM(MAC) || (OS(MAC_OS_X) && PLATFORM(QT)) #if PLATFORM(MAC) || (OS(MAC_OS_X) && PLATFORM(QT))
#define PLUGIN_ARCHITECTURE_MAC 1 #define PLUGIN_ARCHITECTURE_MAC 1
#elif PLATFORM(WIN) || (OS(WINDOWS) && PLATFORM(QT)) #elif PLATFORM(WIN) || (OS(WINDOWS) && PLATFORM(QT))
......
2011-03-15 Kevin Ollivier <kevino@theolliviers.com>
Reviewed by Darin Adler.
Introduce WTF_USE_EXPORT_MACROS, which will allow us to put shared library import/export
info into the headers rather than in export symbol definition files, but disable it on
all platforms initially so we can deal with port build issues one port at a time.
https://bugs.webkit.org/show_bug.cgi?id=27551
* DumpRenderTree/cg/ImageDiffCG.cpp:
* DumpRenderTree/chromium/config.h:
* DumpRenderTree/config.h:
* DumpRenderTree/wx/LayoutTestControllerWx.cpp:
* TestWebKitAPI/TestWebKitAPIPrefix.h:
* WebKitAPITest/HostWindow.cpp:
* WebKitAPITest/TestsController.cpp:
* WebKitAPITest/config.h: Added.
* WebKitAPITest/main.cpp:
* WebKitAPITest/tests/WebViewDestruction.cpp:
* WebKitTestRunner/InjectedBundle/Bindings/JSWrapper.cpp:
* WebKitTestRunner/InjectedBundle/EventSendingController.cpp:
* WebKitTestRunner/InjectedBundle/GCController.cpp:
* WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
* WebKitTestRunner/InjectedBundle/InjectedBundleMain.cpp:
* WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
* WebKitTestRunner/InjectedBundle/LayoutTestController.cpp:
* WebKitTestRunner/InjectedBundle/qt/ActivateFontsQt.cpp:
* WebKitTestRunner/InjectedBundle/qt/InjectedBundleQt.cpp:
* WebKitTestRunner/InjectedBundle/qt/LayoutTestControllerQt.cpp:
* WebKitTestRunner/InjectedBundle/win/ActivateFonts.cpp:
* WebKitTestRunner/InjectedBundle/win/InjectedBundleWin.cpp:
* WebKitTestRunner/InjectedBundle/win/LayoutTestControllerWin.cpp:
* WebKitTestRunner/TestController.cpp:
* WebKitTestRunner/TestInvocation.cpp:
* WebKitTestRunner/config.h: Added.
* WebKitTestRunner/qt/PlatformWebViewQt.cpp:
* WebKitTestRunner/qt/TestControllerQt.cpp:
* WebKitTestRunner/qt/TestInvocationQt.cpp:
* WebKitTestRunner/qt/main.cpp:
* WebKitTestRunner/win/PlatformWebViewWin.cpp:
* WebKitTestRunner/win/TestControllerWin.cpp:
* WebKitTestRunner/win/TestInvocationWin.cpp:
* WebKitTestRunner/win/main.cpp:
* wx/build/settings.py:
2011-03-15 Hayato Ito <hayato@chromium.org> 2011-03-15 Hayato Ito <hayato@chromium.org>
Reviewed by Shinichiro Hamaji. Reviewed by Shinichiro Hamaji.
......
...@@ -26,6 +26,10 @@ ...@@ -26,6 +26,10 @@
#define min min #define min min
// FIXME: We need to be able to include these defines from a config.h somewhere.
#define JS_EXPORT_PRIVATE
#define WTF_EXPORT_PRIVATE
#include <stdio.h> #include <stdio.h>
#include <wtf/Platform.h> #include <wtf/Platform.h>
#include <wtf/RetainPtr.h> #include <wtf/RetainPtr.h>
......
...@@ -53,4 +53,7 @@ ...@@ -53,4 +53,7 @@
#define JS_EXPORTDATA #define JS_EXPORTDATA
#endif #endif
#define WTF_EXPORT_PRIVATE JS_EXPORTDATA
#define JS_EXPORT_PRIVATE JS_EXPORTDATA
#endif // config_h #endif // config_h
...@@ -26,13 +26,21 @@ ...@@ -26,13 +26,21 @@
#include <wtf/Platform.h> #include <wtf/Platform.h>
#ifdef __cplusplus /* See note in wtf/Platform.h for more info on EXPORT_MACROS. */
#undef new #if USE(EXPORT_MACROS)
#undef delete
#include <wtf/FastMalloc.h> #include <wtf/ExportMacros.h>
#endif
#define WTF_EXPORT_PRIVATE WTF_IMPORT
#define JS_EXPORT_PRIVATE WTF_IMPORT
#define WEBKIT_EXPORTDATA WTF_IMPORT
#define JS_EXPORTDATA JS_EXPORT_PRIVATE
#define JS_EXPORTCLASS JS_EXPORT_PRIVATE
#else /* !USE(EXPORT_MACROS) */
#if OS(WINDOWS) && !COMPILER(GCC) #if OS(WINDOWS) && !COMPILER(GCC) && !defined(BUILDING_WX__)
#define JS_EXPORTDATA __declspec(dllimport) #define JS_EXPORTDATA __declspec(dllimport)
#define WEBKIT_EXPORTDATA __declspec(dllimport) #define WEBKIT_EXPORTDATA __declspec(dllimport)
#else #else
...@@ -40,6 +48,17 @@ ...@@ -40,6 +48,17 @@
#define WEBKIT_EXPORTDATA #define WEBKIT_EXPORTDATA
#endif #endif
#define WTF_EXPORT_PRIVATE JS_EXPORTDATA
#define JS_EXPORT_PRIVATE JS_EXPORTDATA
#endif /* USE(EXPORT_MACROS) */
#ifdef __cplusplus
#undef new
#undef delete
#include <wtf/FastMalloc.h>
#endif
#if PLATFORM(MAC) #if PLATFORM(MAC)
#define WTF_USE_CF 1 #define WTF_USE_CF 1
......
...@@ -575,11 +575,6 @@ void LayoutTestController::observeStorageTrackerNotifications(unsigned number) ...@@ -575,11 +575,6 @@ void LayoutTestController::observeStorageTrackerNotifications(unsigned number)
// FIXME: Implement. // FIXME: Implement.
} }
void LayoutTestController::clearAllDatabases()
{
// FIXME: Implement.
}
void LayoutTestController::deleteAllLocalStorage() void LayoutTestController::deleteAllLocalStorage()
{ {
// FIXME: Implement. // FIXME: Implement.
......
...@@ -36,6 +36,10 @@ ...@@ -36,6 +36,10 @@
#endif #endif
/* FIXME: Define these properly once USE(EXPORT_MACROS) is set for ports using this */
#define JS_EXPORT_PRIVATE
#define WTF_EXPORT_PRIVATE
#include <stdint.h> #include <stdint.h>
#include <WebKit2/WebKit2.h> #include <WebKit2/WebKit2.h>
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include "config.h"
#include "HostWindow.h" #include "HostWindow.h"
namespace WebKitAPITest { namespace WebKitAPITest {
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include "config.h"
#include "TestsController.h" #include "TestsController.h"
#include "Test.h" #include "Test.h"
......
/*
* Copyright (C) 2011 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef WebKitAPITests_config_h
#define WebKitAPITests_config_h
#include <wtf/Platform.h>
/* See note in wtf/Platform.h for more info on EXPORT_MACROS. */
#if USE(EXPORT_MACROS)
#include <wtf/ExportMacros.h>
#define WTF_EXPORT_PRIVATE WTF_IMPORT
#define JS_EXPORT_PRIVATE WTF_IMPORT
#define WEBKIT_EXPORTDATA WTF_IMPORT
#define JS_EXPORTDATA JS_EXPORT_PRIVATE
#define JS_EXPORTCLASS JS_EXPORT_PRIVATE
#else /* !USE(EXPORT_MACROS) */
#if OS(WINDOWS) && !COMPILER(GCC) && !defined(BUILDING_WX__)
#define JS_EXPORTDATA __declspec(dllimport)
#define WEBKIT_EXPORTDATA __declspec(dllimport)
#else
#define JS_EXPORTDATA
#define WEBKIT_EXPORTDATA
#endif
#define WTF_EXPORT_PRIVATE JS_EXPORTDATA
#define JS_EXPORT_PRIVATE JS_EXPORTDATA
#endif /* USE(EXPORT_MACROS) */
#endif
...@@ -22,6 +22,8 @@ ...@@ -22,6 +22,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include "config.h"
#include "TestsController.h" #include "TestsController.h"
using namespace WebKitAPITest; using namespace WebKitAPITest;
......
...@@ -22,6 +22,8 @@ ...@@ -22,6 +22,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include "config.h"
#include "HostWindow.h" #include "HostWindow.h"
#include "Test.h" #include "Test.h"
#include <WebCore/COMPtr.h> #include <WebCore/COMPtr.h>
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
* THE POSSIBILITY OF SUCH DAMAGE. * THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include "config.h"
#include "JSWrapper.h" #include "JSWrapper.h"
#include <JavaScriptCore/JSContextRefPrivate.h> #include <JavaScriptCore/JSContextRefPrivate.h>
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
* THE POSSIBILITY OF SUCH DAMAGE. * THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include "config.h"
#include "EventSendingController.h" #include "EventSendingController.h"
#include "InjectedBundle.h" #include "InjectedBundle.h"
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
* THE POSSIBILITY OF SUCH DAMAGE. * THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include "config.h"
#include "GCController.h" #include "GCController.h"
#include "InjectedBundle.h" #include "InjectedBundle.h"
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
* THE POSSIBILITY OF SUCH DAMAGE. * THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include "config.h"
#include "InjectedBundle.h" #include "InjectedBundle.h"
#include "ActivateFonts.h" #include "ActivateFonts.h"
......
...@@ -23,6 +23,8 @@ ...@@ -23,6 +23,8 @@
* THE POSSIBILITY OF SUCH DAMAGE. * THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include "config.h"
#include "InjectedBundle.h" #include "InjectedBundle.h"
#include <WebKit2/WKBundleInitialize.h> #include <WebKit2/WKBundleInitialize.h>
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
* THE POSSIBILITY OF SUCH DAMAGE. * THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include "config.h"
#include "InjectedBundlePage.h" #include "InjectedBundlePage.h"
#include "InjectedBundle.h" #include "InjectedBundle.h"
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
* THE POSSIBILITY OF SUCH DAMAGE. * THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include "config.h"
#include "LayoutTestController.h" #include "LayoutTestController.h"
#include "InjectedBundle.h" #include "InjectedBundle.h"
......
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include "config.h"
#include "ActivateFonts.h" #include "ActivateFonts.h"
#include <QApplication> #include <QApplication>
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
* THE POSSIBILITY OF SUCH DAMAGE. * THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include "config.h"
#include "InjectedBundle.h" #include "InjectedBundle.h"
namespace WTR { namespace WTR {
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
* THE POSSIBILITY OF SUCH DAMAGE. * THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include "config.h"
#include "LayoutTestController.h" #include "LayoutTestController.h"
#include "InjectedBundle.h" #include "InjectedBundle.h"
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
* THE POSSIBILITY OF SUCH DAMAGE. * THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include "config.h"
#include "ActivateFonts.h" #include "ActivateFonts.h"
#include <string> #include <string>
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
* THE POSSIBILITY OF SUCH DAMAGE. * THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include "config.h"
#include "InjectedBundle.h" #include "InjectedBundle.h"
namespace WTR { namespace WTR {
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
* THE POSSIBILITY OF SUCH DAMAGE. * THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include "config.h"
#include "LayoutTestController.h" #include "LayoutTestController.h"
#include "InjectedBundle.h" #include "InjectedBundle.h"
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
* THE POSSIBILITY OF SUCH DAMAGE. * THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include "config.h"
#include "TestController.h" #include "TestController.h"
#include "PlatformWebView.h" #include "PlatformWebView.h"
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
* THE POSSIBILITY OF SUCH DAMAGE. * THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include "config.h"
#include "TestInvocation.h" #include "TestInvocation.h"
#include "PlatformWebView.h" #include "PlatformWebView.h"
......
/*
* Copyright (C) 2011 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef WebKitTestRunner_config_h
#define WebKitTestRunner_config_h
#include <wtf/Platform.h>
/* See note in wtf/Platform.h for more info on EXPORT_MACROS. */
#if USE(EXPORT_MACROS)
#include <wtf/ExportMacros.h>
#define WTF_EXPORT_PRIVATE WTF_IMPORT
#define JS_EXPORT_PRIVATE WTF_IMPORT
#define WEBKIT_EXPORTDATA WTF_IMPORT
#define JS_EXPORTDATA JS_EXPORT_PRIVATE
#define JS_EXPORTCLASS JS_EXPORT_PRIVATE
#else /* !USE(EXPORT_MACROS) */
#if OS(WINDOWS) && !COMPILER(GCC) && !defined(BUILDING_WX__)
#define JS_EXPORTDATA __declspec(dllimport)
#define WEBKIT_EXPORTDATA __declspec(dllimport)
#else
#define JS_EXPORTDATA
#define WEBKIT_EXPORTDATA
#endif
#define WTF_EXPORT_PRIVATE JS_EXPORTDATA
#define JS_EXPORT_PRIVATE JS_EXPORTDATA
#endif /* USE(EXPORT_MACROS) */
#endif
...@@ -24,6 +24,8 @@ ...@@ -24,6 +24,8 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include "config.h"
#include "PlatformWebView.h" #include "PlatformWebView.h"
#include "qgraphicswkview.h" #include "qgraphicswkview.h"
#include "qwkcontext.h" #include "qwkcontext.h"
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include "config.h"
#include "TestController.h" #include "TestController.h"
#include "WKStringQt.h" #include "WKStringQt.h"
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
* THE POSSIBILITY OF SUCH DAMAGE. * THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include "config.h"
#include "TestInvocation.h" #include "TestInvocation.h"
namespace WTR { namespace WTR {
......
...@@ -24,6 +24,8 @@ ...@@ -24,6 +24,8 @@
* THE POSSIBILITY OF SUCH DAMAGE. * THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include "config.h"
#include "TestController.h" #include "TestController.h"
#include <QApplication> #include <QApplication>
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
* THE POSSIBILITY OF SUCH DAMAGE. * THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include "config.h"
#include "PlatformWebView.h" #include "PlatformWebView.h"
namespace WTR { namespace WTR {
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
* THE POSSIBILITY OF SUCH DAMAGE. * THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include "config.h"
#include "TestController.h" #include "TestController.h"
#include <fcntl.h> #include <fcntl.h>
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
* THE POSSIBILITY OF SUCH DAMAGE. * THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include "config.h"
#include "TestInvocation.h" #include "TestInvocation.h"
namespace WTR { namespace WTR {
......
...@@ -23,6 +23,8 @@ ...@@ -23,6 +23,8 @@
* THE POSSIBILITY OF SUCH DAMAGE. * THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include "config.h"
#include "TestController.h" #include "TestController.h"
int main(int argc, const char* argv[]) int main(int argc, const char* argv[])
......
...@@ -188,7 +188,7 @@ os.environ['CREATE_HASH_TABLE'] = create_hash_table ...@@ -188,7 +188,7 @@ os.environ['CREATE_HASH_TABLE'] = create_hash_table
feature_defines = ['ENABLE_DATABASE', 'ENABLE_XSLT', 'ENABLE_JAVASCRIPT_DEBUGGER', feature_defines = ['ENABLE_DATABASE', 'ENABLE_XSLT', 'ENABLE_JAVASCRIPT_DEBUGGER',
'ENABLE_SVG', 'ENABLE_SVG_USE', 'ENABLE_FILTERS', 'ENABLE_SVG_FONTS', 'ENABLE_SVG', 'ENABLE_SVG_USE', 'ENABLE_FILTERS', 'ENABLE_SVG_FONTS',
'ENABLE_SVG_ANIMATION', 'ENABLE_SVG_AS_IMAGE', 'ENABLE_SVG_FOREIGN_OBJECT', 'ENABLE_SVG_ANIMATION', 'ENABLE_SVG_AS_IMAGE', 'ENABLE_SVG_FOREIGN_OBJECT',
'ENABLE_JIT', 'BUILDING_%s' % build_port.upper()] 'ENABLE_JIT', 'ENABLE_DOM_STORAGE', 'BUILDING_%s' % build_port.upper()]
msvc_version = 'msvc2008' msvc_version = 'msvc2008'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment