| OLD | NEW | 
|---|
| 1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be | 
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. | 
| 4 | 4 | 
| 5 Import('env') | 5 Import('env') | 
| 6 | 6 | 
| 7 env = env.Clone() | 7 env = env.Clone() | 
| 8 | 8 | 
| 9 | 9 | 
| 10 def CopyConfigH(target, source, env): | 10 def CopyConfigH(target, source, env): | 
| 11   contents = open(str(source[0]), 'r').read() | 11   contents = open(str(source[0]), 'r').read() | 
| 12 | 12 | 
| 13   if env.get('KJS'): | 13   if env.get('KJS'): | 
| 14     contents += '#define WTF_USE_JAVASCRIPTCORE 1\n' | 14     contents += '#define WTF_USE_JAVASCRIPTCORE 1\n' | 
| 15   else: | 15   else: | 
| 16     contents += '#define WTF_USE_V8_BINDING 1\n' | 16     contents += '#define WTF_USE_V8_BINDING 1\n' | 
| 17   contents += '#define WTF_USE_NPOBJECT 1\n' | 17   contents += '#define WTF_USE_NPOBJECT 1\n' | 
| 18 | 18 | 
| 19   open(str(target[0]), 'w').write(contents) | 19   open(str(target[0]), 'w').write(contents) | 
| 20 | 20 | 
| 21 env.Command('WebCore/config.h', | 21 env.Command('WebCore/config.h', | 
| 22             '../../config.h.in', | 22             '../../config.h.in', | 
| 23             Action(CopyConfigH)) | 23             Action(CopyConfigH)) | 
|  | 24 | 
|  | 25 env.ChromeMSVSProject('$WEBKIT_DIR/build/JSConfig/V8Config.vcproj', | 
|  | 26                 guid='{2E2D3301-2EC4-4C0F-B889-87073B30F673}') | 
| OLD | NEW | 
|---|