OLD | NEW |
| (Empty) |
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 | |
3 # found in the LICENSE file. | |
4 | |
5 { | |
6 'variables': { | |
7 'chromium_code': 1, | |
8 }, | |
9 'targets': [ | |
10 { | |
11 # GN version: //device/power_save_blocker | |
12 'target_name': 'device_power_save_blocker', | |
13 'type': '<(component)', | |
14 'dependencies': [ | |
15 '../../base/base.gyp:base', | |
16 ], | |
17 'defines': [ | |
18 'DEVICE_POWER_SAVE_BLOCKER_IMPLEMENTATION', | |
19 ], | |
20 'sources': [ | |
21 # Note: file list duplicated in GN build, other than Android, as gyp | |
22 # for Android isn't supported. | |
23 'power_save_blocker.h', | |
24 'power_save_blocker_chromeos.cc', | |
25 'power_save_blocker_mac.cc', | |
26 'power_save_blocker_ozone.cc', | |
27 'power_save_blocker_win.cc', | |
28 'power_save_blocker_x11.cc', | |
29 ], | |
30 'conditions': [ | |
31 ['use_x11==1 and chromeos==0', { | |
32 'dependencies': [ | |
33 '../../build/linux/system.gyp:xext', | |
34 '../../build/linux/system.gyp:xscrnsaver', | |
35 '../../ui/gfx/x/gfx_x11.gyp:gfx_x11', | |
36 ], | |
37 }], | |
38 ['use_dbus==1', { | |
39 'dependencies': [ | |
40 '../../build/linux/system.gyp:dbus', | |
41 '../../dbus/dbus.gyp:dbus', | |
42 ], | |
43 }], | |
44 ['chromeos==1', { | |
45 'sources!': [ | |
46 'power_save_blocker_ozone.cc', | |
47 'power_save_blocker_x11.cc', | |
48 ], | |
49 'dependencies': [ | |
50 '../../chromeos/chromeos.gyp:chromeos', | |
51 '../../chromeos/chromeos.gyp:power_manager_proto', | |
52 ], | |
53 }], | |
54 ['OS == "mac"', { | |
55 'link_settings': { | |
56 'libraries': [ | |
57 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework', | |
58 '$(SDKROOT)/System/Library/Frameworks/IOKit.framework', | |
59 ], | |
60 }, | |
61 }], | |
62 ], | |
63 }, | |
64 ], | |
65 } | |
OLD | NEW |