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

Unified Diff: device/gamepad/gamepad.gyp

Issue 2081583002: Migrating majority of gamepad from content/browser/ to device/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Final tweaks Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: device/gamepad/gamepad.gyp
diff --git a/device/gamepad/gamepad.gyp b/device/gamepad/gamepad.gyp
new file mode 100644
index 0000000000000000000000000000000000000000..f82c5048953bfa33606869dc05fdea90e243fb88
--- /dev/null
+++ b/device/gamepad/gamepad.gyp
@@ -0,0 +1,76 @@
+# Copyright 2016 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+{
+ 'variables': {
+ 'chromium_code': 1,
+ },
+ 'targets': [
+ {
+ # GN version: //device/gamepad
+ 'target_name': 'device_gamepad',
+ 'type': '<(component)',
+ 'dependencies': [
+ '../../base/base.gyp:base',
+ '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
+ ],
+ 'defines': [
+ 'DEVICE_GAMEPAD_IMPLEMENTATION',
+ ],
+ 'sources': [
+ # Note: file list duplicated in GN build.
+ 'gamepad_consumer.cc',
+ 'gamepad_consumer.h',
+ 'gamepad_data_fetcher.cc',
+ 'gamepad_data_fetcher.h',
+ 'gamepad_platform_data_fetcher.h',
+ 'gamepad_platform_data_fetcher_android.cc',
+ 'gamepad_platform_data_fetcher_android.h',
+ 'gamepad_platform_data_fetcher_linux.cc',
+ 'gamepad_platform_data_fetcher_linux.h',
+ 'gamepad_platform_data_fetcher_mac.h',
+ 'gamepad_platform_data_fetcher_mac.mm',
+ 'gamepad_platform_data_fetcher_win.cc',
+ 'gamepad_platform_data_fetcher_win.h',
+ 'gamepad_provider.cc',
+ 'gamepad_provider.h',
+ 'gamepad_standard_mappings.cc',
+ 'gamepad_standard_mappings.h',
+ 'gamepad_standard_mappings_linux.cc',
+ 'gamepad_standard_mappings_mac.mm',
+ 'gamepad_standard_mappings_win.cc',
+ 'gamepad_user_gesture.cc',
+ 'gamepad_user_gesture.h',
+ 'raw_input_data_fetcher_win.cc',
+ 'raw_input_data_fetcher_win.h',
+ 'xbox_data_fetcher_mac.cc',
+ 'xbox_data_fetcher_mac.h',
+ ],
+ 'conditions': [
+ ['OS=="win"', {
+ 'msvs_disabled_warnings': [4267, ],
+ }],
+ ['OS!="win" and OS!="mac" and OS!="android" and (OS!="linux" or use_udev==0)', {
+ 'sources': [
+ 'gamepad_platform_data_fetcher.cc',
+ ]
+ }],
+ ],
+ },
+ {
+ # GN version: //device/gamepad:test_helpers
+ 'target_name': 'device_gamepad_test_helpers',
+ 'type': 'static_library',
+ 'dependencies': [
+ '../../base/base.gyp:base',
+ 'device_gamepad',
+ ],
+ 'sources': [
+ # Note: file list duplicated in GN build.
+ 'gamepad_test_helpers.cc',
+ 'gamepad_test_helpers.h',
+ ],
+ },
+ ],
+}

Powered by Google App Engine
This is Rietveld 408576698