Changeset 85362 in webkit


Ignore:
Timestamp:
Apr 29, 2011 3:20:07 PM (13 years ago)
Author:
evan@chromium.org
Message:

2011-04-28 Evan Martin <evan@chromium.org>

Reviewed by Tony Chang.

[chromium] support components build on Linux
https://bugs.webkit.org/show_bug.cgi?id=59748

  • WebKit.gyp: adjust tests to not be Windows-specific.
  • public/WebCommon.h: add #defines to support Linux.
  • public/linux/WebFontRenderStyle.h: expose Linux-specific API.
  • tests/RunAllTests.cpp: adjust ifdefs to not be Windows-specific.
Location:
trunk/Source/WebKit/chromium
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/chromium/ChangeLog

    r85314 r85362  
     12011-04-28  Evan Martin  <evan@chromium.org>
     2
     3        Reviewed by Tony Chang.
     4
     5        [chromium] support components build on Linux
     6        https://bugs.webkit.org/show_bug.cgi?id=59748
     7
     8        * WebKit.gyp: adjust tests to not be Windows-specific.
     9        * public/WebCommon.h: add #defines to support Linux.
     10        * public/linux/WebFontRenderStyle.h: expose Linux-specific API.
     11        * tests/RunAllTests.cpp: adjust ifdefs to not be Windows-specific.
     12
    1132011-04-29  Vsevolod Vlasov  <vsevik@chromium.org>
    214
  • trunk/Source/WebKit/chromium/WebKit.gyp

    r85239 r85362  
    593593            ],
    594594            'conditions': [
    595                 ['inside_chromium_build==1 and OS=="win"', {
     595                ['inside_chromium_build==1', {
    596596                    'type': '<(component)',
    597597
     
    613613                                '<(chromium_src_dir)/third_party/libxslt/libxslt.gyp:libxslt',
    614614                                '<(chromium_src_dir)/third_party/modp_b64/modp_b64.gyp:modp_b64',
    615                                 '<(chromium_src_dir)/third_party/nss/nss.gyp:*',
    616615                                '<(chromium_src_dir)/third_party/ots/ots.gyp:ots',
    617616                                '<(chromium_src_dir)/third_party/zlib/zlib.gyp:zlib',
     
    632631                                'tests/WebUnitTests.cpp',   # Components test runner support.
    633632                            ],
    634                             'sources!' : [
     633                            'sources!': [
    635634                                # We should not include files depending on webkit_support.
    636635                                'tests/CCThreadTest.cpp',
     
    639638                                'tests/WebFrameTest.cpp',
    640639                                'tests/WebPageSerializerTest.cpp',
     640                            ],
     641                            'conditions': [
     642                                ['OS=="win" or OS=="mac"', {
     643                                    'dependencies': [
     644                                        '<(chromium_src_dir)/third_party/nss/nss.gyp:*',
     645                                    ],
     646                                }],
    641647                            ]
    642648                        }],
     
    871877            ],
    872878            'conditions': [
    873                 ['inside_chromium_build==1 and OS=="win" and component=="shared_library"', {
     879                ['inside_chromium_build==1 and component=="shared_library"', {
    874880                    'defines': [
    875881                        'WEBKIT_DLL_UNITTEST',
  • trunk/Source/WebKit/chromium/public/WebCommon.h

    r63516 r85362  
    6666// Exported symbols need to be annotated with WEBKIT_API
    6767
    68 #if defined(WIN32) && defined(WEBKIT_DLL)
    69     #if WEBKIT_IMPLEMENTATION
    70         #define WEBKIT_API __declspec(dllexport)
     68#if defined(WEBKIT_DLL)
     69    #if defined(WIN32)
     70        #if WEBKIT_IMPLEMENTATION
     71            #define WEBKIT_API __declspec(dllexport)
     72        #else
     73            #define WEBKIT_API __declspec(dllimport)
     74        #endif
    7175    #else
    72         #define WEBKIT_API __declspec(dllimport)
     76        #define WEBKIT_API __attribute__((visibility("default")))
    7377    #endif
    7478#else
  • trunk/Source/WebKit/chromium/public/linux/WebFontRenderStyle.h

    r55089 r85362  
    3838namespace WebKit {
    3939
    40 struct WebFontRenderStyle {
     40struct WEBKIT_API WebFontRenderStyle {
    4141    // Each of the use* members below can take one of three values:
    4242    //   0: off
  • trunk/Source/WebKit/chromium/tests/RunAllTests.cpp

    r83249 r85362  
    3636#include <webkit/support/webkit_support.h>
    3737
    38 #if defined(WIN32) && defined(WEBKIT_DLL_UNITTEST)
     38#if defined(WEBKIT_DLL_UNITTEST)
    3939#include "WebUnitTests.h"
    4040#endif
     
    5050    webkit_support::SetUpTestEnvironmentForUnitTests();
    5151
    52 #if defined(WIN32) && defined(WEBKIT_DLL_UNITTEST)
     52#if defined(WEBKIT_DLL_UNITTEST)
    5353    // For chromium multi-dll build, need to call webkit api to create a
    5454    // TestSuite instance in webkit.dll and run all tests from there.
Note: See TracChangeset for help on using the changeset viewer.