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 RCFLAGS = [ | 14 RCFLAGS = [ |
15 ['/l', '0x409'], | 15 ['/l', '0x409'], |
16 ], | 16 ], |
17 ) | 17 ) |
18 | 18 |
19 input_files = [ | 19 input_files = [ |
20 'base/effective_tld_names.dat', | 20 'base/effective_tld_names.dat', |
21 'tools/tld_cleanup/tld_cleanup.exe' | 21 'tools/tld_cleanup/tld_cleanup.exe' |
22 ] | 22 ] |
23 | 23 |
24 # TODO: Need to figure out what to do with external resources on linux. | 24 if env.Bit('windows'): |
25 # This dat file needed by net_resources is generated. | 25 # TODO(port): Need to figure out what to do with external resources |
26 tld_names_clean = env.Command('net/effective_tld_names_clean.dat', | 26 # on linux (and mac?). |
| 27 # This dat file needed by net_resources is generated. |
| 28 tld_names_clean = env.Command('net/effective_tld_names_clean.dat', |
27 input_files, | 29 input_files, |
28 '${SOURCES[1]} ${SOURCES[0]} $TARGET') | 30 '${SOURCES[1]} ${SOURCES[0]} $TARGET') |
29 | 31 |
30 rc = env.Command('net_resources.rc', | 32 rc = env.Command('net_resources.rc', |
31 'base/net_resources.rc', | 33 'base/net_resources.rc', |
32 Copy('$TARGET', '$SOURCE')) | 34 Copy('$TARGET', '$SOURCE')) |
33 | 35 |
34 env.Depends(rc, tld_names_clean) | 36 env.Depends(rc, tld_names_clean) |
35 | 37 |
36 env.RES(rc) | 38 env.RES(rc) |
OLD | NEW |