Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Side by Side Diff: net/net_resources.scons

Issue 21115: Add a Repack tool to scons. This is used to compile linux resources (Closed)
Patch Set: comments Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/SConscript ('k') | site_scons/site_tools/chromium_builders.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 os 9 import os
10 import sys
11 10
12 Import('env') 11 Import('env')
13 12
14 env = env.Clone() 13 env = env.Clone()
15 14
16 input_files = [ 15 input_files = [
17 'base/effective_tld_names.dat', 16 'base/effective_tld_names.dat',
18 'tools/tld_cleanup/tld_cleanup$PROGSUFFIX', 17 'tools/tld_cleanup/tld_cleanup$PROGSUFFIX',
19 ] 18 ]
20 19
21 # This dat file needed by net_resources is generated. 20 # This dat file needed by net_resources is generated.
22 tld_names_clean = env.Command( 21 tld_names_clean = env.Command(
23 '$TARGET_ROOT/grit_derived_sources/effective_tld_names_clean.dat', 22 '$TARGET_ROOT/grit_derived_sources/effective_tld_names_clean.dat',
24 input_files, 23 input_files,
25 '${SOURCES[1]} ${SOURCES[0]} $TARGET') 24 '${SOURCES[1]} ${SOURCES[0]} $TARGET')
26 25
27 sys.path.append(env.Dir('$CHROME_SRC_DIR/tools/grit').abspath)
28 env.Tool('scons', toolpath=[env.Dir('$CHROME_SRC_DIR/tools/grit/grit')])
29 # This dummy target is used to tell the emitter where to put the target files. 26 # This dummy target is used to tell the emitter where to put the target files.
30 generated = env.GRIT('$TARGET_ROOT/grit_derived_sources/dummy_net_res', 27 generated = env.GRIT('$TARGET_ROOT/grit_derived_sources/dummy_net_res',
31 ['base/net_resources.grd'] + tld_names_clean) 28 ['base/net_resources.grd'] + tld_names_clean)
32 29
33 30
34 if env.Bit('windows'): 31 if env.Bit('windows'):
35 env.Prepend( 32 env.Prepend(
36 RCFLAGS = [ 33 RCFLAGS = [
37 '/l 0x409', 34 '/l 0x409',
38 ], 35 ],
(...skipping 28 matching lines...) Expand all
67 InheritedPropertySheets=[ 64 InheritedPropertySheets=[
68 '$(SolutionDir)../build/common.vsprops', 65 '$(SolutionDir)../build/common.vsprops',
69 '$(SolutionDir)../build/debug.vsprops', 66 '$(SolutionDir)../build/debug.vsprops',
70 ]) 67 ])
71 68
72 p.AddConfig('Release|Win32', 69 p.AddConfig('Release|Win32',
73 InheritedPropertySheets=[ 70 InheritedPropertySheets=[
74 '$(SolutionDir)../build/common.vsprops', 71 '$(SolutionDir)../build/common.vsprops',
75 '$(SolutionDir)../build/release.vsprops', 72 '$(SolutionDir)../build/release.vsprops',
76 ]) 73 ])
OLDNEW
« no previous file with comments | « chrome/SConscript ('k') | site_scons/site_tools/chromium_builders.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698