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 '../ui.gyp:ui', 48 'keyboard_resources', 49 ], 50 'defines': [ 51 'KEYBOARD_IMPLEMENTATION', 52 ], 53 'sources': [ 54 'keyboard.cc', 55 'keyboard.h', 56 'keyboard_constants.cc', 57 'keyboard_constants.h', 58 'keyboard_controller.cc', 59 'keyboard_controller.h', 60 'keyboard_controller_observer.h', 61 'keyboard_controller_proxy.cc', 62 'keyboard_controller_proxy.h', 63 'keyboard_export.h', 64 'keyboard_switches.cc', 65 'keyboard_switches.h', 66 'keyboard_ui_controller.cc', 67 'keyboard_ui_controller.h', 68 'keyboard_ui_handler.cc', 69 'keyboard_ui_handler.h', 70 'keyboard_util.cc', 71 'keyboard_util.h', 72 ] 73 }, 74 { 75 'target_name': 'keyboard_unittests', 76 'type': '<(gtest_target_type)', 77 'dependencies': [ 78 '../../base/base.gyp:base', 79 '../../base/base.gyp:test_support_base', 80 '../../content/content.gyp:content', 81 '../../skia/skia.gyp:skia', 82 '../../testing/gtest.gyp:gtest', 83 '../aura/aura.gyp:aura', 84 '../aura/aura.gyp:aura_test_support', 85 '../compositor/compositor.gyp:compositor', 86 '../ui.gyp:run_ui_unittests', 87 '../ui.gyp:ui', 88 'keyboard', 89 ], 90 'sources': [ 91 'keyboard_controller_unittest.cc', 92 'keyboard_test_suite.cc', 93 ], 94 'conditions': [ 95 [ 'os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', { 96 'conditions': [ 97 ['linux_use_tcmalloc==1', { 98 'dependencies': [ 99 '../../base/allocator/allocator.gyp:allocator', 100 ], 101 }], 102 ], 103 }], 104 ], 105 }, 106 ], 107 } 108