- add sources.
[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   },
9   'targets': [
10     {
11       'target_name': 'keyboard_resources',
12       'type': 'none',
13       'variables': {
14         'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/ui/keyboard',
15       },
16       'actions': [
17         {
18           'action_name': 'keyboard_resources',
19           'variables': {
20             'grit_grd_file': 'keyboard_resources.grd',
21           },
22           'includes': [ '../../build/grit_action.gypi' ],
23         },
24       ],
25       'includes': [ '../../build/grit_target.gypi' ],
26       'copies': [
27         {
28           'destination': '<(PRODUCT_DIR)',
29           'files': [
30             '<(SHARED_INTERMEDIATE_DIR)/ui/keyboard/keyboard_resources.pak',
31           ],
32         },
33       ],
34     },
35     {
36       'target_name': 'keyboard',
37       'type': '<(component)',
38       'dependencies': [
39         '../../base/base.gyp:base',
40         '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
41         '../../content/content.gyp:content_browser',
42         '../../ipc/ipc.gyp:ipc',
43         '../../skia/skia.gyp:skia',
44         '../../url/url.gyp:url_lib',
45         '../aura/aura.gyp:aura',
46         '../compositor/compositor.gyp:compositor',
47         '../events/events.gyp:events',
48         '../gfx/gfx.gyp:gfx',
49         '../ui.gyp:ui',
50         'keyboard_resources',
51       ],
52       'defines': [
53         'KEYBOARD_IMPLEMENTATION',
54       ],
55       'sources': [
56         'keyboard.cc',
57         'keyboard.h',
58         'keyboard_constants.cc',
59         'keyboard_constants.h',
60         'keyboard_controller.cc',
61         'keyboard_controller.h',
62         'keyboard_controller_observer.h',
63         'keyboard_controller_proxy.cc',
64         'keyboard_controller_proxy.h',
65         'keyboard_export.h',
66         'keyboard_switches.cc',
67         'keyboard_switches.h',
68         'keyboard_ui_controller.cc',
69         'keyboard_ui_controller.h',
70         'keyboard_ui_handler.cc',
71         'keyboard_ui_handler.h',
72         'keyboard_util.cc',
73         'keyboard_util.h',
74       ]
75     },
76     {
77       'target_name': 'keyboard_unittests',
78       'type': '<(gtest_target_type)',
79       'dependencies': [
80         '../../base/base.gyp:base',
81         '../../base/base.gyp:test_support_base',
82         '../../content/content.gyp:content',
83         '../../skia/skia.gyp:skia',
84         '../../testing/gtest.gyp:gtest',
85         '../aura/aura.gyp:aura',
86         '../aura/aura.gyp:aura_test_support',
87         '../compositor/compositor.gyp:compositor',
88         '../gfx/gfx.gyp:gfx',
89         '../ui.gyp:ui',
90         '../ui_unittests.gyp:run_ui_unittests',
91         'keyboard',
92       ],
93       'sources': [
94         'keyboard_controller_unittest.cc',
95         'keyboard_test_suite.cc',
96       ],
97       'conditions': [
98         ['OS=="linux" and linux_use_tcmalloc==1', {
99           'dependencies': [
100             '<(DEPTH)/base/allocator/allocator.gyp:allocator',
101           ],
102           'link_settings': {
103             'ldflags': ['-rdynamic'],
104           },
105         }],
106       ],
107     },
108   ],
109 }