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