Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(389)

Side by Side Diff: ui/views/views.gyp

Issue 6688007: Normalize the top-level ui/ module. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: chmod gfx_unittests Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 # Copyright (c) 2010 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': 'v2',
46 'type': '<(library)',
47 'msvs_guid': '70760ECA-4D8B-47A4-ACDC-D3E7F25F0543',
48 'dependencies': [
49 '<(DEPTH)/app/app.gyp:app_base',
50 '<(DEPTH)/skia/skia.gyp:skia',
51 '<(DEPTH)/ui/base/strings/ui_strings.gyp:ui_strings',
52 '<(DEPTH)/ui/gfx/gfx.gyp:gfx',
53 ],
54 'sources': [
55 'events/accelerator.cc',
56 'events/accelerator.h',
57 'events/context_menu_controller.h',
58 'events/drag_controller.h',
59 'events/event.cc',
60 'events/event.h',
61 'events/event_win.cc',
62 'events/focus_event.cc',
63 'events/focus_event.h',
64 'focus/accelerator_handler.h',
65 'focus/accelerator_handler_win.cc',
66 'focus/focus_manager.cc',
67 'focus/focus_manager.h',
68 'focus/focus_search.cc',
69 'focus/focus_search.h',
70 'layout/fill_layout.cc',
71 'layout/fill_layout.h',
72 'layout/layout_manager.cc',
73 'layout/layout_manager.h',
74 'native_types.h',
75 'rendering/border.cc',
76 'rendering/border.h',
77 'view.cc',
78 'view.h',
79 'widget/native_widget.h',
80 'widget/native_widget_listener.h',
81 'widget/native_widget_views.cc',
82 'widget/native_widget_views.h',
83 'widget/native_widget_win.cc',
84 'widget/native_widget_win.h',
85 'widget/root_view.cc',
86 'widget/root_view.h',
87 'widget/widget.cc',
88 'widget/widget.h',
89 'window/window.cc',
90 'window/window.h',
91 'window/native_window.h',
92 'window/native_window_views.cc',
93 'window/native_window_views.h',
94 'window/native_window_win.cc',
95 'window/native_window_win.h',
96 ],
97 'include_dirs': [
98 '<(DEPTH)',
99 ],
100 'conditions': [
101 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
102 'dependencies': [
103 '<(DEPTH)/build/linux/system.gyp:gtk',
104 '<(DEPTH)/build/linux/system.gyp:x11',
105 '<(DEPTH)/build/linux/system.gyp:xext',
106 ],
107 'sources!': [
108 ],
109 }],
110 ['OS=="win"', {
111 'include_dirs': [
112 '<(DEPTH)/third_party/wtl/include',
113 ],
114 }],
115 ],
116 },
117 {
118 'target_name': 'views_unittests',
119 'type': 'executable',
120 'dependencies': [
121 '<(DEPTH)/base/base.gyp:base',
122 '<(DEPTH)/base/base.gyp:test_support_base',
123 '<(DEPTH)/skia/skia.gyp:skia',
124 '<(DEPTH)/testing/gmock.gyp:gmock',
125 '<(DEPTH)/testing/gtest.gyp:gtest',
126 '<(DEPTH)/third_party/icu/icu.gyp:icui18n',
127 '<(DEPTH)/third_party/icu/icu.gyp:icuuc',
128 'v2',
129 ],
130 'sources': [
131 'rendering/border_unittest.cc',
132 'run_all_unittests.cc',
133 'view_unittest.cc',
134 'widget/native_widget_win_unittest.cc',
135 'widget/root_view_unittest.cc',
136 'widget/widget_test_util.cc',
137 'widget/widget_test_util.h',
138 'widget/widget_unittest.cc',
139 ],
140 'include_dirs': [
141 '<(DEPTH)',
142 ],
143 'conditions': [
144 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
145 'dependencies': [
146 '<(DEPTH)/build/linux/system.gyp:gtk',
147 '<(DEPTH)/chrome/chrome.gyp:packed_resources',
148 ],
149 'conditions': [
150 ['linux_use_tcmalloc==1', {
151 'dependencies': [
152 '<(DEPTH)/base/allocator/allocator.gyp:allocator',
153 ],
154 }],
155 ],
156 },
157 ],
158 ['OS=="win"', {
159 'sources': [
160 'widget/widget.rc',
161 'widget/widget_resource.h',
162 ],
163 'link_settings': {
164 'libraries': [
165 '-limm32.lib',
166 '-loleacc.lib',
167 ]
168 },
169 }],
170 ],
171 },
172 {
173 'target_name': 'views_demo',
174 'type': 'executable',
175 'dependencies': [
176 '<(DEPTH)/skia/skia.gyp:skia',
177 'v2',
178 ],
179 'sources': [
180 'demo/main.cc',
181 ],
182 'include_dirs': [
183 '<(DEPTH)',
184 ],
185 'conditions': [
186 ['OS=="win"', {
187 'sources': [
188 'widget/widget.rc',
189 'widget/widget_resource.h',
190 ],
191 }],
192 ],
193 },
194 ],
195 }
196
197 # Local Variables:
198 # tab-width:2
199 # indent-tabs-mode:nil
200 # End:
201 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« ui/ui_gfx.gypi ('K') | « ui/ui_views.gypi ('k') | webkit/support/webkit_support.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698