X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/14957cd040308e3eeec43d26bae5d76da13fcd85..1981f5dfe8d77d97469d20652f712a09400c48ed:/wscript diff --git a/wscript b/wscript index 3df3ded..4afb4d2 100644 --- a/wscript +++ b/wscript @@ -33,32 +33,40 @@ def build(bld): import Options - jscore_excludes = ['jsc.cpp', 'ProfilerServer.mm', 'ExecutableAllocatorPosix.cpp'] - jscore_excludes.extend(get_excludes(jscore_dir, ['*Brew.cpp', '*CF.cpp', '*Symbian.cpp'])) - - jscore_excludes.extend(get_excludes(jscore_dir, ['*None.cpp'])) + jscore_excludes = ['jsc.cpp', 'ExecutableAllocatorPosix.cpp', 'LLIntOffsetsExtractor.cpp'] + jscore_exclude_patterns = get_port_excludes(Options.options.port) + jscore_exclude_patterns.append('*None.cpp') sources = [] if Options.options.port == "wx": if building_on_win32: - jscore_excludes += ['MarkStackPosix.cpp', 'OSAllocatorPosix.cpp', 'ThreadingPthreads.cpp'] - sources += ['heap/MarkStackWin.cpp'] + jscore_excludes += ['OSAllocatorPosix.cpp', 'ThreadingPthreads.cpp'] + sources.extend(['../WTF/wtf/ThreadingWin.cpp', '../WTF/wtf/ThreadSpecificWin.cpp', '../WTF/wtf/OSAllocatorWin.cpp']) else: jscore_excludes.append('JSStringRefBSTR.cpp') - jscore_excludes.extend(get_excludes(jscore_dir, ['*Win.cpp'])) + if sys.platform.startswith('darwin'): + jscore_excludes.append('GCActivityCallback.cpp') # this is an empty impl. + + bld.env.LIBDIR = output_dir full_dirs = get_dirs_for_features(jscore_dir, features=[Options.options.port.lower()], dirs=jscore_dirs) + abs_dirs = [] + for adir in full_dirs: + abs_dirs.append(os.path.join(jscore_dir, adir)) + + jscore_excludes.extend(get_excludes_in_dirs(abs_dirs, jscore_exclude_patterns)) - includes = common_includes + full_dirs + includes = common_includes + full_dirs + [output_dir] if sys.platform.startswith('darwin'): includes.append(os.path.join(jscore_dir, 'icu')) # 1. A simple program jscore = bld.new_task_gen( - features = 'cxx cstaticlib', - includes = '. .. assembler DerivedSources ForwardingHeaders ' + ' '.join(includes), + features = 'cc cxx cshlib', + includes = '. .. assembler ../WTF ' + ' '.join(includes), source = sources, + defines = ['BUILDING_JavaScriptCore'], target = 'jscore', uselib = 'WX ICU ' + get_config(), uselib_local = '', @@ -68,7 +76,7 @@ def build(bld): obj = bld.new_task_gen( features = 'cxx cprogram', - includes = '. .. assembler DerivedSources ForwardingHeaders ' + ' '.join(includes), + includes = '. .. assembler ../WTF ' + ' '.join(includes), source = 'jsc.cpp', target = 'jsc', uselib = 'WX ICU ' + get_config(), @@ -82,4 +90,4 @@ def build(bld): myenv.CXXFLAGS.remove('/EHsc') obj.env = myenv - bld.install_files(os.path.join(output_dir, 'JavaScriptCore'), 'API/*.h') + bld.add_group()