OLD | NEW |
| (Empty) |
1 # Copyright (c) 2012 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 'targets': [ | |
10 { | |
11 # GN version: //ui/app_list/presenter | |
12 'target_name': 'app_list_presenter', | |
13 'type': '<(component)', | |
14 'dependencies': [ | |
15 '../../../base/base.gyp:base', | |
16 '../../../skia/skia.gyp:skia', | |
17 '../../aura/aura.gyp:aura', | |
18 '../../compositor/compositor.gyp:compositor', | |
19 '../../events/events.gyp:events_base', | |
20 '../../events/events.gyp:events', | |
21 '../../gfx/gfx.gyp:gfx_geometry', | |
22 '../../views/views.gyp:views', | |
23 '../app_list.gyp:app_list', | |
24 | |
25 # Temporary dependency to fix compile flake in http://crbug.com/611898. | |
26 # TODO(tapted): Remove once http://crbug.com/612382 is fixed. | |
27 '../../accessibility/accessibility.gyp:ax_gen', | |
28 ], | |
29 'defines': [ | |
30 'APP_LIST_PRESENTER_IMPLEMENTATION', | |
31 ], | |
32 'sources': [ | |
33 # Note: sources list duplicated in GN build. | |
34 'app_list_presenter.h', | |
35 'app_list_presenter_delegate.cc', | |
36 'app_list_presenter_delegate.h', | |
37 'app_list_presenter_delegate_factory.h', | |
38 'app_list_presenter_export.h', | |
39 'app_list_presenter_impl.cc', | |
40 'app_list_presenter_impl.h', | |
41 'app_list_view_delegate_factory.cc', | |
42 'app_list_view_delegate_factory.h', | |
43 ], | |
44 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | |
45 'msvs_disabled_warnings': [ 4267, ], | |
46 }, | |
47 { | |
48 # GN version: //ui/app_list/presenter:test_support | |
49 'target_name': 'app_list_presenter_test_support', | |
50 'type': 'static_library', | |
51 'dependencies': [ | |
52 '../../../base/base.gyp:base', | |
53 '../../../skia/skia.gyp:skia', | |
54 'app_list_presenter', | |
55 | |
56 # Temporary dependency to fix compile flake in http://crbug.com/611898. | |
57 # TODO(tapted): Remove once http://crbug.com/612382 is fixed. | |
58 '../../accessibility/accessibility.gyp:ax_gen', | |
59 ], | |
60 'sources': [ | |
61 # Note: sources list duplicated in GN build. | |
62 'test/app_list_presenter_impl_test_api.cc', | |
63 'test/app_list_presenter_impl_test_api.h', | |
64 ], | |
65 }, | |
66 { | |
67 # GN version: //ui/app_list/presenter:app_list_presenter_unittests | |
68 'target_name': 'app_list_presenter_unittests', | |
69 'type': 'executable', | |
70 'dependencies': [ | |
71 '../../../base/base.gyp:base', | |
72 '../../../base/base.gyp:test_support_base', | |
73 '../../../skia/skia.gyp:skia', | |
74 '../../../testing/gtest.gyp:gtest', | |
75 '../../aura/aura.gyp:aura_test_support', | |
76 '../../resources/ui_resources.gyp:ui_test_pak', | |
77 '../../views/views.gyp:views', | |
78 '../../wm/wm.gyp:wm', | |
79 '../app_list.gyp:app_list_test_support', | |
80 'app_list_presenter', | |
81 'app_list_presenter_test_support', | |
82 | |
83 # Temporary dependency to fix compile flake in http://crbug.com/611898. | |
84 # TODO(tapted): Remove once http://crbug.com/612382 is fixed. | |
85 '../../accessibility/accessibility.gyp:ax_gen', | |
86 ], | |
87 'sources': [ | |
88 # Note: sources list duplicated in GN build. | |
89 'app_list_presenter_impl_unittest.cc', | |
90 'test/run_all_unittests.cc', | |
91 ], | |
92 # Disable c4267 warnings until we fix size_t to int truncations. | |
93 'msvs_disabled_warnings': [ 4267, ], | |
94 }, | |
95 ], | |
96 'conditions': [ | |
97 ['test_isolation_mode != "noop"', { | |
98 'targets': [ | |
99 { | |
100 'target_name': 'app_list_presenter_unittests_run', | |
101 'type': 'none', | |
102 'dependencies': [ | |
103 'app_list_presenter_unittests', | |
104 ], | |
105 'includes': [ | |
106 '../../../build/isolate.gypi', | |
107 ], | |
108 'sources': [ | |
109 'app_list_presenter_unittests.isolate', | |
110 ], | |
111 'conditions': [ | |
112 ['use_x11 == 1', { | |
113 'dependencies': [ | |
114 '../../../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', | |
115 ], | |
116 }], | |
117 ], | |
118 }, | |
119 ], | |
120 }], | |
121 ], | |
122 } | |
OLD | NEW |