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

Side by Side Diff: chrome/test/unit/unit_tests.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 | « chrome/test/ui/ui_tests.scons ('k') | chrome/third_party/hunspell/SConscript » ('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 Import('env') 5 Import('env')
6 6
7 env = env.Clone() 7 env = env.Clone()
8 8
9 env.SConscript([ 9 env.SConscript([
10 '$BASE_DIR/gfx/using_base_gfx.scons', 10 '$BASE_DIR/gfx/using_base_gfx.scons',
11 '$BASE_DIR/using_base.scons', 11 '$BASE_DIR/using_base.scons',
12 '$BZIP2_DIR/using_bzip2.scons', 12 '$BZIP2_DIR/using_bzip2.scons',
13 '$CHROME_DIR/third_party/hunspell/using_hunspell.scons', 13 '$CHROME_DIR/third_party/hunspell/using_hunspell.scons',
14 '$CHROME_DIR/third_party/wtl/using_wtl.scons', 14 '$CHROME_DIR/third_party/wtl/using_wtl.scons',
15 '$CHROME_SRC_DIR/build/using_googleurl.scons', 15 '$CHROME_SRC_DIR/build/using_googleurl.scons',
16 '$CHROME_SRC_DIR/build/using_v8.scons', 16 '$CHROME_SRC_DIR/build/using_v8.scons',
17 '$GTEST_DIR/../using_gtest.scons', 17 '$GTEST_DIR/../using_gtest.scons',
18 '$ICU38_DIR/using_icu38.scons', 18 '$ICU38_DIR/using_icu38.scons',
19 '$LIBJPEG_DIR/using_libjpeg.scons', 19 '$LIBJPEG_DIR/using_libjpeg.scons',
20 '$LIBPNG_DIR/using_libpng.scons', 20 '$LIBPNG_DIR/using_libpng.scons',
21 '$LIBXML_DIR/using_libxml.scons', 21 '$LIBXML_DIR/using_libxml.scons',
22 '$LIBXSLT_DIR/using_libxslt.scons', 22 '$LIBXSLT_DIR/using_libxslt.scons',
23 '$MODP_B64_DIR/using_modp_b64.scons', 23 '$MODP_B64_DIR/using_modp_b64.scons',
24 '$NET_DIR/using_net.scons', 24 '$NET_DIR/using_net.scons',
25 '$SKIA_DIR/using_skia.scons', 25 '$SKIA_DIR/using_skia.scons',
26 '$ZLIB_DIR/using_zlib.scons', 26 '$ZLIB_DIR/using_zlib.scons',
27 ], {'env':env}) 27 ], {'env':env})
28 28
29 if env['PLATFORM'] == 'win32': 29 if env.Bit('windows'):
30 env.SConscript([ 30 env.SConscript([
31 '$SDCH_DIR/using_sdch.scons', 31 '$SDCH_DIR/using_sdch.scons',
32 ], {'env':env}) 32 ], {'env':env})
33 33
34 if env['PLATFORM'] in ('posix', 'darwin'): 34 if env.Bit('posix'):
35 env.SConscript([ 35 env.SConscript([
36 '$LIBEVENT_DIR/using_libevent.scons', 36 '$LIBEVENT_DIR/using_libevent.scons',
37 ], {'env':env}) 37 ], {'env':env})
38 38
39 env.Prepend( 39 env.Prepend(
40 CPPPATH = [ 40 CPPPATH = [
41 '$CHROME_DIR/app/resources', 41 '$CHROME_DIR/app/resources',
42 '$CHROME_SRC_DIR', 42 '$CHROME_SRC_DIR',
43 ], 43 ],
44 LIBS = [ 44 LIBS = [
45 'browser', 45 'browser',
46 'common', 46 'common',
47 'plugin', 47 'plugin',
48 'renderer', 48 'renderer',
49 'sqlite', 49 'sqlite',
50 'util', 50 'util',
51 'v8_snapshot', 51 'v8_snapshot',
52 52
53 'WTF', 53 'WTF',
54 'V8Bindings', 54 'V8Bindings',
55 'default_plugin', 55 'default_plugin',
56 'glue', 56 'glue',
57 'JavaScriptCore_pcre', 57 'JavaScriptCore_pcre',
58 'port', 58 'port',
59 'WebCore', 59 'WebCore',
60 ], 60 ],
61 ) 61 )
62 62
63 if env['PLATFORM'] == 'win32': 63 if env.Bit('windows'):
64 env.Prepend( 64 env.Prepend(
65 CPPPATH = [ 65 CPPPATH = [
66 '$CHROME_DIR/tools/build/win', 66 '$CHROME_DIR/tools/build/win',
67 ], 67 ],
68 ) 68 )
69 69
70 if env['PLATFORM'] == 'win32': 70 if env.Bit('windows'):
71 # TODO(port): Port or mark as Windows-specific. 71 # TODO(port): Port or mark as Windows-specific.
72 env.Prepend( 72 env.Prepend(
73 LIBS = [ 73 LIBS = [
74 # TODO(port): to be ported to Mac and Linux, or else 74 # TODO(port): to be ported to Mac and Linux, or else
75 # moved to the Windows-specific list below. 75 # moved to the Windows-specific list below.
76 'browser_views', 76 'browser_views',
77 'debugger', 77 'debugger',
78 'jscre', 78 'jscre',
79 'test_chrome_plugin', 79 'test_chrome_plugin',
80 'views', 80 'views',
(...skipping 21 matching lines...) Expand all
102 '/DELAYLOAD:"uxtheme.dll"', 102 '/DELAYLOAD:"uxtheme.dll"',
103 103
104 '/DEBUG', 104 '/DEBUG',
105 '/MACHINE:X86', 105 '/MACHINE:X86',
106 '/FIXED:No', 106 '/FIXED:No',
107 ], 107 ],
108 ) 108 )
109 109
110 unit_test_files = [] 110 unit_test_files = []
111 111
112 if env['PLATFORM'] in ('posix', 'win32'): 112 if not env.Bit('mac'):
113 # TODO(port): Port to Mac. 113 # TODO(port): Port to Mac.
114 unit_test_files.extend([ 114 unit_test_files.extend([
115 'run_all_unittests.cc', 115 'run_all_unittests.cc',
116 116
117 '$CHROME_DIR/browser/chrome_thread_unittest.cc', 117 '$CHROME_DIR/browser/chrome_thread_unittest.cc',
118 '$CHROME_DIR/browser/extensions/extension_unittest.cc', 118 '$CHROME_DIR/browser/extensions/extension_unittest.cc',
119 '$CHROME_DIR/browser/extensions/extensions_service_unittest.cc', 119 '$CHROME_DIR/browser/extensions/extensions_service_unittest.cc',
120 '$CHROME_DIR/browser/history/history_types_unittest.cc', 120 '$CHROME_DIR/browser/history/history_types_unittest.cc',
121 '$CHROME_DIR/browser/history/snippet_unittest.cc', 121 '$CHROME_DIR/browser/history/snippet_unittest.cc',
122 '$CHROME_DIR/browser/history/text_database_unittest.cc', 122 '$CHROME_DIR/browser/history/text_database_unittest.cc',
(...skipping 13 matching lines...) Expand all
136 '$CHROME_DIR/common/gfx/chrome_font_unittest.cc', 136 '$CHROME_DIR/common/gfx/chrome_font_unittest.cc',
137 '$CHROME_DIR/common/ipc_message_unittest.cc', 137 '$CHROME_DIR/common/ipc_message_unittest.cc',
138 '$CHROME_DIR/common/jpeg_codec_unittest.cc', 138 '$CHROME_DIR/common/jpeg_codec_unittest.cc',
139 '$CHROME_DIR/common/json_value_serializer_unittest.cc', 139 '$CHROME_DIR/common/json_value_serializer_unittest.cc',
140 '$CHROME_DIR/common/mru_cache_unittest.cc', 140 '$CHROME_DIR/common/mru_cache_unittest.cc',
141 '$CHROME_DIR/common/notification_service_unittest.cc', 141 '$CHROME_DIR/common/notification_service_unittest.cc',
142 '$CHROME_DIR/common/property_bag_unittest.cc', 142 '$CHROME_DIR/common/property_bag_unittest.cc',
143 '$CHROME_DIR/renderer/greasemonkey_slave_unittest.cc', 143 '$CHROME_DIR/renderer/greasemonkey_slave_unittest.cc',
144 ]) 144 ])
145 145
146 if env['PLATFORM'] == 'win32': 146 if env.Bit('windows'):
147 # TODO(port): Port these. 147 # TODO(port): Port these.
148 unit_test_files.extend([ 148 unit_test_files.extend([
149 '$CHROME_DIR/browser/autocomplete/autocomplete_unittest.cc', 149 '$CHROME_DIR/browser/autocomplete/autocomplete_unittest.cc',
150 '$CHROME_DIR/browser/autocomplete/history_contents_provider_unittest.cc', 150 '$CHROME_DIR/browser/autocomplete/history_contents_provider_unittest.cc',
151 '$CHROME_DIR/browser/autocomplete/history_url_provider_unittest.cc', 151 '$CHROME_DIR/browser/autocomplete/history_url_provider_unittest.cc',
152 '$CHROME_DIR/browser/autocomplete/keyword_provider_unittest.cc', 152 '$CHROME_DIR/browser/autocomplete/keyword_provider_unittest.cc',
153 '$CHROME_DIR/browser/back_forward_menu_model_unittest.cc', 153 '$CHROME_DIR/browser/back_forward_menu_model_unittest.cc',
154 '$CHROME_DIR/browser/bookmarks/bookmark_context_menu_test.cc', 154 '$CHROME_DIR/browser/bookmarks/bookmark_context_menu_test.cc',
155 '$CHROME_DIR/browser/bookmarks/bookmark_drag_data_unittest.cc', 155 '$CHROME_DIR/browser/bookmarks/bookmark_drag_data_unittest.cc',
156 '$CHROME_DIR/browser/bookmarks/bookmark_folder_tree_model_unittest.cc', 156 '$CHROME_DIR/browser/bookmarks/bookmark_folder_tree_model_unittest.cc',
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 237
238 # Commented out for now because googleurl_tests doesn't build with 238 # Commented out for now because googleurl_tests doesn't build with
239 # gtest; see ../build/SConscript.googleurl. 239 # gtest; see ../build/SConscript.googleurl.
240 #'$GOOGLEURL_DIR/googleurl_tests.lib', 240 #'$GOOGLEURL_DIR/googleurl_tests.lib',
241 '$NET_DIR/url_request/url_request_test_job$OBJSUFFIX', 241 '$NET_DIR/url_request/url_request_test_job$OBJSUFFIX',
242 242
243 '$CHROME_DIR/browser/browser_resources.res', 243 '$CHROME_DIR/browser/browser_resources.res',
244 '$CHROME_DIR/test/data/resource.res', 244 '$CHROME_DIR/test/data/resource.res',
245 ]) 245 ])
246 246
247 if env['PLATFORM'] in ('posix', 'win32'): 247 if not env.Bit('mac'):
248 # TODO(port): This should work on all platforms. 248 # TODO(port): This should work on all platforms.
249 249
250 unit_tests = env.ChromeTestProgram('unit_tests', unit_test_files) 250 unit_tests = env.ChromeTestProgram('unit_tests', unit_test_files)
251 251
252 i = env.Install('$TARGET_ROOT', unit_tests) 252 i = env.Install('$TARGET_ROOT', unit_tests)
253 Alias('chrome', i) 253 Alias('chrome', i)
OLDNEW
« no previous file with comments | « chrome/test/ui/ui_tests.scons ('k') | chrome/third_party/hunspell/SConscript » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698