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

Side by Side Diff: base/BUILD.gn

Issue 2351593004: Implement base::PowerMonitor::IsOnBatteryPower() for OSX. (Closed)
Patch Set: Fix logic. 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
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 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 # HOW TO WRITE CONDITIONALS IN THIS FILE 5 # HOW TO WRITE CONDITIONALS IN THIS FILE
6 # ====================================== 6 # ======================================
7 # 7 #
8 # In many other places, one would write a conditional that expresses all the 8 # In many other places, one would write a conditional that expresses all the
9 # cases when a source file is used or unused, and then either add or subtract 9 # cases when a source file is used or unused, and then either add or subtract
10 # it from the sources list in that case 10 # it from the sources list in that case
(...skipping 1289 matching lines...) Expand 10 before | Expand all | Expand 10 after
1300 "winmm.lib", 1300 "winmm.lib",
1301 ] 1301 ]
1302 all_dependent_configs = [ ":base_win_linker_flags" ] 1302 all_dependent_configs = [ ":base_win_linker_flags" ]
1303 } else if (!is_nacl || is_nacl_nonsfi) { 1303 } else if (!is_nacl || is_nacl_nonsfi) {
1304 # Non-Windows. 1304 # Non-Windows.
1305 deps += [ "//base/third_party/libevent" ] 1305 deps += [ "//base/third_party/libevent" ]
1306 } 1306 }
1307 1307
1308 # Desktop Mac. 1308 # Desktop Mac.
1309 if (is_mac) { 1309 if (is_mac) {
1310 sources -= [ "power_monitor/power_monitor_device_source_posix.cc" ]
Nico 2016/09/20 00:04:13 (fwiw, instead of "add all, then subtract", in gn
DaleCurtis 2016/09/21 22:49:39 Done. Fixed all the existing cases.
1311
1310 libs = [ 1312 libs = [
1311 "ApplicationServices.framework", 1313 "ApplicationServices.framework",
1312 "AppKit.framework", 1314 "AppKit.framework",
1313 "bsm", 1315 "bsm",
1314 "CoreFoundation.framework", 1316 "CoreFoundation.framework",
1315 "IOKit.framework", 1317 "IOKit.framework",
1316 "Security.framework", 1318 "Security.framework",
1317 ] 1319 ]
1318 } 1320 }
1319 1321
(...skipping 1135 matching lines...) Expand 10 before | Expand all | Expand 10 after
2455 testonly = true 2457 testonly = true
2456 deps = [ 2458 deps = [
2457 ":base_java", 2459 ":base_java",
2458 ] 2460 ]
2459 java_files = [ 2461 java_files = [
2460 "test/android/java/src/org/chromium/base/ContentUriTestUtils.java", 2462 "test/android/java/src/org/chromium/base/ContentUriTestUtils.java",
2461 "test/android/java/src/org/chromium/base/TestSystemMessageHandler.java", 2463 "test/android/java/src/org/chromium/base/TestSystemMessageHandler.java",
2462 ] 2464 ]
2463 } 2465 }
2464 } 2466 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698