Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / ui / keyboard / keyboard.gyp
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
3 # found in the LICENSE file.
4
5 {
6   'variables': {
7     'chromium_code': 1,
8     'keyboard_mojom_gen_js': '<(SHARED_INTERMEDIATE_DIR)/ui/keyboard/webui/keyboard.mojom.js',
9   },
10   'targets': [
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.gypi' ],
18     },
19     {
20       # GN version: //ui/keyboard:resources
21       'target_name': 'keyboard_resources',
22       'dependencies': [
23         'keyboard_mojom_bindings',
24         '../../third_party/google_input_tools/inputview.gyp:inputview',
25        ],
26       'type': 'none',
27       'variables': {
28         'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/ui/keyboard',
29       },
30       'actions': [
31         {
32           'action_name': 'keyboard_resources',
33           'variables': {
34             'grit_grd_file': 'keyboard_resources.grd',
35             'grit_additional_defines': [
36               '-E', 'keyboard_mojom_gen_js=<(keyboard_mojom_gen_js)',
37             ],
38           },
39           'includes': [ '../../build/grit_action.gypi' ],
40         },
41       ],
42       'includes': [ '../../build/grit_target.gypi' ],
43       'copies': [
44         {
45           'destination': '<(PRODUCT_DIR)',
46           'files': [
47             '<(SHARED_INTERMEDIATE_DIR)/ui/keyboard/keyboard_resources.pak',
48           ],
49         },
50       ],
51     },
52     {
53       # GN version: //ui/keyboard
54       'target_name': 'keyboard',
55       'type': '<(component)',
56       'dependencies': [
57         '../../base/base.gyp:base',
58         '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
59         '../../content/content.gyp:content_browser',
60         '../../ipc/ipc.gyp:ipc',
61         '../../mojo/edk/mojo_edk.gyp:mojo_system_impl',
62         '../../mojo/mojo_base.gyp:mojo_environment_chromium',
63         '../../mojo/public/mojo_public.gyp:mojo_cpp_bindings',
64         '../../mojo/public/mojo_public.gyp:mojo_js_bindings',
65         '../../skia/skia.gyp:skia',
66         '../../url/url.gyp:url_lib',
67         '../aura/aura.gyp:aura',
68         '../base/ui_base.gyp:ui_base',
69         '../compositor/compositor.gyp:compositor',
70         '../events/events.gyp:events',
71         '../gfx/gfx.gyp:gfx',
72         '../gfx/gfx.gyp:gfx_geometry',
73         '../wm/wm.gyp:wm',
74         'keyboard_mojom_bindings',
75         'keyboard_resources',
76       ],
77       'defines': [
78         'KEYBOARD_IMPLEMENTATION',
79       ],
80       'sources': [
81         'keyboard.cc',
82         'keyboard.h',
83         'keyboard_constants.cc',
84         'keyboard_constants.h',
85         'keyboard_controller.cc',
86         'keyboard_controller.h',
87         'keyboard_controller_observer.h',
88         'keyboard_controller_proxy.cc',
89         'keyboard_controller_proxy.h',
90         'keyboard_layout_manager.h',
91         'keyboard_layout_manager.cc',
92         'keyboard_export.h',
93         'keyboard_switches.cc',
94         'keyboard_switches.h',
95         'keyboard_util.cc',
96         'keyboard_util.h',
97         'webui/vk_mojo_handler.cc',
98         'webui/vk_mojo_handler.h',
99         'webui/vk_webui_controller.cc',
100         'webui/vk_webui_controller.h',
101         '<(SHARED_INTERMEDIATE_DIR)/ui/keyboard/webui/keyboard.mojom.cc',
102       ]
103     },
104     {
105       'target_name': 'keyboard_unittests',
106       'type': '<(gtest_target_type)',
107       'dependencies': [
108         '../../base/base.gyp:base',
109         '../../base/base.gyp:test_support_base',
110         '../../content/content.gyp:content',
111         '../../skia/skia.gyp:skia',
112         '../../testing/gtest.gyp:gtest',
113         '../../url/url.gyp:url_lib',
114         '../aura/aura.gyp:aura',
115         '../aura/aura.gyp:aura_test_support',
116         '../base/ui_base.gyp:ui_base',
117         '../compositor/compositor.gyp:compositor',
118         '../compositor/compositor.gyp:compositor_test_support',
119         '../gfx/gfx.gyp:gfx',
120         '../gfx/gfx.gyp:gfx_geometry',
121         '../resources/ui_resources.gyp:ui_test_pak',
122         '../wm/wm.gyp:wm',
123         'keyboard',
124       ],
125       'sources': [
126         'test/run_all_unittests.cc',
127         'keyboard_controller_unittest.cc',
128       ],
129       'conditions': [
130         ['OS=="linux" and use_allocator!="none"', {
131           'dependencies': [
132             '<(DEPTH)/base/allocator/allocator.gyp:allocator',
133           ],
134           'link_settings': {
135             'ldflags': ['-rdynamic'],
136           },
137         }],
138         ['OS=="win" and win_use_allocator_shim==1', {
139           'dependencies': [
140             '<(DEPTH)/base/allocator/allocator.gyp:allocator',
141           ],
142         }],
143       ],
144     },
145   ],
146 }