Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(319)

Side by Side Diff: device/gamepad/BUILD.gn

Issue 2271353002: Added support for GameController devices on OSX (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed review feedback Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | device/gamepad/game_controller_data_fetcher_mac.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | device/gamepad/game_controller_data_fetcher_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698