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.cc', | |
24 'gamepad_consumer.h', | |
25 'gamepad_data_fetcher.cc', | |
26 'gamepad_data_fetcher.h', | |
27 'gamepad_data_fetcher_manager.cc', | |
28 'gamepad_data_fetcher_manager.h', | |
29 'gamepad_platform_data_fetcher.h', | |
30 'gamepad_platform_data_fetcher_android.cc', | |
31 'gamepad_platform_data_fetcher_android.h', | |
32 'gamepad_platform_data_fetcher_linux.cc', | |
33 'gamepad_platform_data_fetcher_linux.h', | |
34 'gamepad_platform_data_fetcher_mac.h', | |
35 'gamepad_platform_data_fetcher_mac.mm', | |
36 'gamepad_platform_data_fetcher_win.cc', | |
37 'gamepad_platform_data_fetcher_win.h', | |
38 'gamepad_provider.cc', | |
39 'gamepad_provider.h', | |
40 'gamepad_standard_mappings.cc', | |
41 'gamepad_standard_mappings.h', | |
42 'gamepad_standard_mappings_linux.cc', | |
43 'gamepad_standard_mappings_mac.mm', | |
44 'gamepad_standard_mappings_win.cc', | |
45 'gamepad_user_gesture.cc', | |
46 'gamepad_user_gesture.h', | |
47 'raw_input_data_fetcher_win.cc', | |
48 'raw_input_data_fetcher_win.h', | |
49 'xbox_data_fetcher_mac.h', | |
50 'xbox_data_fetcher_mac.mm', | |
51 ], | |
52 'conditions': [ | |
53 ['OS=="win"', { | |
54 'msvs_disabled_warnings': [4267, ], | |
55 }], | |
56 ['OS!="win" and OS!="mac" and OS!="android" and (OS!="linux" or use_udev
==0)', { | |
57 'sources!': [ | |
58 'gamepad_platform_data_fetcher_linux.cc', | |
59 ], | |
60 }], | |
61 ['use_udev == 1', { | |
62 'dependencies': [ | |
63 '<(DEPTH)/device/udev_linux/udev.gyp:udev_linux', | |
64 ], | |
65 }], | |
66 ], | |
67 }, | |
68 { | |
69 # GN version: //device/gamepad:test_helpers | |
70 'target_name': 'device_gamepad_test_helpers', | |
71 'type': 'static_library', | |
72 'dependencies': [ | |
73 '../../base/base.gyp:base', | |
74 'device_gamepad', | |
75 ], | |
76 'sources': [ | |
77 # Note: file list duplicated in GN build. | |
78 'gamepad_test_helpers.cc', | |
79 'gamepad_test_helpers.h', | |
80 ], | |
81 }, | |
82 ], | |
83 } | |
OLD | NEW |