Chromium Code Reviews| 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", | |
| 19 "game_controller_data_fetcher_mac.mm", | |
| 18 "gamepad_consumer.cc", | 20 "gamepad_consumer.cc", |
| 19 "gamepad_consumer.h", | 21 "gamepad_consumer.h", |
| 20 "gamepad_data_fetcher.cc", | 22 "gamepad_data_fetcher.cc", |
| 21 "gamepad_data_fetcher.h", | 23 "gamepad_data_fetcher.h", |
| 22 "gamepad_data_fetcher_manager.cc", | 24 "gamepad_data_fetcher_manager.cc", |
| 23 "gamepad_data_fetcher_manager.h", | 25 "gamepad_data_fetcher_manager.h", |
| 24 "gamepad_pad_state_provider.cc", | 26 "gamepad_pad_state_provider.cc", |
| 25 "gamepad_pad_state_provider.h", | 27 "gamepad_pad_state_provider.h", |
| 26 "gamepad_platform_data_fetcher.h", | 28 "gamepad_platform_data_fetcher.h", |
| 27 "gamepad_platform_data_fetcher_android.cc", | 29 "gamepad_platform_data_fetcher_android.cc", |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 66 } | 68 } |
| 67 | 69 |
| 68 if (is_android) { | 70 if (is_android) { |
| 69 deps += [ ":jni_headers" ] | 71 deps += [ ":jni_headers" ] |
| 70 } | 72 } |
| 71 | 73 |
| 72 if (is_mac) { | 74 if (is_mac) { |
| 73 libs = [ | 75 libs = [ |
| 74 "CoreFoundation.framework", | 76 "CoreFoundation.framework", |
| 75 "Foundation.framework", | 77 "Foundation.framework", |
| 78 "GameController.framework", | |
| 76 "IOKit.framework", | 79 "IOKit.framework", |
| 77 ] | 80 ] |
| 81 | |
| 82 cflags = [ "-Wpartial-availability" ] | |
|
Nico
2017/07/13 20:13:14
We add this globally, at least on mac (not on ios,
| |
| 78 } | 83 } |
| 79 } | 84 } |
| 80 | 85 |
| 81 static_library("test_helpers") { | 86 static_library("test_helpers") { |
| 82 testonly = true | 87 testonly = true |
| 83 | 88 |
| 84 sources = [ | 89 sources = [ |
| 85 "gamepad_test_helpers.cc", | 90 "gamepad_test_helpers.cc", |
| 86 "gamepad_test_helpers.h", | 91 "gamepad_test_helpers.h", |
| 87 ] | 92 ] |
| (...skipping 25 matching lines...) Expand all Loading... | |
| 113 ] | 118 ] |
| 114 srcjar_deps = [ ":java_enums_srcjar" ] | 119 srcjar_deps = [ ":java_enums_srcjar" ] |
| 115 } | 120 } |
| 116 | 121 |
| 117 java_cpp_enum("java_enums_srcjar") { | 122 java_cpp_enum("java_enums_srcjar") { |
| 118 sources = [ | 123 sources = [ |
| 119 "gamepad_standard_mappings.h", | 124 "gamepad_standard_mappings.h", |
| 120 ] | 125 ] |
| 121 } | 126 } |
| 122 } | 127 } |
| OLD | NEW |