OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 'keyboard_mojom_gen_js': '<(SHARED_INTERMEDIATE_DIR)/ui/keyboard/webui/keybo
ard.mojom.js', |
8 }, | 9 }, |
9 'targets': [ | 10 'targets': [ |
10 { | 11 { |
| 12 'target_name': 'keyboard_mojom_bindings', |
| 13 'type': 'none', |
| 14 'sources': [ |
| 15 'webui/keyboard.mojom', |
| 16 ], |
| 17 'includes': [ '../../mojo/public/tools/bindings/mojom_bindings_generator.g
ypi' ], |
| 18 }, |
| 19 { |
11 'target_name': 'keyboard_resources', | 20 'target_name': 'keyboard_resources', |
| 21 'dependencies': [ 'keyboard_mojom_bindings', ], |
12 'type': 'none', | 22 'type': 'none', |
13 'variables': { | 23 'variables': { |
14 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/ui/keyboard', | 24 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/ui/keyboard', |
15 }, | 25 }, |
16 'actions': [ | 26 'actions': [ |
17 { | 27 { |
18 'action_name': 'keyboard_resources', | 28 'action_name': 'keyboard_resources', |
19 'variables': { | 29 'variables': { |
20 'grit_grd_file': 'keyboard_resources.grd', | 30 'grit_grd_file': 'keyboard_resources.grd', |
| 31 'grit_additional_defines': [ |
| 32 '-E', 'keyboard_mojom_gen_js=<(keyboard_mojom_gen_js)', |
| 33 ], |
21 }, | 34 }, |
22 'includes': [ '../../build/grit_action.gypi' ], | 35 'includes': [ '../../build/grit_action.gypi' ], |
23 }, | 36 }, |
24 ], | 37 ], |
25 'includes': [ '../../build/grit_target.gypi' ], | 38 'includes': [ '../../build/grit_target.gypi' ], |
26 'copies': [ | 39 'copies': [ |
27 { | 40 { |
28 'destination': '<(PRODUCT_DIR)', | 41 'destination': '<(PRODUCT_DIR)', |
29 'files': [ | 42 'files': [ |
30 '<(SHARED_INTERMEDIATE_DIR)/ui/keyboard/keyboard_resources.pak', | 43 '<(SHARED_INTERMEDIATE_DIR)/ui/keyboard/keyboard_resources.pak', |
31 ], | 44 ], |
32 }, | 45 }, |
33 ], | 46 ], |
34 }, | 47 }, |
35 { | 48 { |
36 'target_name': 'keyboard', | 49 'target_name': 'keyboard', |
37 'type': '<(component)', | 50 'type': '<(component)', |
38 'dependencies': [ | 51 'dependencies': [ |
39 '../../base/base.gyp:base', | 52 '../../base/base.gyp:base', |
40 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyna
mic_annotations', | 53 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyna
mic_annotations', |
41 '../../content/content.gyp:content_browser', | 54 '../../content/content.gyp:content_browser', |
| 55 '../../content/content_resources.gyp:content_resources', |
42 '../../ipc/ipc.gyp:ipc', | 56 '../../ipc/ipc.gyp:ipc', |
| 57 '../../mojo/mojo.gyp:mojo_cpp_bindings', |
| 58 '../../mojo/mojo.gyp:mojo_environment_chromium', |
| 59 '../../mojo/mojo.gyp:mojo_js_bindings', |
| 60 '../../mojo/mojo.gyp:mojo_system_impl', |
43 '../../skia/skia.gyp:skia', | 61 '../../skia/skia.gyp:skia', |
44 '../../url/url.gyp:url_lib', | 62 '../../url/url.gyp:url_lib', |
45 '../aura/aura.gyp:aura', | 63 '../aura/aura.gyp:aura', |
46 '../base/ui_base.gyp:ui_base', | 64 '../base/ui_base.gyp:ui_base', |
47 '../compositor/compositor.gyp:compositor', | 65 '../compositor/compositor.gyp:compositor', |
48 '../events/events.gyp:events', | 66 '../events/events.gyp:events', |
49 '../gfx/gfx.gyp:gfx', | 67 '../gfx/gfx.gyp:gfx', |
50 '../gfx/gfx.gyp:gfx_geometry', | 68 '../gfx/gfx.gyp:gfx_geometry', |
51 '../wm/wm.gyp:wm', | 69 '../wm/wm.gyp:wm', |
| 70 'keyboard_mojom_bindings', |
52 'keyboard_resources', | 71 'keyboard_resources', |
53 ], | 72 ], |
54 'defines': [ | 73 'defines': [ |
55 'KEYBOARD_IMPLEMENTATION', | 74 'KEYBOARD_IMPLEMENTATION', |
56 ], | 75 ], |
57 'sources': [ | 76 'sources': [ |
58 'keyboard.cc', | 77 'keyboard.cc', |
59 'keyboard.h', | 78 'keyboard.h', |
60 'keyboard_constants.cc', | 79 'keyboard_constants.cc', |
61 'keyboard_constants.h', | 80 'keyboard_constants.h', |
62 'keyboard_controller.cc', | 81 'keyboard_controller.cc', |
63 'keyboard_controller.h', | 82 'keyboard_controller.h', |
64 'keyboard_controller_observer.h', | 83 'keyboard_controller_observer.h', |
65 'keyboard_controller_proxy.cc', | 84 'keyboard_controller_proxy.cc', |
66 'keyboard_controller_proxy.h', | 85 'keyboard_controller_proxy.h', |
67 'keyboard_layout_manager.h', | 86 'keyboard_layout_manager.h', |
68 'keyboard_layout_manager.cc', | 87 'keyboard_layout_manager.cc', |
69 'keyboard_export.h', | 88 'keyboard_export.h', |
70 'keyboard_switches.cc', | 89 'keyboard_switches.cc', |
71 'keyboard_switches.h', | 90 'keyboard_switches.h', |
72 'keyboard_util.cc', | 91 'keyboard_util.cc', |
73 'keyboard_util.h', | 92 'keyboard_util.h', |
| 93 'webui/vk_mojo_handler.cc', |
| 94 'webui/vk_mojo_handler.h', |
| 95 'webui/vk_webui_controller.cc', |
| 96 'webui/vk_webui_controller.h', |
| 97 '<(SHARED_INTERMEDIATE_DIR)/ui/keyboard/webui/keyboard.mojom.cc', |
74 ] | 98 ] |
75 }, | 99 }, |
76 { | 100 { |
77 'target_name': 'keyboard_unittests', | 101 'target_name': 'keyboard_unittests', |
78 'type': '<(gtest_target_type)', | 102 'type': '<(gtest_target_type)', |
79 'dependencies': [ | 103 'dependencies': [ |
80 '../../base/base.gyp:base', | 104 '../../base/base.gyp:base', |
81 '../../base/base.gyp:test_support_base', | 105 '../../base/base.gyp:test_support_base', |
82 '../../content/content.gyp:content', | 106 '../../content/content.gyp:content', |
83 '../../skia/skia.gyp:skia', | 107 '../../skia/skia.gyp:skia', |
(...skipping 25 matching lines...) Expand all Loading... |
109 }], | 133 }], |
110 ['OS=="win" and win_use_allocator_shim==1', { | 134 ['OS=="win" and win_use_allocator_shim==1', { |
111 'dependencies': [ | 135 'dependencies': [ |
112 '<(DEPTH)/base/allocator/allocator.gyp:allocator', | 136 '<(DEPTH)/base/allocator/allocator.gyp:allocator', |
113 ], | 137 ], |
114 }], | 138 }], |
115 ], | 139 ], |
116 }, | 140 }, |
117 ], | 141 ], |
118 } | 142 } |
OLD | NEW |