Home | History | Annotate | Download | only in ozone
      1 # Copyright 2014 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     'target_name': 'events_ozone',
     11     'type': '<(component)',
     12     'dependencies': [
     13       '../../../base/base.gyp:base',
     14     ],
     15     'defines': [
     16       'EVENTS_OZONE_IMPLEMENTATION',
     17     ],
     18     'sources': [
     19       'device/device_event.cc',
     20       'device/device_event.h',
     21       'device/device_event_observer.h',
     22       'device/device_manager.cc',
     23       'device/device_manager.h',
     24       'device/device_manager_manual.cc',
     25       'device/device_manager_manual.h',
     26       'device/udev/device_manager_udev.cc',
     27       'device/udev/device_manager_udev.h',
     28       'events_ozone_export.h',
     29     ],
     30     'conditions': [
     31       ['use_udev==0', {
     32         'sources/': [
     33           ['exclude', '_udev\\.(h|cc)$'],
     34         ],
     35       }],
     36       ['use_ozone_evdev==1 and use_udev==1', {
     37         'dependencies': [
     38           '<(DEPTH)/device/udev_linux/udev.gyp:udev_linux',
     39         ],
     40       }],
     41     ],
     42   }, {
     43     'target_name': 'events_ozone_evdev',
     44     'type': '<(component)',
     45     'dependencies': [
     46       '../../../base/base.gyp:base',
     47       '../../gfx/gfx.gyp:gfx',
     48       '../../ozone/ozone.gyp:ozone_base',
     49       '../platform/events_platform.gyp:events_platform',
     50       'events_ozone',
     51     ],
     52     'defines': [
     53       'EVENTS_OZONE_EVDEV_IMPLEMENTATION',
     54     ],
     55     'sources': [
     56       'evdev/libgestures_glue/event_reader_libevdev_cros.cc',
     57       'evdev/libgestures_glue/event_reader_libevdev_cros.h',
     58       'evdev/libgestures_glue/gesture_interpreter_libevdev_cros.cc',
     59       'evdev/libgestures_glue/gesture_interpreter_libevdev_cros.h',
     60       'evdev/libgestures_glue/gesture_logging.cc',
     61       'evdev/libgestures_glue/gesture_logging.h',
     62       'evdev/libgestures_glue/gesture_timer_provider.cc',
     63       'evdev/libgestures_glue/gesture_timer_provider.h',
     64       'evdev/event_converter_evdev.cc',
     65       'evdev/event_converter_evdev.h',
     66       'evdev/event_device_info.cc',
     67       'evdev/event_device_info.h',
     68       'evdev/event_factory_evdev.cc',
     69       'evdev/event_factory_evdev.h',
     70       'evdev/event_modifiers_evdev.cc',
     71       'evdev/event_modifiers_evdev.h',
     72       'evdev/events_ozone_evdev_export.h',
     73       'evdev/key_event_converter_evdev.cc',
     74       'evdev/key_event_converter_evdev.h',
     75       'evdev/touch_event_converter_evdev.cc',
     76       'evdev/touch_event_converter_evdev.h',
     77     ],
     78     'conditions': [
     79       ['use_ozone_evdev==1 and use_evdev_gestures==1', {
     80         'dependencies': [
     81           '<(DEPTH)/build/linux/system.gyp:libgestures',
     82           '<(DEPTH)/build/linux/system.gyp:libevdev-cros',
     83         ],
     84         'defines': [
     85           'USE_EVDEV_GESTURES',
     86         ],
     87       }, {
     88         'sources/': [
     89           ['exclude', '^evdev/libgestures_glue/'],
     90         ],
     91       }],
     92       ['use_ozone_evdev==1', {
     93         'defines': ['USE_OZONE_EVDEV=1'],
     94       }],
     95     ],
     96   }]
     97 }
     98