blob: d964e4944e23ca33b6185dabbad80e5637bc0c71 (
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
27
28
29
30
31
32
33
34
35
36
37
38
|
# 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_res'])
env = env.Clone()
env_res = env_res.Clone()
env_res.Append(
CPPPATH = [
".",
#"$CHROME_SRC_DIR/chrome/Debug/obj/chrome_dll",
"$CHROME_SRC_DIR",
#"$CHROME_SRC_DIR/chrome/Debug/obj",
],
)
if env_res['PLATFORM'] == 'win32':
env_res.Append(
RCFLAGS = [
["/l", "0x409"],
],
)
import os
import sys
sys.path.append(env.Dir('$CHROME_SRC_DIR/tools/grit').abspath)
env_grd = env.Clone()
env_grd.Tool('scons', toolpath=[env_grd.Dir('$CHROME_SRC_DIR/tools/grit/grit')])
# This dummy target (webkit_strings) is used to tell the emitter where
# to put the target files.
generated = env_grd.GRIT('webkit_strings',
'$CHROME_SRC_DIR/webkit/glue/webkit_strings.grd')
if env_res['PLATFORM'] == 'win32':
for g in [g for g in generated if str(g).endswith('.rc')]:
env_res.RES(g)
|