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 '../ui/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 # Export these dependencies since text_elider.h includes ICU headers. | |
55 'export_dependent_settings': [ | |
56 '../third_party/icu/icu.gyp:icui18n', | |
57 '../third_party/icu/icu.gyp:icuuc', | |
58 ], | |
59 'sources': [ | |
60 'accessibility/accessibility_types.h', | |
61 'accessibility/accessible_view_state.h', | |
62 'accessibility/accessible_view_state.cc', | |
63 'animation/animation.cc', | |
64 'animation/animation.h', | |
65 'animation/animation_container.cc', | |
66 'animation/animation_container.h', | |
67 'animation/animation_container_element.h', | |
68 'animation/animation_container_observer.h', | |
69 'animation/animation_delegate.h', | |
70 'animation/linear_animation.cc', | |
71 'animation/linear_animation.h', | |
72 'animation/multi_animation.cc', | |
73 'animation/multi_animation.h', | |
74 'animation/slide_animation.cc', | |
75 'animation/slide_animation.h', | |
76 'animation/throb_animation.cc', | |
77 'animation/throb_animation.h', | |
78 'animation/tween.cc', | |
79 'animation/tween.h', | |
80 'clipboard/clipboard.cc', | |
81 'clipboard/clipboard.h', | |
82 'clipboard/clipboard_linux.cc', | |
83 'clipboard/clipboard_mac.mm', | |
84 'clipboard/clipboard_util_win.cc', | |
85 'clipboard/clipboard_util_win.h', | |
86 'clipboard/clipboard_win.cc', | |
87 'clipboard/scoped_clipboard_writer.cc', | |
88 'clipboard/scoped_clipboard_writer.h', | |
89 'range/range.cc', | |
90 'range/range.h', | |
91 'range/range.mm', | |
92 ], | |
93 'conditions': [ | |
94 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { | |
95 'dependencies': [ | |
96 '../build/linux/system.gyp:gtk', | |
97 '../build/linux/system.gyp:x11', | |
98 '../build/linux/system.gyp:xext', | |
99 ], | |
100 }], | |
101 ], | |
102 }, | |
103 { | |
104 'target_name': 'ui_base_unittests', | |
105 'type': 'executable', | |
106 'dependencies': [ | |
107 '../base/base.gyp:base', | |
108 '../base/base.gyp:test_support_base', | |
109 '../testing/gmock.gyp:gmock', | |
110 '../testing/gtest.gyp:gtest', | |
111 'ui_base', | |
112 ], | |
113 'sources': [ | |
114 'animation/animation_container_unittest.cc', | |
115 'animation/animation_unittest.cc', | |
116 'animation/multi_animation_unittest.cc', | |
117 'animation/slide_animation_unittest.cc', | |
118 'clipboard/clipboard_unittest.cc', | |
119 'range/range_unittest.cc', | |
120 'range/range_unittest.mm', | |
121 'run_all_unittests.cc', | |
122 'test_suite.h', | |
123 ], | |
124 }, | |
125 ], | |
126 } | |
127 | |
128 # Local Variables: | |
129 # tab-width:2 | |
130 # indent-tabs-mode:nil | |
131 # End: | |
132 # vim: set expandtab tabstop=2 shiftwidth=2: | |
OLD | NEW |