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

Side by Side Diff: build/googleurl_unittests.scons

Issue 15051: Convert from using env['PLATFORM'] directly to using the more flexible... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years 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 | Annotate | Revision Log
« no previous file with comments | « build/googleurl_lib.scons ('k') | build/internal/essential.scons » ('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 googleurl_unittests{,.exe} executable. 6 Configuration for building the googleurl_unittests{,.exe} executable.
7 """ 7 """
8 8
9 Import('env') 9 Import('env')
10 10
11 env = env.Clone() 11 env = env.Clone()
12 12
13 env.SConscript([ 13 env.SConscript([
14 '$BASE_DIR/using_base.scons', 14 '$BASE_DIR/using_base.scons',
15 '$ICU38_DIR/using_icu38.scons', 15 '$ICU38_DIR/using_icu38.scons',
16 '$GTEST_DIR/../using_gtest.scons', 16 '$GTEST_DIR/../using_gtest.scons',
17 '$CHROME_SRC_DIR/build/using_googleurl.scons', 17 '$CHROME_SRC_DIR/build/using_googleurl.scons',
18 ], {'env':env}) 18 ], {'env':env})
19 19
20 env.Prepend( 20 env.Prepend(
21 CPPPATH = [ 21 CPPPATH = [
22 '$CHROME_SRC_DIR', 22 '$CHROME_SRC_DIR',
23 ], 23 ],
24 ) 24 )
25 25
26 if env['PLATFORM'] == 'win32': 26 if env.Bit('windows'):
27 env.Append( 27 env.Append(
28 CCFLAGS = [ 28 CCFLAGS = [
29 '/TP', 29 '/TP',
30 ], 30 ],
31 ) 31 )
32 32
33 input_files = [ 33 input_files = [
34 'src/gurl_unittest.cc', 34 'src/gurl_unittest.cc',
35 'src/url_canon_unittest.cc', 35 'src/url_canon_unittest.cc',
36 'src/url_parse_unittest.cc', 36 'src/url_parse_unittest.cc',
37 'src/url_util_unittest.cc', 37 'src/url_util_unittest.cc',
38 '$OBJ_ROOT/base/run_all_unittests$OBJSUFFIX', 38 '$OBJ_ROOT/base/run_all_unittests$OBJSUFFIX',
39 ] 39 ]
40 40
41 gurl_unittests = env.ChromeTestProgram('googleurl_unittests', input_files) 41 gurl_unittests = env.ChromeTestProgram('googleurl_unittests', input_files)
42 42
43 installed_gurl_unittests = env.Install('$TARGET_ROOT', gurl_unittests) 43 installed_gurl_unittests = env.Install('$TARGET_ROOT', gurl_unittests)
44 44
45 env.Alias('googleurl', installed_gurl_unittests) 45 env.Alias('googleurl', installed_gurl_unittests)
OLDNEW
« no previous file with comments | « build/googleurl_lib.scons ('k') | build/internal/essential.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698