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.Append( | 9 env.Append( |
10 CPPPATH = [ | 10 CPPPATH = [ |
11 '$WEBKIT_DIR/build/WebCore', | 11 '$WEBKIT_DIR/build/WebCore', |
12 ] | 12 ] |
13 ) | 13 ) |
14 | 14 |
15 if env['PLATFORM'] == 'win32': | 15 if env.Bit('windows'): |
16 env.Append( | 16 env.Append( |
17 CCFLAGS = [ | 17 CCFLAGS = [ |
18 '/TP', | 18 '/TP', |
19 | 19 |
20 '/WX', | 20 '/WX', |
21 | 21 |
22 '/wd4800', | 22 '/wd4800', |
23 ], | 23 ], |
24 ) | 24 ) |
25 | 25 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 'webframeloaderclient_impl.cc', | 72 'webframeloaderclient_impl.cc', |
73 'webhistoryitem_impl.cc', | 73 'webhistoryitem_impl.cc', |
74 'webkit_glue.cc', | 74 'webkit_glue.cc', |
75 'webplugin_impl.cc', | 75 'webplugin_impl.cc', |
76 'webtextinput_impl.cc', | 76 'webtextinput_impl.cc', |
77 'weburlrequest_impl.cc', | 77 'weburlrequest_impl.cc', |
78 'webwidget_impl.cc', | 78 'webwidget_impl.cc', |
79 'webview_impl.cc', | 79 'webview_impl.cc', |
80 ] | 80 ] |
81 | 81 |
82 if env['PLATFORM'] == 'posix': | 82 if env.Bit('linux'): |
83 # TODO(port): until we have plugin support for Linux, these files aren't | 83 # TODO(port): until we have plugin support for Linux, these files aren't |
84 # built. | 84 # built. |
85 remove_files = [ | 85 remove_files = [ |
86 'plugins/plugin_host.cc', | 86 'plugins/plugin_host.cc', |
87 'plugins/plugin_instance.cc', | 87 'plugins/plugin_instance.cc', |
88 'plugins/plugin_string_stream.cc', | 88 'plugins/plugin_string_stream.cc', |
89 'plugins/plugin_stream_url.cc', | 89 'plugins/plugin_stream_url.cc', |
90 ] | 90 ] |
91 | 91 |
92 for file in remove_files: | 92 for file in remove_files: |
93 input_files.remove(file) | 93 input_files.remove(file) |
94 | 94 |
95 if env['PLATFORM'] == 'win32': | 95 if env.Bit('windows'): |
96 # TODO(port): These extra files aren't win32-specific, they've just not been | 96 # TODO(port): These extra files aren't win32-specific, they've just not been |
97 # tested on other platforms yet. | 97 # tested on other platforms yet. |
98 input_files.extend([ | 98 input_files.extend([ |
99 '$PENDING_DIR/AccessibleBase.cpp', | 99 '$PENDING_DIR/AccessibleBase.cpp', |
100 '$PENDING_DIR/AccessibleDocument.cpp', | 100 '$PENDING_DIR/AccessibleDocument.cpp', |
101 'glue_accessibility.cc', | 101 'glue_accessibility.cc', |
102 'plugins/mozilla_extensions.cc', | 102 'plugins/mozilla_extensions.cc', |
103 'plugins/plugin_lib.cc', | 103 'plugins/plugin_lib.cc', |
104 'plugins/plugin_list.cc', | 104 'plugins/plugin_list.cc', |
105 'plugins/webplugin_delegate_impl.cc', | 105 'plugins/webplugin_delegate_impl.cc', |
106 'webdropdata.cc', | 106 'webdropdata.cc', |
107 ]) | 107 ]) |
108 | 108 |
109 if env['PLATFORM'] == 'win32': | 109 if env.Bit('windows'): |
110 input_files.extend([ | 110 input_files.extend([ |
111 'plugins/plugin_stream_win.cc', | 111 'plugins/plugin_stream_win.cc', |
112 'webcursor_win.cc', | 112 'webcursor_win.cc', |
113 'webinputevent_win.cc', | 113 'webinputevent_win.cc', |
114 'webkit_glue_win.cc', | 114 'webkit_glue_win.cc', |
115 ]) | 115 ]) |
116 elif env['PLATFORM'] == 'posix': | 116 elif env.Bit('linux'): |
117 input_files.extend([ | 117 input_files.extend([ |
118 'webcursor_gtk.cc', | 118 'webcursor_gtk.cc', |
119 'webinputevent_linux.cc', | 119 'webinputevent_linux.cc', |
120 'webkit_glue_gtk.cc', | 120 'webkit_glue_gtk.cc', |
121 ]) | 121 ]) |
122 elif env['PLATFORM'] == 'darwin': | 122 elif env.Bit('mac'): |
123 input_files.extend([ | 123 input_files.extend([ |
124 'webcursor_mac.mm', | 124 'webcursor_mac.mm', |
125 ]) | 125 ]) |
126 | 126 |
127 if env['PLATFORM'] in ('posix', 'darwin'): | 127 if env.Bit('posix'): |
128 input_files.extend([ | 128 input_files.extend([ |
129 'plugins/plugin_stream_posix.cc', | 129 'plugins/plugin_stream_posix.cc', |
130 ]) | 130 ]) |
131 | 131 |
132 env.ChromeStaticLibrary('glue', input_files) | 132 env.ChromeStaticLibrary('glue', input_files) |
133 | 133 |
OLD | NEW |