blob: 6120e0c32c7950a0e9aec594c4f5eb88cf94a1d2 (
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
39
40
41
42
|
# 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.
__doc__ = """
Configuration for building the net_resources.rc resources.
"""
import os
import sys
Import('env')
env = env.Clone()
input_files = [
'base/effective_tld_names.dat',
'tools/tld_cleanup/tld_cleanup$PROGSUFFIX',
]
sys.path.append(env.Dir('$CHROME_SRC_DIR/tools/grit').abspath)
env.Tool('scons', toolpath=[env.Dir('$CHROME_SRC_DIR/tools/grit/grit')])
# This dummy target is used to tell the emitter where to put the target files.
generated = env.GRIT('$TARGET_ROOT/grit_derived_sources/dummy_net_res',
'base/net_resources.grd')
# This dat file needed by net_resources is generated.
tld_names_clean = env.Command(
'$TARGET_ROOT/grit_derived_sources/effective_tld_names_clean.dat',
input_files,
'${SOURCES[1]} ${SOURCES[0]} $TARGET')
if env.Bit('windows'):
env.Prepend(
RCFLAGS = [
'/l 0x409',
],
)
for g in [g for g in generated if str(g).endswith('.rc')]:
net_res = env.RES(g)
env.Depends(net_res, tld_names_clean)
|