| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |