Home | History | Annotate | Download | only in keyboard
      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         '../base/ui_base.gyp:ui_base',
     47         '../compositor/compositor.gyp:compositor',
     48         '../events/events.gyp:events',
     49         '../gfx/gfx.gyp:gfx',
     50         '../gfx/gfx.gyp:gfx_geometry',
     51         '../wm/wm.gyp:wm',
     52         'keyboard_resources',
     53       ],
     54       'defines': [
     55         'KEYBOARD_IMPLEMENTATION',
     56       ],
     57       'sources': [
     58         'keyboard.cc',
     59         'keyboard.h',
     60         'keyboard_constants.cc',
     61         'keyboard_constants.h',
     62         'keyboard_controller.cc',
     63         'keyboard_controller.h',
     64         'keyboard_controller_observer.h',
     65         'keyboard_controller_proxy.cc',
     66         'keyboard_controller_proxy.h',
     67         'keyboard_layout_manager.h',
     68         'keyboard_layout_manager.cc',
     69         'keyboard_export.h',
     70         'keyboard_switches.cc',
     71         'keyboard_switches.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         '../../url/url.gyp:url_lib',
     86         '../aura/aura.gyp:aura',
     87         '../aura/aura.gyp:aura_test_support',
     88         '../base/ui_base.gyp:ui_base',
     89         '../compositor/compositor.gyp:compositor',
     90         '../compositor/compositor.gyp:compositor_test_support',
     91         '../gfx/gfx.gyp:gfx',
     92         '../gfx/gfx.gyp:gfx_geometry',
     93         '../resources/ui_resources.gyp:ui_test_pak',
     94         '../wm/wm.gyp:wm',
     95         'keyboard',
     96       ],
     97       'sources': [
     98         'test/run_all_unittests.cc',
     99         'keyboard_controller_unittest.cc',
    100       ],
    101       'conditions': [
    102         ['OS=="linux" and use_allocator!="none"', {
    103           'dependencies': [
    104             '<(DEPTH)/base/allocator/allocator.gyp:allocator',
    105           ],
    106           'link_settings': {
    107             'ldflags': ['-rdynamic'],
    108           },
    109         }],
    110         ['OS=="win" and win_use_allocator_shim==1', {
    111           'dependencies': [
    112             '<(DEPTH)/base/allocator/allocator.gyp:allocator',
    113           ],
    114         }],
    115       ],
    116     },
    117   ],
    118 }
    119