Changeset 79974 in webkit


Ignore:
Timestamp:
Mar 1, 2011 12:14:29 AM (13 years ago)
Author:
abarth@webkit.org
Message:

2011-03-01 Adam Barth <abarth@webkit.org>

Reviewed by Eric Seidel.

Teach JavaScriptCore GYP build about DEPTH
https://bugs.webkit.org/show_bug.cgi?id=55425

In addition to teaching the JavaScriptCore GYP build about DEPTH, this
change overrides the GCC warning configuration to disable a warning
that's causing probems in Assertions.cpp. With that warning disabled,
JavaScriptCore builds again.

  • gyp/JavaScriptCore.gyp:
Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r79968 r79974  
     12011-03-01  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Teach JavaScriptCore GYP build about DEPTH
     6        https://bugs.webkit.org/show_bug.cgi?id=55425
     7
     8        In addition to teaching the JavaScriptCore GYP build about DEPTH, this
     9        change overrides the GCC warning configuration to disable a warning
     10        that's causing probems in Assertions.cpp.  With that warning disabled,
     11        JavaScriptCore builds again.
     12
     13        * gyp/JavaScriptCore.gyp:
     14
    1152011-02-28  Gavin Barraclough  <barraclough@apple.com>
    216
  • trunk/Source/JavaScriptCore/gyp/JavaScriptCore.gyp

    r79924 r79974  
    33    '../JavaScriptCore.gypi',
    44  ],
    5   'xcode_config_file': '../Configurations/DebugRelease.xcconfig',
     5  'xcode_config_file': '<(DEPTH)/JavaScriptCore/Configurations/DebugRelease.xcconfig',
    66  'targets': [
    77    {
     
    99      'type': 'shared_library',
    1010      'include_dirs': [
    11         '../..', # Some paths in API include JavaScriptCore/
    12         '..',
    13         '../ForwardingHeaders',
    14         '../API',
    15         '../assembler',
    16         '../collector/handles',
    17         '../bytecode',
    18         '../bytecompiler',
    19         '../debugger',
    20         '../icu',
    21         '../interpreter',
    22         '../jit',
    23         '../parser',
    24         '../profiler',
    25         '../runtime',
    26         '../wtf',
    27         '../wtf/unicode',
     11        '<(DEPTH)', # Some paths in API include JavaScriptCore/
     12        '<(DEPTH)/JavaScriptCore',
     13        '<(DEPTH)/JavaScriptCore/ForwardingHeaders',
     14        '<(DEPTH)/JavaScriptCore/API',
     15        '<(DEPTH)/JavaScriptCore/assembler',
     16        '<(DEPTH)/JavaScriptCore/collector/handles',
     17        '<(DEPTH)/JavaScriptCore/bytecode',
     18        '<(DEPTH)/JavaScriptCore/bytecompiler',
     19        '<(DEPTH)/JavaScriptCore/debugger',
     20        '<(DEPTH)/JavaScriptCore/icu',
     21        '<(DEPTH)/JavaScriptCore/interpreter',
     22        '<(DEPTH)/JavaScriptCore/jit',
     23        '<(DEPTH)/JavaScriptCore/parser',
     24        '<(DEPTH)/JavaScriptCore/profiler',
     25        '<(DEPTH)/JavaScriptCore/runtime',
     26        '<(DEPTH)/JavaScriptCore/wtf',
     27        '<(DEPTH)/JavaScriptCore/wtf/unicode',
    2828        '<(PRODUCT_DIR)/DerivedSources/JavaScriptCore',
    2929      ],
     
    3636        'libobjc.dylib',
    3737      ],
    38       'xcode_config_file': '../Configurations/JavaScriptCore.xcconfig',
     38      'xcode_config_file': '<(DEPTH)/JavaScriptCore/Configurations/JavaScriptCore.xcconfig',
    3939      'sources/': [
    4040        ['exclude', 'qt'],
     
    8080          'mac_bundle': 1,
    8181          'xcode_settings': {
    82             'USE_HEADERMAP': 'NO', # FIXME: Do we need this?
    83           }
     82            'USE_HEADERMAP': 'NO',
     83            # FIXME: Remove these overrides once JavaScriptCore.xcconfig is
     84            # used only by this project.
     85            'GCC_PREFIX_HEADER': '<(DEPTH)/JavaScriptCore/JavaScriptCorePrefix.h',
     86            'INFOPLIST_FILE': '<(DEPTH)/JavaScriptCore/Info.plist',
     87            # This setting mirrors the setting in Base.xcconfig, with
     88            # one difference noted below.
     89            'WARNING_CFLAGS_BASE': [
     90              '-Wall',
     91              '-Wextra',
     92              '-Wcast-qual',
     93              '-Wchar-subscripts',
     94              '-Wextra-tokens',
     95              '-Wformat=2',
     96              '-Winit-self',
     97              # FIXME: For some reason, -Wmissing-format-attribute causes a
     98              # build error in Assertions.cpp in the GYP build but not in the
     99              # non-GYP build.
     100              # '-Wmissing-format-attribute',
     101              '-Wmissing-noreturn',
     102              '-Wpacked',
     103              '-Wpointer-arith',
     104              '-Wredundant-decls',
     105              '-Wundef',
     106              '-Wwrite-strings',
     107            ],
     108          },
    84109        }],
    85110      ],
Note: See TracChangeset for help on using the changeset viewer.