Index: device/power_save_blocker/power_save_blocker.gyp |
diff --git a/device/power_save_blocker/power_save_blocker.gyp b/device/power_save_blocker/power_save_blocker.gyp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..23e779ac94852a855aa800d7e77068b2011d904f |
--- /dev/null |
+++ b/device/power_save_blocker/power_save_blocker.gyp |
@@ -0,0 +1,54 @@ |
+# 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/power_save_blocker |
+ 'target_name': 'device_power_save_blocker', |
+ 'type': '<(component)', |
+ 'dependencies': [ |
+ '../../base/base.gyp:base', |
+ ], |
+ 'defines': [ |
+ 'DEVICE_POWER_SAVE_BLOCKER_IMPLEMENTATION', |
+ ], |
+ 'sources': [ |
+ # Note: file list duplicated in GN build, other than Android, as gyp |
+ # for Android isn't supported. |
+ 'power_save_blocker.h', |
+ 'power_save_blocker_chromeos.cc', |
+ 'power_save_blocker_impl.cc', |
+ 'power_save_blocker_impl.h', |
+ 'power_save_blocker_mac.cc', |
+ 'power_save_blocker_ozone.cc', |
+ 'power_save_blocker_win.cc', |
+ 'power_save_blocker_x11.cc', |
+ ], |
+ 'conditions': [ |
+ ['chromeos==1', { |
+ 'sources!': [ |
+ 'power_save_blocker_ozone.cc', |
+ 'power_save_blocker_x11.cc', |
+ ], |
+ 'dependencies': [ |
+ '../../chromeos/chromeos.gyp:chromeos', |
+ '../../chromeos/chromeos.gyp:power_manager_proto', |
+ ], |
+ }], |
+ ['OS == "mac"', { |
+ 'link_settings': { |
+ 'libraries': [ |
+ '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework', |
+ '$(SDKROOT)/System/Library/Frameworks/IOKit.framework', |
+ ], |
+ }, |
+ }], |
+ ], |
+ }, |
+ ], |
+} |