Changeset 112017 in webkit
- Timestamp:
- Mar 24, 2012, 6:41:33 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
-
ChangeLog (modified) (1 diff)
-
Source/JavaScriptCore/ChangeLog (modified) (1 diff)
-
Source/JavaScriptCore/wscript (modified) (4 diffs)
-
Tools/ChangeLog (modified) (1 diff)
-
Tools/waf/build/build_utils.py (modified) (1 diff)
-
Tools/waf/build/settings.py (modified) (4 diffs)
-
wscript (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r111890 r112017 1 2012-03-24 Kevin Ollivier <kevino@theolliviers.com> 2 3 [wx] Unreviewed. Fix the build after WTF move. 4 5 * wscript: 6 1 7 2012-03-23 Dave Michael <dmichael@chromium.org> 2 8 -
trunk/Source/JavaScriptCore/ChangeLog
r112015 r112017 1 2012-03-24 Kevin Ollivier <kevino@theolliviers.com> 2 3 [wx] Unreviewed. Fix the build after WTF move. 4 5 * wscript: 6 1 7 2012-03-23 Filip Pizlo <fpizlo@apple.com> 2 8 -
trunk/Source/JavaScriptCore/wscript
r111746 r112017 35 35 36 36 jscore_excludes = ['jsc.cpp', 'ExecutableAllocatorPosix.cpp', 'LLIntOffsetsExtractor.cpp'] 37 jscore_exclude s.extend(get_excludes(jscore_dir, ['*CF.cpp', '*Symbian.cpp']))38 jscore_exclude s.extend(get_excludes(jscore_dir, ['*None.cpp']))37 jscore_exclude_patterns = get_port_excludes(Options.options.port) 38 jscore_exclude_patterns.append('*None.cpp') 39 39 40 40 sources = [] … … 45 45 else: 46 46 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. 48 50 49 51 bld.env.LIBDIR = output_dir 50 52 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)) 51 58 52 59 includes = common_includes + full_dirs … … 57 64 jscore = bld.new_task_gen( 58 65 features = 'cc cxx cshlib', 59 includes = '. .. assembler ../WTF ../WTF/wtf' + ' '.join(includes),66 includes = '. .. assembler ../WTF ' + ' '.join(includes), 60 67 source = sources, 61 68 defines = ['BUILDING_JavaScriptCore'], … … 82 89 myenv.CXXFLAGS.remove('/EHsc') 83 90 obj.env = myenv 84 85 bld.install_files(os.path.join(output_dir, 'JavaScriptCore'), 'API/*.h') -
trunk/Tools/ChangeLog
r112014 r112017 1 2012-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 1 12 2012-03-24 Dirk Pranke <dpranke@chromium.org> 2 13 -
trunk/Tools/waf/build/build_utils.py
r108161 r112017 49 49 def get_excludes(root, patterns): 50 50 """ 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. 53 52 """ 54 53 excludes = [] 55 54 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 56 60 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)) 63 65 64 66 return excludes 65 67 68 def get_excludes_in_dirs(dirs, patterns): 69 excludes = [] 70 for adir in dirs: 71 excludes.extend(get_excludes(adir, patterns)) 72 return excludes 66 73 67 74 def get_dirs_for_features(root, features, dirs): -
trunk/Tools/waf/build/settings.py
r111746 r112017 78 78 'CF', 79 79 'CFNet', 80 'CURL', 81 'WXGC', 80 82 ] 81 83 … … 99 101 'runtime', 100 102 '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', 106 108 'yarr', 107 109 ] … … 192 194 build_port = default_port 193 195 196 def 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 194 216 195 217 def get_config(): … … 346 368 if sys.platform.startswith('darwin'): 347 369 conf.env['LIB_ICU'] = ['icucore'] 348 370 global port_uses 371 port_uses[build_port].append('CF') 372 349 373 conf.env.append_value('CPPPATH', wklibs_dir) 350 374 conf.env.append_value('LIBPATH', wklibs_dir) -
trunk/wscript
r111746 r112017 117 117 118 118 wk_includes = ['.', 119 os.path.join(wk_root, 'Source', 'WTF'), 120 os.path.join(wk_root, 'Source', 'WTF', 'wtf'), 119 121 os.path.join(wk_root, 'Source', 'JavaScriptCore'), 120 os.path.join(wk_root, 'Source', 'JavaScriptCore', 'wtf', 'text'),121 122 os.path.join(wk_root, 'Source', 'WebCore'), 122 123 os.path.join(wk_root, 'Source', 'WebCore', 'DerivedSources'), … … 220 221 exclude_patterns = ['*AllInOne.cpp', '*None.cpp',] 221 222 223 if sys.platform.startswith('darwin'): 224 features.append('cf') 225 222 226 # 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)) 229 228 230 229 if Options.options.port == 'wx': … … 232 231 exclude_patterns.extend(['*CFNet.cpp', 'test*bindings.*', "WebDOMCanvas*.cpp", "WebDOMSVG*.cpp"]) 233 232 234 if sys.platform.startswith('darwin'):235 features.append('cf')236 else:237 exclude_patterns.append('*CF.cpp')238 239 233 full_dirs = get_dirs_for_features(wk_root, features=features, dirs=webcore_dirs) 240 234 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 241 239 jscore_dir = os.path.join(wk_root, 'Source', 'JavaScriptCore') 242 240 for item in os.listdir(jscore_dir): … … 247 245 wk_includes.append('Source') 248 246 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'))251 247 wk_includes += common_includes + full_dirs 252 248 if sys.platform.startswith('darwin'): … … 267 263 webcore = bld.new_task_gen( 268 264 features = 'cc cxx cshlib', 269 includes = ' Source/WTF ' + ''.join(wk_includes),265 includes = ' '.join(wk_includes), 270 266 source = ' '.join(flattenSources(webcore_sources.values())), 271 267 cxxflags = cxxflags,
Note:
See TracChangeset
for help on using the changeset viewer.