OLD | NEW |
(Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 |
| 5 { |
| 6 'variables': { |
| 7 'chromium_code': 1, |
| 8 }, |
| 9 'target_defaults': { |
| 10 'sources/': [ |
| 11 ['exclude', '/(cocoa|gtk|win)/'], |
| 12 ['exclude', '_(cocoa|gtk|linux|mac|posix|skia|win|x)\\.(cc|mm?)$'], |
| 13 ['exclude', '/(gtk|win|x11)_[^/]*\\.cc$'], |
| 14 ], |
| 15 'conditions': [ |
| 16 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {'sources/': [ |
| 17 ['include', '/gtk/'], |
| 18 ['include', '_(gtk|linux|posix|skia|x)\\.cc$'], |
| 19 ['include', '/(gtk|x11)_[^/]*\\.cc$'], |
| 20 ]}], |
| 21 ['OS=="mac"', {'sources/': [ |
| 22 ['include', '/cocoa/'], |
| 23 ['include', '_(cocoa|mac|posix)\\.(cc|mm?)$'], |
| 24 ]}, { # else: OS != "mac" |
| 25 'sources/': [ |
| 26 ['exclude', '\\.mm?$'], |
| 27 ], |
| 28 }], |
| 29 ['OS=="win"', {'sources/': [ |
| 30 ['include', '_(win)\\.cc$'], |
| 31 ['include', '/win/'], |
| 32 ['include', '/win_[^/]*\\.cc$'], |
| 33 ]}], |
| 34 ['touchui==0', {'sources/': [ |
| 35 ['exclude', 'event_x.cc$'], |
| 36 ['exclude', 'native_menu_x.cc$'], |
| 37 ['exclude', 'native_menu_x.h$'], |
| 38 ['exclude', 'touchui/'], |
| 39 ['exclude', '_(touch)\\.cc$'], |
| 40 ]}], |
| 41 ], |
| 42 }, |
| 43 'targets': [ |
| 44 { |
| 45 'target_name': 'ui_base', |
| 46 'type': '<(library)', |
| 47 'dependencies': [ |
| 48 '../base/base.gyp:base', |
| 49 '../gfx/gfx.gyp:gfx', |
| 50 '../skia/skia.gyp:skia', |
| 51 '../third_party/icu/icu.gyp:icui18n', |
| 52 '../third_party/icu/icu.gyp:icuuc', |
| 53 ], |
| 54 'sources': [ |
| 55 'animation/animation.cc', |
| 56 'animation/animation.h', |
| 57 'animation/animation_container.cc', |
| 58 'animation/animation_container.h', |
| 59 'animation/animation_container_element.h', |
| 60 'animation/animation_container_observer.h', |
| 61 'animation/animation_delegate.h', |
| 62 'animation/linear_animation.cc', |
| 63 'animation/linear_animation.h', |
| 64 'animation/multi_animation.cc', |
| 65 'animation/multi_animation.h', |
| 66 'animation/slide_animation.cc', |
| 67 'animation/slide_animation.h', |
| 68 'animation/throb_animation.cc', |
| 69 'animation/throb_animation.h', |
| 70 'animation/tween.cc', |
| 71 'animation/tween.h', |
| 72 ], |
| 73 }, |
| 74 { |
| 75 'target_name': 'ui_base_unittests', |
| 76 'type': 'executable', |
| 77 'dependencies': [ |
| 78 '../base/base.gyp:base', |
| 79 '../base/base.gyp:test_support_base', |
| 80 '../testing/gmock.gyp:gmock', |
| 81 '../testing/gtest.gyp:gtest', |
| 82 'ui_base', |
| 83 ], |
| 84 'sources': [ |
| 85 'animation/animation_container_unittest.cc', |
| 86 'animation/animation_unittest.cc', |
| 87 'animation/multi_animation_unittest.cc', |
| 88 'animation/slide_animation_unittest.cc', |
| 89 'run_all_unittests.cc', |
| 90 'test_suite.h', |
| 91 ], |
| 92 }, |
| 93 ], |
| 94 } |
| 95 |
| 96 # Local Variables: |
| 97 # tab-width:2 |
| 98 # indent-tabs-mode:nil |
| 99 # End: |
| 100 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |