OLD | NEW |
1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 __doc__ = """ | 5 __doc__ = """ |
6 Configuration for building the net_resources.rc resources. | 6 Configuration for building the net_resources.rc resources. |
7 """ | 7 """ |
8 | 8 |
9 Import('env') | 9 Import('env') |
10 | 10 |
11 env = env.Clone() | 11 env = env.Clone() |
12 | 12 |
13 env.Prepend( | 13 env.Prepend( |
14 CPPPATH = [ | |
15 '$CHROME_SRC_DIR', | |
16 ], | |
17 RCFLAGS = [ | 14 RCFLAGS = [ |
18 ['/l', '0x409'], | 15 ['/l', '0x409'], |
19 ], | 16 ], |
20 ) | 17 ) |
21 | 18 |
22 input_files = [ | 19 input_files = [ |
23 'base/effective_tld_names.dat', | 20 'base/effective_tld_names.dat', |
24 'tools/tld_cleanup/tld_cleanup.exe' | 21 'tools/tld_cleanup/tld_cleanup.exe' |
25 ] | 22 ] |
26 | 23 |
27 # TODO: Need to figure out what to do with external resources on linux. | 24 # TODO: Need to figure out what to do with external resources on linux. |
28 # This dat file needed by net_resources is generated. | 25 # This dat file needed by net_resources is generated. |
29 tld_names_clean = env.Command('net/effective_tld_names_clean.dat', | 26 tld_names_clean = env.Command('net/effective_tld_names_clean.dat', |
30 input_files, | 27 input_files, |
31 '${SOURCES[1]} ${SOURCES[0]} $TARGET') | 28 '${SOURCES[1]} ${SOURCES[0]} $TARGET') |
32 | 29 |
33 rc = env.Command('net_resources.rc', | 30 rc = env.Command('net_resources.rc', |
34 'base/net_resources.rc', | 31 'base/net_resources.rc', |
35 Copy('$TARGET', '$SOURCE')) | 32 Copy('$TARGET', '$SOURCE')) |
36 | 33 |
37 env.Depends(rc, tld_names_clean) | 34 env.Depends(rc, tld_names_clean) |
38 | 35 |
39 env.RES(rc) | 36 env.RES(rc) |
OLD | NEW |