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