# 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))