⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 112017 in webkit


Ignore:
Timestamp:
Mar 24, 2012, 6:41:33 PM (15 years ago)
Author:
kevino@webkit.org
Message:

[wx] Unreviewed. Fix the build after WTF move.

Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r111890 r112017  
     12012-03-24  Kevin Ollivier  <kevino@theolliviers.com>
     2
     3        [wx] Unreviewed. Fix the build after WTF move.
     4
     5        * wscript:
     6
    172012-03-23  Dave Michael  <dmichael@chromium.org>
    28
  • trunk/Source/JavaScriptCore/ChangeLog

    r112015 r112017  
     12012-03-24  Kevin Ollivier  <kevino@theolliviers.com>
     2
     3        [wx] Unreviewed. Fix the build after WTF move.
     4
     5        * wscript:
     6
    172012-03-23  Filip Pizlo  <fpizlo@apple.com>
    28
  • trunk/Source/JavaScriptCore/wscript

    r111746 r112017  
    3535
    3636    jscore_excludes = ['jsc.cpp', 'ExecutableAllocatorPosix.cpp', 'LLIntOffsetsExtractor.cpp']
    37     jscore_excludes.extend(get_excludes(jscore_dir, ['*CF.cpp', '*Symbian.cpp']))
    38     jscore_excludes.extend(get_excludes(jscore_dir, ['*None.cpp']))
     37    jscore_exclude_patterns = get_port_excludes(Options.options.port)
     38    jscore_exclude_patterns.append('*None.cpp')
    3939
    4040    sources = []
    … …  
    4545        else:
    4646            jscore_excludes.append('JSStringRefBSTR.cpp')
    47             jscore_excludes.extend(get_excludes(jscore_dir, ['*Win.cpp']))
     47
     48    if sys.platform.startswith('darwin'):
     49        jscore_excludes.append('GCActivityCallback.cpp') # this is an empty impl.
    4850
    4951    bld.env.LIBDIR = output_dir
    5052    full_dirs = get_dirs_for_features(jscore_dir, features=[Options.options.port.lower()], dirs=jscore_dirs)
     53    abs_dirs = []
     54    for adir in full_dirs:
     55        abs_dirs.append(os.path.join(jscore_dir, adir))
     56
     57    jscore_excludes.extend(get_excludes_in_dirs(abs_dirs, jscore_exclude_patterns))
    5158
    5259    includes = common_includes + full_dirs
    … …  
    5764    jscore = bld.new_task_gen(
    5865        features = 'cc cxx cshlib',
    59         includes = '. .. assembler ../WTF ../WTF/wtf ' + ' '.join(includes),
     66        includes = '. .. assembler ../WTF ' + ' '.join(includes),
    6067        source = sources,
    6168        defines = ['BUILDING_JavaScriptCore'],
    … …  
    8289        myenv.CXXFLAGS.remove('/EHsc')
    8390        obj.env = myenv
    84 
    85     bld.install_files(os.path.join(output_dir, 'JavaScriptCore'), 'API/*.h')
  • trunk/Tools/ChangeLog

    r112014 r112017  
     12012-03-24  Kevin Ollivier  <kevino@theolliviers.com>
     2
     3        [wx] Unreviewed. Fix the build after WTF move.
     4
     5        * waf/build/build_utils.py:
     6        (get_excludes):
     7        (get_excludes_in_dirs):
     8        * waf/build/settings.py:
     9        (get_port_excludes):
     10        (common_configure):
     11
    1122012-03-24  Dirk Pranke  <dpranke@chromium.org>
    213
  • trunk/Tools/waf/build/build_utils.py

    r108161 r112017  
    4949def get_excludes(root, patterns):
    5050    """
    51     Get a list of exclude patterns going down several dirs.
    52     TODO: Make this fully recursive.
     51    Get a list of exclude patterns for root and all its subdirs.
    5352    """
    5453    excludes = []
    5554
     55    for afile in os.listdir(root):
     56        fullpath = os.path.join(root, afile)
     57        if os.path.isdir(fullpath):
     58            excludes.extend(get_excludes(fullpath, patterns))
     59           
    5660    for pattern in patterns:
    57         subdir_pattern = os.sep + '*'
    58         for subdir in [subdir_pattern, subdir_pattern * 2, subdir_pattern * 3]:
    59             adir = root + subdir + os.sep + pattern
    60             files = glob.glob(adir)
    61             for afile in files:
    62                 excludes.append(os.path.basename(afile))
     61        adir = root + os.sep + pattern
     62        files = glob.glob(adir)
     63        for afile in files:
     64            excludes.append(os.path.basename(afile))
    6365
    6466    return excludes
    6567
     68def get_excludes_in_dirs(dirs, patterns):
     69    excludes = []
     70    for adir in dirs:
     71        excludes.extend(get_excludes(adir, patterns))
     72    return excludes
    6673
    6774def get_dirs_for_features(root, features, dirs):
  • trunk/Tools/waf/build/settings.py

    r111746 r112017  
    7878    'CF',
    7979    'CFNet',
     80    'CURL',
     81    'WXGC',
    8082]
    8183
    … …  
    99101    'runtime',
    100102    'tools',
    101     'wtf',
    102     'wtf/dtoa',
    103     'wtf/text',
    104     'wtf/unicode',
    105     'wtf/unicode/icu',
     103    '../WTF/wtf',
     104    '../WTF/wtf/dtoa',
     105    '../WTF/wtf/text',
     106    '../WTF/wtf/unicode',
     107    '../WTF/wtf/unicode/icu',
    106108    'yarr',
    107109]
    … …  
    192194build_port = default_port
    193195
     196def get_port_excludes(thisport):
     197    """
     198    This function creates a list of file patterns to exclude
     199    based on what port you are using and what USES it has defined.
     200    """
     201    exclude_patterns = []
     202    global ports
     203    for port in ports:
     204        if not port == thisport:
     205            exclude = "*%s.cpp" % port
     206            if port == 'Chromium':
     207                exclude = "*Chromium*.cpp"
     208            exclude_patterns.append(exclude)
     209   
     210    global uses
     211    for use in uses:
     212        if thisport not in port_uses or not use in port_uses[thisport]:
     213            exclude_patterns.append("*%s.cpp" % use)
     214           
     215    return exclude_patterns
    194216
    195217def get_config():
    … …  
    346368    if sys.platform.startswith('darwin'):
    347369        conf.env['LIB_ICU'] = ['icucore']
    348 
     370        global port_uses
     371        port_uses[build_port].append('CF')
     372       
    349373        conf.env.append_value('CPPPATH', wklibs_dir)
    350374        conf.env.append_value('LIBPATH', wklibs_dir)
  • trunk/wscript

    r111746 r112017  
    117117   
    118118    wk_includes = ['.',
     119                    os.path.join(wk_root, 'Source', 'WTF'),
     120                    os.path.join(wk_root, 'Source', 'WTF', 'wtf'),
    119121                    os.path.join(wk_root, 'Source', 'JavaScriptCore'),
    120                     os.path.join(wk_root, 'Source', 'JavaScriptCore', 'wtf', 'text'),
    121122                    os.path.join(wk_root, 'Source', 'WebCore'),
    122123                    os.path.join(wk_root, 'Source', 'WebCore', 'DerivedSources'),
    … …  
    220221    exclude_patterns = ['*AllInOne.cpp', '*None.cpp',]
    221222
     223    if sys.platform.startswith('darwin'):
     224        features.append('cf')
     225
    222226    # exclude the filename patterns for all other ports.
    223     for port in ports:
    224         if not port == thisport:
    225             exclude = "*%s.cpp" % port
    226             if port == 'Chromium':
    227                 exclude = "*Chromium*.cpp"
    228             exclude_patterns.append(exclude)
     227    exclude_patterns.extend(get_port_excludes(Options.options.port))
    229228           
    230229    if Options.options.port == 'wx':
    … …  
    232231        exclude_patterns.extend(['*CFNet.cpp', 'test*bindings.*', "WebDOMCanvas*.cpp", "WebDOMSVG*.cpp"])
    233232       
    234     if sys.platform.startswith('darwin'):
    235         features.append('cf')
    236     else:
    237         exclude_patterns.append('*CF.cpp')
    238 
    239233    full_dirs = get_dirs_for_features(wk_root, features=features, dirs=webcore_dirs)
    240234
     235    # make sure we don't use the CF networking engine
     236    if Options.options.port == 'wx' and sys.platform.startswith('darwin'):
     237        full_dirs.remove('Source/WebCore/platform/network/cf')
     238       
    241239    jscore_dir = os.path.join(wk_root, 'Source', 'JavaScriptCore')
    242240    for item in os.listdir(jscore_dir):
    … …  
    247245    wk_includes.append('Source')
    248246    wk_includes.append(os.path.join(jscore_dir, 'collector', 'handles'))
    249     wk_includes.append(os.path.join(jscore_dir, 'wtf', 'unicode'))
    250     wk_includes.append(os.path.join(jscore_dir, 'wtf', 'unicode', 'icu'))
    251247    wk_includes += common_includes + full_dirs
    252248    if sys.platform.startswith('darwin'):
    … …  
    267263    webcore = bld.new_task_gen(
    268264        features = 'cc cxx cshlib',
    269         includes = 'Source/WTF ' + ' '.join(wk_includes),
     265        includes = ' '.join(wk_includes),
    270266        source = ' '.join(flattenSources(webcore_sources.values())),
    271267        cxxflags = cxxflags,
Note: See TracChangeset for help on using the changeset viewer.