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

Side by Side Diff: chrome/browser/browser.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/SConscript ('k') | chrome/browser/debugger/debugger.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 Import('env') 5 Import('env')
6 6
7 env = env.Clone() 7 env = env.Clone()
8 8
9 env.SConscript([ 9 env.SConscript([
10 '$CHROME_DIR/third_party/hunspell/using_hunspell.scons', 10 '$CHROME_DIR/third_party/hunspell/using_hunspell.scons',
(...skipping 12 matching lines...) Expand all
23 CPPPATH = [ 23 CPPPATH = [
24 '$TARGET_ROOT/grit_derived_sources', 24 '$TARGET_ROOT/grit_derived_sources',
25 '$CHROME_DIR/app', 25 '$CHROME_DIR/app',
26 '$CHROME_SRC_DIR', 26 '$CHROME_SRC_DIR',
27 # To get the #include of history_indexer.h, 27 # To get the #include of history_indexer.h,
28 # generated from history/history_indexer.idl. 28 # generated from history/history_indexer.idl.
29 'history', 29 'history',
30 ], 30 ],
31 ) 31 )
32 32
33 if env['PLATFORM'] == 'win32': 33 if env.Bit('windows'):
34 env.Prepend( 34 env.Prepend(
35 CPPPATH = [ 35 CPPPATH = [
36 '$CHROME_DIR/tools/build/win', 36 '$CHROME_DIR/tools/build/win',
37 ], 37 ],
38 ) 38 )
39 39
40 input_files = [] 40 input_files = []
41 41
42 if env['PLATFORM'] in ('posix', 'win32'): 42 if not env.Bit('mac'):
43 # TODO: Port to Mac. 43 # TODO: Port to Mac.
44 input_files.extend([ 44 input_files.extend([
45 'autocomplete/keyword_provider.cc', 45 'autocomplete/keyword_provider.cc',
46 'automation/url_request_failed_dns_job.cc', 46 'automation/url_request_failed_dns_job.cc',
47 'automation/url_request_mock_http_job.cc', 47 'automation/url_request_mock_http_job.cc',
48 'automation/url_request_mock_net_error_job.cc', 48 'automation/url_request_mock_net_error_job.cc',
49 'automation/url_request_slow_download_job.cc', 49 'automation/url_request_slow_download_job.cc',
50 'bookmarks/bookmark_codec.cc', 50 'bookmarks/bookmark_codec.cc',
51 'bookmarks/bookmark_html_writer.cc', 51 'bookmarks/bookmark_html_writer.cc',
52 'browser_process.cc', 52 'browser_process.cc',
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 'ssl_error_info.cc', 110 'ssl_error_info.cc',
111 'template_url.cc', 111 'template_url.cc',
112 'template_url_model.cc', 112 'template_url_model.cc',
113 'template_url_parser.cc', 113 'template_url_parser.cc',
114 'url_fetcher.cc', 114 'url_fetcher.cc',
115 'url_fetcher_protect.cc', 115 'url_fetcher_protect.cc',
116 'user_metrics.cc', 116 'user_metrics.cc',
117 'webdata/web_database.cc', 117 'webdata/web_database.cc',
118 ]) 118 ])
119 119
120 if env['PLATFORM'] == 'win32': 120 if env.Bit('windows'):
121 # TODO: Port these. 121 # TODO: Port these.
122 input_files.extend([ 122 input_files.extend([
123 'autofill_manager.cc', 123 'autofill_manager.cc',
124 'about_internets_status_view.cc', 124 'about_internets_status_view.cc',
125 'alternate_nav_url_fetcher.cc', 125 'alternate_nav_url_fetcher.cc',
126 'app_modal_dialog_queue.cc', 126 'app_modal_dialog_queue.cc',
127 'autocomplete/autocomplete.cc', 127 'autocomplete/autocomplete.cc',
128 'autocomplete/autocomplete_accessibility.cc', 128 'autocomplete/autocomplete_accessibility.cc',
129 'autocomplete/autocomplete_edit.cc', 129 'autocomplete/autocomplete_edit.cc',
130 'autocomplete/autocomplete_popup.cc', 130 'autocomplete/autocomplete_popup.cc',
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 ]) 293 ])
294 294
295 env.TypeLibrary('history/history_indexer.idl') 295 env.TypeLibrary('history/history_indexer.idl')
296 296
297 input_files.extend([ 297 input_files.extend([
298 'importer/firefox_profile_lock_win.cc', 298 'importer/firefox_profile_lock_win.cc',
299 'render_widget_host_view_win.cc', 299 'render_widget_host_view_win.cc',
300 'web_contents_view_win.cc', 300 'web_contents_view_win.cc',
301 ]) 301 ])
302 302
303 if env['PLATFORM'] in ('darwin', 'posix'): 303 if env.Bit('posix'):
304 input_files.extend([ 304 input_files.extend([
305 'importer/firefox_profile_lock_posix.cc', 305 'importer/firefox_profile_lock_posix.cc',
306 ]) 306 ])
307 307
308 if env['PLATFORM'] in ('posix', 'win32'): 308 if not env.Bit('mac'):
309 # TODO: This should work for all platforms. 309 # TODO: This should work for all platforms.
310 env.ChromeStaticLibrary('browser', input_files) 310 env.ChromeStaticLibrary('browser', input_files)
OLDNEW
« no previous file with comments | « chrome/SConscript ('k') | chrome/browser/debugger/debugger.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698