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