Changeset 65445 in webkit for trunk/JavaScriptCore/wscript
- Timestamp:
- Aug 16, 2010, 12:12:19 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wscript
r65385 r65445 43 43 jscore_excludes.append('JSStringRefBSTR.cpp') 44 44 jscore_excludes.extend(get_excludes(jscore_dir, ['*Win.cpp'])) 45 46 def generate_jscore_derived_sources():47 # build the derived sources48 js_dir = jscore_dir49 if building_on_win32:50 js_dir = get_output('cygpath --unix "%s"' % js_dir)51 derived_sources_dir = os.path.join(jscore_dir, 'DerivedSources')52 if not os.path.exists(derived_sources_dir):53 os.mkdir(derived_sources_dir)54 55 olddir = os.getcwd()56 os.chdir(derived_sources_dir)57 58 # DerivedSources.make expects Cygwin (i.e. Unix-style) python, so use that instead.59 if building_on_win32:60 oldpath = os.environ["PATH"]61 os.environ["PATH"] = "/usr/bin" + os.pathsep + os.environ["PATH"]62 command = 'make -f %s/DerivedSources.make JavaScriptCore=%s BUILT_PRODUCTS_DIR=%s all FEATURE_DEFINES="%s"' % (js_dir, js_dir, js_dir, ' '.join(feature_defines))63 os.system(command)64 if building_on_win32:65 os.environ["PATH"] = oldpath66 os.chdir(olddir)67 68 def set_options(opt):69 common_set_options(opt)70 71 def configure(conf):72 common_configure(conf)73 generate_jscore_derived_sources()74 45 75 46 def build(bld): … … 92 63 install_path = output_dir) 93 64 94 jscore.find_sources_in_dirs(full_dirs, excludes = jscore_excludes) 95 96 65 jscore.find_sources_in_dirs(full_dirs, excludes = jscore_excludes) 66 97 67 obj = bld.new_task_gen( 98 68 features = 'cxx cprogram',
Note:
See TracChangeset
for help on using the changeset viewer.