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

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

Issue 2189523004: power_save_blocker_x11.cc depends on dbus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | no next file » | 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 import("//build/config/ui.gni") 6 import("//build/config/ui.gni")
7 7
8 if (is_android) { 8 if (is_android) {
9 import("//build/config/android/rules.gni") 9 import("//build/config/android/rules.gni")
10 } 10 }
(...skipping 27 matching lines...) Expand all
38 } 38 }
39 deps += [ "//ui/gfx/x" ] 39 deps += [ "//ui/gfx/x" ]
40 } 40 }
41 41
42 # Dealing with power_save_blocker_{x11,ozone}.cc is a little complicated 42 # Dealing with power_save_blocker_{x11,ozone}.cc is a little complicated
43 # given the interaction between os_chromeos and the feature flags for X11 and 43 # given the interaction between os_chromeos and the feature flags for X11 and
44 # ozone, so do it all in one spot. 44 # ozone, so do it all in one spot.
45 if (is_chromeos || !use_ozone) { 45 if (is_chromeos || !use_ozone) {
46 sources -= [ "power_save_blocker_ozone.cc" ] 46 sources -= [ "power_save_blocker_ozone.cc" ]
47 } 47 }
48 if (is_chromeos || !use_x11) { 48 if (is_chromeos || !use_x11 || !use_dbus) {
49 sources -= [ "power_save_blocker_x11.cc" ] 49 sources -= [ "power_save_blocker_x11.cc" ]
50 } 50 }
51 51
52 if (is_android) { 52 if (is_android) {
53 sources += [ 53 sources += [
54 "power_save_blocker_jni_registrar.cc", 54 "power_save_blocker_jni_registrar.cc",
55 "power_save_blocker_jni_registrar.h", 55 "power_save_blocker_jni_registrar.h",
56 ] 56 ]
57 57
58 deps += [ 58 deps += [
(...skipping 26 matching lines...) Expand all
85 } 85 }
86 86
87 android_library("java") { 87 android_library("java") {
88 java_files = java_sources_needing_jni 88 java_files = java_sources_needing_jni
89 deps = [ 89 deps = [
90 "//base:base_java", 90 "//base:base_java",
91 "//ui/android:ui_java", 91 "//ui/android:ui_java",
92 ] 92 ]
93 } 93 }
94 } 94 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698