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 'variables': { | 6 'variables': { |
7 'chromium_code': 1, | 7 'chromium_code': 1, |
8 }, | 8 }, |
| 9 |
| 10 'conditions': [ |
| 11 [ 'OS=="linux" or OS=="freebsd" or OS=="openbsd"', { |
| 12 'conditions': [ |
| 13 ['sysroot!=""', { |
| 14 'variables': { |
| 15 'pkg-config': './pkg-config-wrapper "<(sysroot)"', |
| 16 }, |
| 17 }, { |
| 18 'variables': { |
| 19 'pkg-config': 'pkg-config' |
| 20 }, |
| 21 }],] |
| 22 }], |
| 23 ], |
| 24 |
9 'target_defaults': { | 25 'target_defaults': { |
10 'sources/': [ | 26 'sources/': [ |
11 ['exclude', '/(cocoa|gtk|win)/'], | 27 ['exclude', '/(cocoa|gtk|win)/'], |
12 ['exclude', '_(cocoa|gtk|linux|mac|posix|skia|win|x)\\.(cc|mm?)$'], | 28 ['exclude', '_(cocoa|gtk|linux|mac|posix|skia|win|x)\\.(cc|mm?)$'], |
13 ['exclude', '/(gtk|win|x11)_[^/]*\\.cc$'], | 29 ['exclude', '/(gtk|win|x11)_[^/]*\\.cc$'], |
14 ], | 30 ], |
15 'conditions': [ | 31 'conditions': [ |
16 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {'sources/': [ | 32 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {'sources/': [ |
17 ['include', '/gtk/'], | 33 ['include', '/gtk/'], |
18 ['include', '_(gtk|linux|posix|skia|x)\\.cc$'], | 34 ['include', '_(gtk|linux|posix|skia|x)\\.cc$'], |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 'painter.cc', | 290 'painter.cc', |
275 'painter.h', | 291 'painter.h', |
276 'repeat_controller.cc', | 292 'repeat_controller.cc', |
277 'repeat_controller.h', | 293 'repeat_controller.h', |
278 'screen.h', | 294 'screen.h', |
279 'screen_gtk.cc', | 295 'screen_gtk.cc', |
280 'screen_win.cc', | 296 'screen_win.cc', |
281 'standard_layout.h', | 297 'standard_layout.h', |
282 'touchui/gesture_manager.cc', | 298 'touchui/gesture_manager.cc', |
283 'touchui/gesture_manager.h', | 299 'touchui/gesture_manager.h', |
| 300 'touchui/touch_factory.cc', |
| 301 'touchui/touch_factory.h', |
284 'view.cc', | 302 'view.cc', |
285 'view.h', | 303 'view.h', |
286 'view_constants.cc', | 304 'view_constants.cc', |
287 'view_constants.h', | 305 'view_constants.h', |
288 'view_gtk.cc', | 306 'view_gtk.cc', |
289 'view_text_utils.cc', | 307 'view_text_utils.cc', |
290 'view_text_utils.h', | 308 'view_text_utils.h', |
291 'view_win.cc', | 309 'view_win.cc', |
292 'views_delegate.h', | 310 'views_delegate.h', |
293 'widget/aero_tooltip_manager.cc', | 311 'widget/aero_tooltip_manager.cc', |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 'window/native_frame_view.cc', | 403 'window/native_frame_view.cc', |
386 'widget/widget_win.cc', | 404 'widget/widget_win.cc', |
387 ], | 405 ], |
388 }], | 406 }], |
389 ['touchui==1', { | 407 ['touchui==1', { |
390 'defines': ['TOUCH_UI=1'], | 408 'defines': ['TOUCH_UI=1'], |
391 'sources/': [ | 409 'sources/': [ |
392 ['exclude', 'focus/accelerator_handler_gtk.cc'], | 410 ['exclude', 'focus/accelerator_handler_gtk.cc'], |
393 ['exclude', 'controls/menu/native_menu_gtk.cc'], | 411 ['exclude', 'controls/menu/native_menu_gtk.cc'], |
394 ], | 412 ], |
| 413 'conditions': [ |
| 414 ['"<!@(<(pkg-config) --atleast-version=2.0 inputproto || echo $?)"!=
""', { |
| 415 # Exclude TouchFactory if XInput2 is not available. |
| 416 'sources/': [ |
| 417 ['exclude', 'touchui/touch_factory.cc'], |
| 418 ['exclude', 'touchui/touch_factory.h'], |
| 419 ], |
| 420 }], |
| 421 ], |
395 }], | 422 }], |
396 ['OS=="win"', { | 423 ['OS=="win"', { |
397 'sources!': [ | 424 'sources!': [ |
398 'controls/slider/slider.cc', | 425 'controls/slider/slider.cc', |
399 'controls/slider/slider.h', | 426 'controls/slider/slider.h', |
400 'controls/slider/native_slider_wrapper.h', | 427 'controls/slider/native_slider_wrapper.h', |
401 ], | 428 ], |
402 'include_dirs': [ | 429 'include_dirs': [ |
403 '<(DEPTH)/third_party/wtl/include', | 430 '<(DEPTH)/third_party/wtl/include', |
404 ], | 431 ], |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
541 ], | 568 ], |
542 }, | 569 }, |
543 ], | 570 ], |
544 } | 571 } |
545 | 572 |
546 # Local Variables: | 573 # Local Variables: |
547 # tab-width:2 | 574 # tab-width:2 |
548 # indent-tabs-mode:nil | 575 # indent-tabs-mode:nil |
549 # End: | 576 # End: |
550 # vim: set expandtab tabstop=2 shiftwidth=2: | 577 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |