OLD | NEW |
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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 { | 5 { |
6 'targets': [ | 6 'targets': [ |
7 { | 7 { |
8 'target_name': 'ui_base', | 8 'target_name': 'ui_base', |
9 'type': 'static_library', | |
10 'dependencies': [ | 9 'dependencies': [ |
11 '../base/base.gyp:base', | 10 '../base/base.gyp:base', |
| 11 '../base/base.gyp:base_static', |
12 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', | 12 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', |
13 '../build/temp_gyp/googleurl.gyp:googleurl', | 13 '../build/temp_gyp/googleurl.gyp:googleurl', |
14 '../net/net.gyp:net', | 14 '../net/net.gyp:net', |
15 '../skia/skia.gyp:skia', | 15 '../skia/skia.gyp:skia', |
16 '../third_party/icu/icu.gyp:icui18n', | 16 '../third_party/icu/icu.gyp:icui18n', |
17 '../third_party/icu/icu.gyp:icuuc', | 17 '../third_party/icu/icu.gyp:icuuc', |
18 'base/strings/ui_strings.gyp:ui_strings', | 18 'base/strings/ui_strings.gyp:ui_strings', |
19 'ui_gfx', | 19 'ui_gfx', |
20 ], | 20 ], |
21 # Export these dependencies since text_elider.h includes ICU headers. | 21 # Export these dependencies since text_elider.h includes ICU headers. |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 'base/ui_base_paths.cc', | 147 'base/ui_base_paths.cc', |
148 'base/ui_base_paths.h', | 148 'base/ui_base_paths.h', |
149 'base/ui_base_switches.cc', | 149 'base/ui_base_switches.cc', |
150 'base/ui_base_switches.h', | 150 'base/ui_base_switches.h', |
151 'base/view_prop.cc', | 151 'base/view_prop.cc', |
152 'base/view_prop.h', | 152 'base/view_prop.h', |
153 'base/win/hwnd_util.cc', | 153 'base/win/hwnd_util.cc', |
154 'base/win/hwnd_util.h', | 154 'base/win/hwnd_util.h', |
155 'base/win/ime_input.cc', | 155 'base/win/ime_input.cc', |
156 'base/win/ime_input.h', | 156 'base/win/ime_input.h', |
157 » 'base/win/shell.cc', | 157 'base/win/shell.cc', |
158 » 'base/win/shell.h', | 158 'base/win/shell.h', |
159 'base/win/window_impl.cc', | 159 'base/win/window_impl.cc', |
160 'base/win/window_impl.h', | 160 'base/win/window_impl.h', |
161 'base/x/active_window_watcher_x.cc', | 161 'base/x/active_window_watcher_x.cc', |
162 'base/x/active_window_watcher_x.h', | 162 'base/x/active_window_watcher_x.h', |
163 'base/x/x11_util.cc', | 163 'base/x/x11_util.cc', |
164 'base/x/x11_util.h', | 164 'base/x/x11_util.h', |
165 'base/x/x11_util_internal.h', | 165 'base/x/x11_util_internal.h', |
166 ], | 166 ], |
167 'conditions': [ | 167 'conditions': [ |
168 ['toolkit_uses_gtk == 1', { | 168 ['toolkit_uses_gtk == 1', { |
(...skipping 21 matching lines...) Expand all Loading... |
190 ], | 190 ], |
191 }, { | 191 }, { |
192 # Note: because of gyp predence rules this has to be defined as | 192 # Note: because of gyp predence rules this has to be defined as |
193 # 'sources/' rather than 'sources!'. | 193 # 'sources/' rather than 'sources!'. |
194 'sources/': [ | 194 'sources/': [ |
195 ['include', '^base/dragdrop/os_exchange_data.cc'], | 195 ['include', '^base/dragdrop/os_exchange_data.cc'], |
196 ], | 196 ], |
197 }], | 197 }], |
198 ], | 198 ], |
199 }], | 199 }], |
200 ['OS!="win"', { | 200 ['OS=="win"', { |
| 201 'type': '<(component)', |
| 202 },{ # else: OS!="win" |
| 203 'type': 'static_library', |
201 'sources!': [ | 204 'sources!': [ |
202 'base/dragdrop/drag_source.cc', | 205 'base/dragdrop/drag_source.cc', |
203 'base/dragdrop/drag_source.h', | 206 'base/dragdrop/drag_source.h', |
204 'base/dragdrop/drag_drop_types.h', | 207 'base/dragdrop/drag_drop_types.h', |
205 'base/dragdrop/drop_target.cc', | 208 'base/dragdrop/drop_target.cc', |
206 'base/dragdrop/drop_target.h', | 209 'base/dragdrop/drop_target.h', |
207 'base/dragdrop/os_exchange_data.cc', | 210 'base/dragdrop/os_exchange_data.cc', |
208 'base/view_prop.cc', | 211 'base/view_prop.cc', |
209 'base/view_prop.h', | 212 'base/view_prop.h', |
210 ], | 213 ], |
211 'sources/': [ | 214 'sources/': [ |
212 ['exclude', '^base/win/*'], | 215 ['exclude', '^base/win/*'], |
213 ], | 216 ], |
214 }], | 217 }], |
| 218 ['OS=="win" and component == "shared_library"', { |
| 219 'defines': [ |
| 220 'UI_BASE_DLL', |
| 221 'UI_BASE_IMPLEMENTATION', |
| 222 ], |
| 223 'msvs_disabled_warnings': [ |
| 224 4251, |
| 225 ], |
| 226 'direct_dependent_settings': { |
| 227 'defines': [ |
| 228 'UI_BASE_DLL', |
| 229 ], |
| 230 'msvs_disabled_warnings': [ |
| 231 4251, |
| 232 ], |
| 233 }, |
| 234 }], |
215 ['OS=="mac"', { | 235 ['OS=="mac"', { |
216 'link_settings': { | 236 'link_settings': { |
217 'libraries': [ | 237 'libraries': [ |
218 '$(SDKROOT)/System/Library/Frameworks/Accelerate.framework', | 238 '$(SDKROOT)/System/Library/Frameworks/Accelerate.framework', |
219 '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework', | 239 '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework', |
220 ], | 240 ], |
221 }, | 241 }, |
222 }], | 242 }], |
223 ['use_x11==1', { | 243 ['use_x11==1', { |
224 'all_dependent_settings': { | 244 'all_dependent_settings': { |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 ], | 289 ], |
270 }], | 290 }], |
271 ], | 291 ], |
272 } | 292 } |
273 | 293 |
274 # Local Variables: | 294 # Local Variables: |
275 # tab-width:2 | 295 # tab-width:2 |
276 # indent-tabs-mode:nil | 296 # indent-tabs-mode:nil |
277 # End: | 297 # End: |
278 # vim: set expandtab tabstop=2 shiftwidth=2: | 298 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |