diff options
Diffstat (limited to 'webkit/build/JSConfig/SConscript')
-rw-r--r-- | webkit/build/JSConfig/SConscript | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/webkit/build/JSConfig/SConscript b/webkit/build/JSConfig/SConscript index e3a15cf..7e896af 100644 --- a/webkit/build/JSConfig/SConscript +++ b/webkit/build/JSConfig/SConscript @@ -31,9 +31,17 @@ Import('env') env = env.Clone() -# TODO(bradnelson): very bad, calls batch, calls sh, deps all wrong -env.Append(ENV = {"OS" : "Windows_NT"}) -env.Command("obj/WebCore/config.h", - ["prebuild.bat", "../../config.h.in"], - "cd ${SOURCE.dir} && ${SOURCE.file} ${JSCONFIG_DIR.abspath} v8", - JSCONFIG_DIR = env.Dir('$WEBKIT_DIR/build/JSConfig')) + +if env['PLATFORM'] == 'posix': + # TODO(erg): adding to the badness. + env.Command("obj/WebCore/config.h", + ["create-config.sh", "../../config.h.in"], + "cd ${SOURCE.dir} && /bin/bash -x ${SOURCE.file} ${JSCONFIG_DIR.abspath} v8", + JSCONFIG_DIR = env.Dir('$WEBKIT_DIR/build/JSConfig')) +else: + # TODO(bradnelson): very bad, calls batch, calls sh, deps all wrong + env.Append(ENV = {"OS" : "Windows_NT"}) + env.Command("obj/WebCore/config.h", + ["prebuild.bat", "../../config.h.in"], + "cd ${SOURCE.dir} && ${SOURCE.file} ${JSCONFIG_DIR.abspath} v8", + JSCONFIG_DIR = env.Dir('$WEBKIT_DIR/build/JSConfig')) |