| OLD | NEW |
| 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 '$BREAKPAD_DIR/using_breakpad.scons', | 10 '$BREAKPAD_DIR/using_breakpad.scons', |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 '$CHROME_SRC_DIR', | 25 '$CHROME_SRC_DIR', |
| 26 ], | 26 ], |
| 27 ) | 27 ) |
| 28 | 28 |
| 29 env.Append( | 29 env.Append( |
| 30 CPPPATH = [ | 30 CPPPATH = [ |
| 31 '$WEBKIT_DIR/build/localized_strings', | 31 '$WEBKIT_DIR/build/localized_strings', |
| 32 ], | 32 ], |
| 33 ) | 33 ) |
| 34 | 34 |
| 35 if env['PLATFORM'] == 'win32': | 35 if env.Bit('windows'): |
| 36 env.Prepend( | 36 env.Prepend( |
| 37 CPPPATH = [ | 37 CPPPATH = [ |
| 38 '$CHROME_DIR/tools/build/win', | 38 '$CHROME_DIR/tools/build/win', |
| 39 ], | 39 ], |
| 40 ) | 40 ) |
| 41 | 41 |
| 42 input_files = [] | 42 input_files = [] |
| 43 | 43 |
| 44 if env['PLATFORM'] in ('posix', 'win32'): | 44 if not env.Bit('mac'): |
| 45 # TODO(port): Port to Mac. | 45 # TODO(port): Port to Mac. |
| 46 input_files.extend([ | 46 input_files.extend([ |
| 47 'animation.cc', | 47 'animation.cc', |
| 48 'chrome_constants.cc', | 48 'chrome_constants.cc', |
| 49 'chrome_counters.cc', | 49 'chrome_counters.cc', |
| 50 'chrome_paths.cc', | 50 'chrome_paths.cc', |
| 51 'chrome_switches.cc', | 51 'chrome_switches.cc', |
| 52 'common_glue.cc', | 52 'common_glue.cc', |
| 53 'debug_flags.cc', | 53 'debug_flags.cc', |
| 54 'env_vars.cc', | 54 'env_vars.cc', |
| (...skipping 15 matching lines...) Expand all Loading... |
| 70 'slide_animation.cc', | 70 'slide_animation.cc', |
| 71 'sqlite_compiled_statement.cc', | 71 'sqlite_compiled_statement.cc', |
| 72 'sqlite_utils.cc', | 72 'sqlite_utils.cc', |
| 73 'task_queue.cc', | 73 'task_queue.cc', |
| 74 'throb_animation.cc', | 74 'throb_animation.cc', |
| 75 'thumbnail_score.cc', | 75 'thumbnail_score.cc', |
| 76 'time_format.cc', | 76 'time_format.cc', |
| 77 'visitedlink_common.cc', | 77 'visitedlink_common.cc', |
| 78 ]) | 78 ]) |
| 79 | 79 |
| 80 if env['PLATFORM'] == 'win32': | 80 if env.Bit('windows'): |
| 81 # TODO(port): Port these. | 81 # TODO(port): Port these. |
| 82 input_files.extend([ | 82 input_files.extend([ |
| 83 'child_process.cc', | 83 'child_process.cc', |
| 84 'chrome_plugin_lib.cc', | 84 'chrome_plugin_lib.cc', |
| 85 'chrome_plugin_util.cc', | 85 'chrome_plugin_util.cc', |
| 86 'chrome_process_filter.cc', | 86 'chrome_process_filter.cc', |
| 87 'classfactory.cc', | 87 'classfactory.cc', |
| 88 'drag_drop_types.cc', | 88 'drag_drop_types.cc', |
| 89 'gfx/chrome_canvas_win.cc', | 89 'gfx/chrome_canvas_win.cc', |
| 90 'gfx/emf.cc', | 90 'gfx/emf.cc', |
| (...skipping 13 matching lines...) Expand all Loading... |
| 104 'process_watcher.cc', | 104 'process_watcher.cc', |
| 105 'render_messages.cc', | 105 'render_messages.cc', |
| 106 'resource_bundle.cc', | 106 'resource_bundle.cc', |
| 107 'resource_dispatcher.cc', | 107 'resource_dispatcher.cc', |
| 108 'security_filter_peer.cc', | 108 'security_filter_peer.cc', |
| 109 'win_safe_util.cc', | 109 'win_safe_util.cc', |
| 110 'win_util.cc', | 110 'win_util.cc', |
| 111 'worker_thread_ticker.cc', | 111 'worker_thread_ticker.cc', |
| 112 ]) | 112 ]) |
| 113 | 113 |
| 114 if env['PLATFORM'] == 'win32': | 114 if env.Bit('windows'): |
| 115 # Windows specific files | 115 # Windows specific files |
| 116 input_files.extend([ | 116 input_files.extend([ |
| 117 'gfx/chrome_font_win.cc', | 117 'gfx/chrome_font_win.cc', |
| 118 'ipc_channel_win.cc', | 118 'ipc_channel_win.cc', |
| 119 ]) | 119 ]) |
| 120 elif env['PLATFORM'] == 'posix': | 120 elif env.Bit('linux'): |
| 121 input_files.extend([ | 121 input_files.extend([ |
| 122 'gfx/chrome_canvas_skia.cc', | 122 'gfx/chrome_canvas_skia.cc', |
| 123 'gfx/chrome_font_skia.cc', | 123 'gfx/chrome_font_skia.cc', |
| 124 ]) | 124 ]) |
| 125 | 125 |
| 126 if env['PLATFORM'] in ['posix', 'mac']: | 126 if env.Bit('posix'): |
| 127 input_files.extend([ | 127 input_files.extend([ |
| 128 'ipc_channel_posix.cc', | 128 'ipc_channel_posix.cc', |
| 129 ]) | 129 ]) |
| 130 | 130 |
| 131 | 131 |
| 132 if env['PLATFORM'] in ('posix', 'win32'): | 132 if not env.Bit('mac'): |
| 133 # TODO(port): This should be enabled for all platforms. | 133 # TODO(port): This should be enabled for all platforms. |
| 134 env.ChromeStaticLibrary('common', input_files) | 134 env.ChromeStaticLibrary('common', input_files) |
| OLD | NEW |