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 '$CHROME_DIR/third_party/wtl/using_wtl.scons', | 10 '$CHROME_DIR/third_party/wtl/using_wtl.scons', |
11 '$ICU38_DIR/using_icu38.scons', | 11 '$ICU38_DIR/using_icu38.scons', |
12 '$NPAPI_DIR/using_npapi.scons', | 12 '$NPAPI_DIR/using_npapi.scons', |
13 '$SKIA_DIR/using_skia.scons', | 13 '$SKIA_DIR/using_skia.scons', |
14 ], {'env':env}) | 14 ], {'env':env}) |
15 | 15 |
16 env.Prepend( | 16 env.Prepend( |
17 CPPPATH = [ | 17 CPPPATH = [ |
18 '$TARGET_ROOT/grit_derived_sources', | 18 '$TARGET_ROOT/grit_derived_sources', |
19 '$CHROME_SRC_DIR', | 19 '$CHROME_SRC_DIR', |
20 ], | 20 ], |
21 ) | 21 ) |
22 | 22 |
23 if env['PLATFORM'] == 'win32': | 23 if env.Bit('windows'): |
24 env.Prepend( | 24 env.Prepend( |
25 CPPPATH = [ | 25 CPPPATH = [ |
26 '$CHROME_DIR/tools/build/win', | 26 '$CHROME_DIR/tools/build/win', |
27 ], | 27 ], |
28 ) | 28 ) |
29 | 29 |
30 input_files = [ | 30 input_files = [ |
31 'about_handler.cc', | 31 'about_handler.cc', |
32 'chrome_plugin_host.cc', | 32 'chrome_plugin_host.cc', |
33 'debug_message_handler.cc', | 33 'debug_message_handler.cc', |
(...skipping 12 matching lines...) Expand all Loading... |
46 'visitedlink_slave.cc', | 46 'visitedlink_slave.cc', |
47 'webplugin_delegate_proxy.cc', | 47 'webplugin_delegate_proxy.cc', |
48 | 48 |
49 'automation/dom_automation_controller.cc', | 49 'automation/dom_automation_controller.cc', |
50 | 50 |
51 'net/render_dns_master.cc', | 51 'net/render_dns_master.cc', |
52 'net/render_dns_queue.cc', | 52 'net/render_dns_queue.cc', |
53 ] | 53 ] |
54 | 54 |
55 # TODO(port): Port these to Linux | 55 # TODO(port): Port these to Linux |
56 if env['PLATFORM'] == 'posix': | 56 if env.Bit('linux'): |
57 to_be_ported_files = [ | 57 to_be_ported_files = [ |
58 'chrome_plugin_host.cc', | 58 'chrome_plugin_host.cc', |
59 'debug_message_handler.cc', | 59 'debug_message_handler.cc', |
60 'external_js_object.cc', | 60 'external_js_object.cc', |
61 'net/render_dns_master.cc', | 61 'net/render_dns_master.cc', |
62 'plugin_channel_host.cc', | 62 'plugin_channel_host.cc', |
63 'render_process.cc', | 63 'render_process.cc', |
64 'render_thread.cc', | 64 'render_thread.cc', |
65 'render_view.cc', | 65 'render_view.cc', |
66 'render_widget.cc', | 66 'render_widget.cc', |
67 'renderer_glue.cc', | 67 'renderer_glue.cc', |
68 'renderer_main.cc', | 68 'renderer_main.cc', |
69 'webplugin_delegate_proxy.cc', | 69 'webplugin_delegate_proxy.cc', |
70 ] | 70 ] |
71 for remove in to_be_ported_files: | 71 for remove in to_be_ported_files: |
72 input_files.remove(remove) | 72 input_files.remove(remove) |
73 | 73 |
74 # TODO(port): Port these to Mac | 74 # TODO(port): Port these to Mac |
75 if env['PLATFORM'] == 'darwin': | 75 if env.Bit('mac'): |
76 to_be_ported_files = [ | 76 to_be_ported_files = [ |
77 'about_handler.cc', | 77 'about_handler.cc', |
78 'chrome_plugin_host.cc', | 78 'chrome_plugin_host.cc', |
79 'debug_message_handler.cc', | 79 'debug_message_handler.cc', |
80 'dom_ui_bindings.cc', | 80 'dom_ui_bindings.cc', |
81 'external_host_bindings.cc', | 81 'external_host_bindings.cc', |
82 'external_js_object.cc', | 82 'external_js_object.cc', |
83 'greasemonkey_slave.cc', | 83 'greasemonkey_slave.cc', |
84 'localized_error.cc', | 84 'localized_error.cc', |
85 'plugin_channel_host.cc', | 85 'plugin_channel_host.cc', |
86 'render_process.cc', | 86 'render_process.cc', |
87 'render_thread.cc', | 87 'render_thread.cc', |
88 'render_view.cc', | 88 'render_view.cc', |
89 'render_widget.cc', | 89 'render_widget.cc', |
90 'renderer_glue.cc', | 90 'renderer_glue.cc', |
91 'renderer_main.cc', | 91 'renderer_main.cc', |
92 'visitedlink_slave.cc', | 92 'visitedlink_slave.cc', |
93 'webplugin_delegate_proxy.cc', | 93 'webplugin_delegate_proxy.cc', |
94 'automation/dom_automation_controller.cc', | 94 'automation/dom_automation_controller.cc', |
95 'net/render_dns_master.cc', | 95 'net/render_dns_master.cc', |
96 'net/render_dns_queue.cc', | 96 'net/render_dns_queue.cc', |
97 ] | 97 ] |
98 for remove in to_be_ported_files: | 98 for remove in to_be_ported_files: |
99 input_files.remove(remove) | 99 input_files.remove(remove) |
100 | 100 |
101 | 101 |
102 # TODO(port): Enable for Mac. | 102 # TODO(port): Enable for Mac. |
103 if env['PLATFORM'] in ('posix', 'win32'): | 103 if not env.Bit('mac'): |
104 env.ChromeStaticLibrary('renderer', input_files) | 104 env.ChromeStaticLibrary('renderer', input_files) |
OLD | NEW |