OLD | NEW |
(Empty) | |
| 1 # Copyright 2016 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 # GN version: //device/gamepad |
| 12 'target_name': 'device_gamepad', |
| 13 'type': '<(component)', |
| 14 'dependencies': [ |
| 15 '../../base/base.gyp:base', |
| 16 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyna
mic_annotations', |
| 17 ], |
| 18 'defines': [ |
| 19 'DEVICE_GAMEPAD_IMPLEMENTATION', |
| 20 ], |
| 21 'sources': [ |
| 22 # Note: file list duplicated in GN build. |
| 23 'gamepad_consumer.h', |
| 24 'gamepad_data_fetcher.cc', |
| 25 'gamepad_data_fetcher.h', |
| 26 'gamepad_platform_data_fetcher.h', |
| 27 'gamepad_platform_data_fetcher_android.cc', |
| 28 'gamepad_platform_data_fetcher_android.h', |
| 29 'gamepad_platform_data_fetcher_linux.cc', |
| 30 'gamepad_platform_data_fetcher_linux.h', |
| 31 'gamepad_platform_data_fetcher_mac.h', |
| 32 'gamepad_platform_data_fetcher_mac.mm', |
| 33 'gamepad_platform_data_fetcher_win.cc', |
| 34 'gamepad_platform_data_fetcher_win.h', |
| 35 'gamepad_provider.cc', |
| 36 'gamepad_provider.h', |
| 37 'gamepad_standard_mappings.cc', |
| 38 'gamepad_standard_mappings.h', |
| 39 'gamepad_standard_mappings_linux.cc', |
| 40 'gamepad_standard_mappings_mac.mm', |
| 41 'gamepad_standard_mappings_win.cc', |
| 42 'gamepad_user_gesture.cc', |
| 43 'gamepad_user_gesture.h', |
| 44 'raw_input_data_fetcher_win.cc', |
| 45 'raw_input_data_fetcher_win.h', |
| 46 'xbox_data_fetcher_mac.cc', |
| 47 'xbox_data_fetcher_mac.h', |
| 48 ], |
| 49 'conditions': [ |
| 50 ['OS=="win"', { |
| 51 'msvs_disabled_warnings': [4267, ], |
| 52 }], |
| 53 ['OS!="win" and OS!="mac" and OS!="android" and (OS!="linux" or use_udev
==0)', { |
| 54 'sources': [ |
| 55 'gamepad_platform_data_fetcher.cc', |
| 56 ] |
| 57 }], |
| 58 ], |
| 59 }, |
| 60 { |
| 61 # GN version: //device/gamepad:test_helpers |
| 62 'target_name': 'device_gamepad_test_helpers', |
| 63 'type': 'static_library', |
| 64 'dependencies': [ |
| 65 '../../base/base.gyp:base', |
| 66 'device_gamepad', |
| 67 ], |
| 68 'sources': [ |
| 69 # Note: file list duplicated in GN build. |
| 70 'gamepad_test_helpers.cc', |
| 71 'gamepad_test_helpers.h', |
| 72 ], |
| 73 }, |
| 74 ], |
| 75 } |
OLD | NEW |