summaryrefslogtreecommitdiffstats
path: root/webkit/build
diff options
context:
space:
mode:
authormark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-11 23:56:26 +0000
committermark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-11 23:56:26 +0000
commit498fca602694169c686e796a051bb696482ba321 (patch)
tree023fb41b75772e5d7f3b0101788d48bb1e673ca4 /webkit/build
parent4739354ca60bbb00ecbf0824c87fa11f45757402 (diff)
downloadchromium_src-498fca602694169c686e796a051bb696482ba321.zip
chromium_src-498fca602694169c686e796a051bb696482ba321.tar.gz
chromium_src-498fca602694169c686e796a051bb696482ba321.tar.bz2
WTF and PCRE should use JavaScriptCore/config.h and WebCore should use
WebCore/config.h. I cleaned up the config target in webkit.gyp so it doesn't copy config.h around. This way wtf/pcre and webcore each use the appropriate config file. Tested on mac/linux/win platforms. Patch by Yaar Schnitman <yaar@chromium.org> Code review URL: http://codereview.chromium.org/196098 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26053 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/build')
-rwxr-xr-xwebkit/build/action_jsconfig.py45
1 files changed, 0 insertions, 45 deletions
diff --git a/webkit/build/action_jsconfig.py b/webkit/build/action_jsconfig.py
deleted file mode 100755
index 7ddc12a..0000000
--- a/webkit/build/action_jsconfig.py
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/usr/bin/python
-
-# Copyright (c) 2009 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-# usage: action_jsconfig.py JS_ENGINE OUTPUT_DIR CONFIG_H_IN FILES_TO_COPY
-# JS_ENGINE may be v8 at present. jsc will be added in the future.
-# OUTPUT_DIR is the directory to put files in.
-# CONFIG_H_IN is the path to config.h.in upon which config.h will be based.
-# FILES_TO_COPY is a list of additional headers to be copied. It may be empty.
-
-import errno
-import os
-import os.path
-import shutil
-import sys
-
-assert len(sys.argv) >= 4
-js_engine = sys.argv[1]
-output_dir = sys.argv[2]
-config_h_in_path = sys.argv[3]
-files_to_copy = sys.argv[4:]
-
-config_h_path = os.path.join(output_dir, 'config.h')
-
-assert js_engine == 'v8'
-
-config_h_in_file = open(config_h_in_path)
-config_h_in_contents = config_h_in_file.read()
-config_h_in_file.close()
-
-config_h_file = open(config_h_path, 'w')
-print >>config_h_file, config_h_in_contents
-if js_engine == 'v8':
- print >>config_h_file, '#define WTF_USE_V8_BINDING 1'
- print >>config_h_file, '#define WTF_USE_NPOBJECT 1'
-config_h_file.close()
-
-for file in files_to_copy:
- # This is not strictly right for jsc headers, which will want to be in one
- # more subdirectory named JavaScriptCore.
- basename = os.path.basename(file)
- destination = os.path.join(output_dir, basename)
- shutil.copy(file, destination)