blob: af77bdc601a1bc940d70864620bda3f11a163d01 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# 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))
|