OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'chromium_code': 1, | 7 'chromium_code': 1, |
8 }, | 8 }, |
9 'targets': [ | 9 'targets': [ |
10 { | 10 { |
11 # GN version: //device/gamepad | 11 # GN version: //device/gamepad |
12 'target_name': 'device_gamepad', | 12 'target_name': 'device_gamepad', |
13 'type': '<(component)', | 13 'type': '<(component)', |
14 'dependencies': [ | 14 'dependencies': [ |
15 '../../base/base.gyp:base', | 15 '../../base/base.gyp:base', |
16 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyna
mic_annotations', | 16 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyna
mic_annotations', |
17 ], | 17 ], |
18 'defines': [ | 18 'defines': [ |
19 'DEVICE_GAMEPAD_IMPLEMENTATION', | 19 'DEVICE_GAMEPAD_IMPLEMENTATION', |
20 ], | 20 ], |
21 'sources': [ | 21 'sources': [ |
22 # Note: file list duplicated in GN build. | 22 # Note: file list duplicated in GN build. |
23 'gamepad_consumer.cc', | 23 'gamepad_consumer.cc', |
24 'gamepad_consumer.h', | 24 'gamepad_consumer.h', |
25 'gamepad_data_fetcher.cc', | 25 'gamepad_data_fetcher.cc', |
26 'gamepad_data_fetcher.h', | 26 'gamepad_data_fetcher.h', |
| 27 'gamepad_data_fetcher_manager.cc', |
| 28 'gamepad_data_fetcher_manager.h', |
27 'gamepad_platform_data_fetcher.h', | 29 'gamepad_platform_data_fetcher.h', |
28 'gamepad_platform_data_fetcher_android.cc', | 30 'gamepad_platform_data_fetcher_android.cc', |
29 'gamepad_platform_data_fetcher_android.h', | 31 'gamepad_platform_data_fetcher_android.h', |
30 'gamepad_platform_data_fetcher_linux.cc', | 32 'gamepad_platform_data_fetcher_linux.cc', |
31 'gamepad_platform_data_fetcher_linux.h', | 33 'gamepad_platform_data_fetcher_linux.h', |
32 'gamepad_platform_data_fetcher_mac.h', | 34 'gamepad_platform_data_fetcher_mac.h', |
33 'gamepad_platform_data_fetcher_mac.mm', | 35 'gamepad_platform_data_fetcher_mac.mm', |
34 'gamepad_platform_data_fetcher_win.cc', | 36 'gamepad_platform_data_fetcher_win.cc', |
35 'gamepad_platform_data_fetcher_win.h', | 37 'gamepad_platform_data_fetcher_win.h', |
36 'gamepad_provider.cc', | 38 'gamepad_provider.cc', |
37 'gamepad_provider.h', | 39 'gamepad_provider.h', |
38 'gamepad_standard_mappings.cc', | 40 'gamepad_standard_mappings.cc', |
39 'gamepad_standard_mappings.h', | 41 'gamepad_standard_mappings.h', |
40 'gamepad_standard_mappings_linux.cc', | 42 'gamepad_standard_mappings_linux.cc', |
41 'gamepad_standard_mappings_mac.mm', | 43 'gamepad_standard_mappings_mac.mm', |
42 'gamepad_standard_mappings_win.cc', | 44 'gamepad_standard_mappings_win.cc', |
43 'gamepad_user_gesture.cc', | 45 'gamepad_user_gesture.cc', |
44 'gamepad_user_gesture.h', | 46 'gamepad_user_gesture.h', |
45 'raw_input_data_fetcher_win.cc', | 47 'raw_input_data_fetcher_win.cc', |
46 'raw_input_data_fetcher_win.h', | 48 'raw_input_data_fetcher_win.h', |
47 'xbox_data_fetcher_mac.cc', | |
48 'xbox_data_fetcher_mac.h', | 49 'xbox_data_fetcher_mac.h', |
| 50 'xbox_data_fetcher_mac.mm', |
49 ], | 51 ], |
50 'conditions': [ | 52 'conditions': [ |
51 ['OS=="win"', { | 53 ['OS=="win"', { |
52 'msvs_disabled_warnings': [4267, ], | 54 'msvs_disabled_warnings': [4267, ], |
53 }], | 55 }], |
54 ['OS=="linux" and use_udev==1', { | |
55 'dependencies': [ | |
56 '../udev_linux/udev.gyp:udev_linux', | |
57 ] | |
58 }], | |
59 ['OS!="win" and OS!="mac" and OS!="android" and (OS!="linux" or use_udev
==0)', { | 56 ['OS!="win" and OS!="mac" and OS!="android" and (OS!="linux" or use_udev
==0)', { |
60 'sources': [ | |
61 'gamepad_platform_data_fetcher.cc', | |
62 ], | |
63 'sources!': [ | 57 'sources!': [ |
64 'gamepad_platform_data_fetcher_linux.cc', | 58 'gamepad_platform_data_fetcher_linux.cc', |
65 ], | 59 ], |
66 }], | 60 }], |
67 ['use_udev == 1', { | 61 ['use_udev == 1', { |
68 'dependencies': [ | 62 'dependencies': [ |
69 '<(DEPTH)/device/udev_linux/udev.gyp:udev_linux', | 63 '<(DEPTH)/device/udev_linux/udev.gyp:udev_linux', |
70 ], | 64 ], |
71 }], | 65 }], |
72 ], | 66 ], |
73 }, | 67 }, |
74 { | 68 { |
75 # GN version: //device/gamepad:test_helpers | 69 # GN version: //device/gamepad:test_helpers |
76 'target_name': 'device_gamepad_test_helpers', | 70 'target_name': 'device_gamepad_test_helpers', |
77 'type': 'static_library', | 71 'type': 'static_library', |
78 'dependencies': [ | 72 'dependencies': [ |
79 '../../base/base.gyp:base', | 73 '../../base/base.gyp:base', |
80 'device_gamepad', | 74 'device_gamepad', |
81 ], | 75 ], |
82 'sources': [ | 76 'sources': [ |
83 # Note: file list duplicated in GN build. | 77 # Note: file list duplicated in GN build. |
84 'gamepad_test_helpers.cc', | 78 'gamepad_test_helpers.cc', |
85 'gamepad_test_helpers.h', | 79 'gamepad_test_helpers.h', |
86 ], | 80 ], |
87 }, | 81 }, |
88 ], | 82 ], |
89 } | 83 } |
OLD | NEW |