blob: 44feb87140c9d92a6ea2edbcc1c1baed9975077b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# Copyright (c) 2006-2008 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.
Import('env')
env = env.Clone()
def CopyConfigH(target, source, env):
contents = open(str(source[0]), 'r').read()
if env.get('KJS'):
contents += '#define WTF_USE_JAVASCRIPTCORE 1\n'
else:
contents += '#define WTF_USE_V8_BINDING 1\n'
contents += '#define WTF_USE_NPOBJECT 1\n'
open(str(target[0]), 'w').write(contents)
env.Command('WebCore/config.h',
'../../config.h.in',
Action(CopyConfigH))
env.ChromeMSVSProject('$WEBKIT_DIR/build/JSConfig/V8Config.vcproj',
guid='{2E2D3301-2EC4-4C0F-B889-87073B30F673}')
|