Changeset 49882 in webkit


Ignore:
Timestamp:
Oct 20, 2009 1:38:29 PM (15 years ago)
Author:
Nate Chapin
Message:

2009-10-20 Mark Mentovai <mark@chromium.org>

Reviewed by Darin Fisher.

Use a version of libWebKitSystemInterface with global symbols marked
private_extern for Chromium Mac.

https://bugs.webkit.org/show_bug.cgi?id=30590

  • WebCore.gyp/WebCore.gyp:
  • WebCore.gyp/mac: Added.
  • WebCore.gyp/mac/Empty.cpp: Added.
  • WebCore.gyp/mac/adjust_visibility.sh: Added.
Location:
trunk/WebCore
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r49881 r49882  
     12009-10-20  Mark Mentovai  <mark@chromium.org>
     2
     3        Reviewed by Darin Fisher.
     4
     5        Use a version of libWebKitSystemInterface with global symbols marked
     6        private_extern for Chromium Mac.
     7
     8        https://bugs.webkit.org/show_bug.cgi?id=30590
     9
     10        * WebCore.gyp/WebCore.gyp:
     11        * WebCore.gyp/mac: Added.
     12        * WebCore.gyp/mac/Empty.cpp: Added.
     13        * WebCore.gyp/mac/adjust_visibility.sh: Added.
     14
    1152009-10-20  Zoltan Horvath  <zoltan@webkit.org>
    216
  • trunk/WebCore/WebCore.gyp/WebCore.gyp

    r49703 r49882  
    4545      'variables': {'chromium_src_dir': '../../../..'},
    4646    }],
    47   ], 
     47    ['OS == "mac"', {
     48      'targets': [
     49        {
     50          # On the Mac, libWebKitSystemInterface*.a is used to help WebCore
     51          # interface with the system.  This library is supplied as a static
     52          # library in binary format.  At present, it contains many global
     53          # symbols not marked private_extern.  It should be considered an
     54          # implementation detail of WebCore, and does not need these symbols
     55          # to be exposed so widely.
     56          #
     57          # This target contains an action that cracks open the existing
     58          # static library and rebuilds it with these global symbols
     59          # transformed to private_extern.
     60          'target_name': 'webkit_system_interface',
     61          'type': 'static_library',
     62          'variables': {
     63            'adjusted_library_path':
     64                '<(PRODUCT_DIR)/libWebKitSystemInterfaceLeopardPrivateExtern.a',
     65          },
     66          'sources': [
     67            # An empty source file is needed to convince Xcode to produce
     68            # output for this target.  The resulting library won't actually
     69            # contain anything.  The library at adjusted_library_path will,
     70            # and that library is pushed to dependents of this target below.
     71            'mac/Empty.cpp',
     72          ],
     73          'actions': [
     74            {
     75              'action_name': 'Adjust Visibility',
     76              'inputs': [
     77                'mac/adjust_visibility.sh',
     78                '../../WebKitLibraries/libWebKitSystemInterfaceLeopard.a',
     79              ],
     80              'outputs': [
     81                '<(adjusted_library_path)',
     82              ],
     83              'action': [
     84                '<@(_inputs)',
     85                '<@(_outputs)',
     86                '<(INTERMEDIATE_DIR)/adjust_visibility',  # work directory
     87              ],
     88            },
     89          ],  # actions
     90          'link_settings': {
     91            'libraries': [
     92              '<(adjusted_library_path)',
     93            ],
     94          },  # link_settings
     95        },  # target webkit_system_interface
     96      ],  # targets
     97    }],  # condition OS == "mac"
     98  ],  # conditions
    4899
    49100  'variables': {
     
    605656        }],
    606657        ['OS=="mac"', {
     658          'dependencies': [
     659            'webkit_system_interface',
     660          ],
    607661          'defines': [
    608662            # Match Safari and Mozilla on Mac x86.
     
    741795            '../platform/image-decoders/xbm/XBMImageDecoder.h',
    742796          ],
    743           'link_settings': {
    744             'libraries': [
    745               '../../WebKitLibraries/libWebKitSystemInterfaceLeopard.a',
    746             ],
    747           },
    748797          'direct_dependent_settings': {
    749798            'include_dirs': [
     
    790839      ],
    791840    },
    792   ], # targets
     841  ],  # targets
    793842}
Note: See TracChangeset for help on using the changeset viewer.