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 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
| 6 import("//mojo/public/tools/bindings/mojom.gni") |
6 | 7 |
7 if (is_android) { | 8 if (is_android) { |
8 import("//build/config/android/config.gni") | 9 import("//build/config/android/config.gni") |
9 import("//build/config/android/rules.gni") # For generate_jni(). | 10 import("//build/config/android/rules.gni") # For generate_jni(). |
10 } | 11 } |
11 | 12 |
12 component("gamepad") { | 13 component("gamepad") { |
13 output_name = "device_gamepad" | 14 output_name = "device_gamepad" |
14 | 15 |
15 sources = [ | 16 sources = [ |
(...skipping 13 matching lines...) Expand all Loading... |
29 "gamepad_platform_data_fetcher_android.cc", | 30 "gamepad_platform_data_fetcher_android.cc", |
30 "gamepad_platform_data_fetcher_android.h", | 31 "gamepad_platform_data_fetcher_android.h", |
31 "gamepad_platform_data_fetcher_linux.cc", | 32 "gamepad_platform_data_fetcher_linux.cc", |
32 "gamepad_platform_data_fetcher_linux.h", | 33 "gamepad_platform_data_fetcher_linux.h", |
33 "gamepad_platform_data_fetcher_mac.h", | 34 "gamepad_platform_data_fetcher_mac.h", |
34 "gamepad_platform_data_fetcher_mac.mm", | 35 "gamepad_platform_data_fetcher_mac.mm", |
35 "gamepad_platform_data_fetcher_win.cc", | 36 "gamepad_platform_data_fetcher_win.cc", |
36 "gamepad_platform_data_fetcher_win.h", | 37 "gamepad_platform_data_fetcher_win.h", |
37 "gamepad_provider.cc", | 38 "gamepad_provider.cc", |
38 "gamepad_provider.h", | 39 "gamepad_provider.h", |
| 40 "gamepad_service.cc", |
| 41 "gamepad_service.h", |
| 42 "gamepad_shared_buffer.cc", |
| 43 "gamepad_shared_buffer.h", |
39 "gamepad_standard_mappings.cc", | 44 "gamepad_standard_mappings.cc", |
40 "gamepad_standard_mappings.h", | 45 "gamepad_standard_mappings.h", |
41 "gamepad_standard_mappings_linux.cc", | 46 "gamepad_standard_mappings_linux.cc", |
42 "gamepad_standard_mappings_mac.mm", | 47 "gamepad_standard_mappings_mac.mm", |
43 "gamepad_standard_mappings_win.cc", | 48 "gamepad_standard_mappings_win.cc", |
44 "gamepad_user_gesture.cc", | 49 "gamepad_user_gesture.cc", |
45 "gamepad_user_gesture.h", | 50 "gamepad_user_gesture.h", |
46 "raw_input_data_fetcher_win.cc", | 51 "raw_input_data_fetcher_win.cc", |
47 "raw_input_data_fetcher_win.h", | 52 "raw_input_data_fetcher_win.h", |
48 "xbox_data_fetcher_mac.h", | 53 "xbox_data_fetcher_mac.h", |
49 "xbox_data_fetcher_mac.mm", | 54 "xbox_data_fetcher_mac.mm", |
50 ] | 55 ] |
51 | 56 |
52 deps = [ | 57 deps = [ |
53 "//base", | 58 "//base", |
54 "//base/third_party/dynamic_annotations", | 59 "//base/third_party/dynamic_annotations", |
| 60 "//device/base/synchronization", |
55 "//third_party/WebKit/public:blink_headers", | 61 "//third_party/WebKit/public:blink_headers", |
56 ] | 62 ] |
57 | 63 |
58 defines = [ "DEVICE_GAMEPAD_IMPLEMENTATION" ] | 64 defines = [ "DEVICE_GAMEPAD_IMPLEMENTATION" ] |
59 | 65 |
60 if (is_win) { | 66 if (is_win) { |
61 cflags = [ "/wd4267" ] # conversion from 'size_t' (64 bit) to 'type'(32 bit
). | 67 cflags = [ "/wd4267" ] # conversion from 'size_t' (64 bit) to 'type'(32 bit
). |
62 } | 68 } |
63 | 69 |
64 if (is_linux && use_udev) { | 70 if (is_linux && use_udev) { |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 ] | 124 ] |
119 srcjar_deps = [ ":java_enums_srcjar" ] | 125 srcjar_deps = [ ":java_enums_srcjar" ] |
120 } | 126 } |
121 | 127 |
122 java_cpp_enum("java_enums_srcjar") { | 128 java_cpp_enum("java_enums_srcjar") { |
123 sources = [ | 129 sources = [ |
124 "gamepad_standard_mappings.h", | 130 "gamepad_standard_mappings.h", |
125 ] | 131 ] |
126 } | 132 } |
127 } | 133 } |
OLD | NEW |