| 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 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 if (use_dbus) { | 29 if (use_dbus) { |
| 30 deps += [ "//dbus" ] | 30 deps += [ "//dbus" ] |
| 31 } | 31 } |
| 32 | 32 |
| 33 if (use_x11) { | 33 if (use_x11) { |
| 34 configs += [ "//build/config/linux:x11" ] | 34 configs += [ "//build/config/linux:x11" ] |
| 35 if (!is_chromeos) { | 35 if (!is_chromeos) { |
| 36 configs += [ "//build/config/linux:xscrnsaver" ] | 36 configs += [ "//build/config/linux:xscrnsaver" ] |
| 37 } | 37 } |
| 38 deps += [ "//ui/gfx/x" ] | 38 deps += [ |
| 39 "//ui/gfx", |
| 40 "//ui/gfx/x", |
| 41 ] |
| 39 } | 42 } |
| 40 | 43 |
| 41 # Dealing with power_save_blocker_{x11,ozone}.cc is a little complicated | 44 # Dealing with power_save_blocker_{x11,ozone}.cc is a little complicated |
| 42 # given the interaction between os_chromeos and the feature flags for X11 and | 45 # given the interaction between os_chromeos and the feature flags for X11 and |
| 43 # ozone, so do it all in one spot. | 46 # ozone, so do it all in one spot. |
| 44 if (is_chromeos || !use_ozone) { | 47 if (is_chromeos || !use_ozone) { |
| 45 sources -= [ "power_save_blocker_ozone.cc" ] | 48 sources -= [ "power_save_blocker_ozone.cc" ] |
| 46 } | 49 } |
| 47 if (is_chromeos || !use_x11 || !use_dbus) { | 50 if (is_chromeos || !use_x11 || !use_dbus) { |
| 48 sources -= [ "power_save_blocker_x11.cc" ] | 51 sources -= [ "power_save_blocker_x11.cc" ] |
| (...skipping 30 matching lines...) Expand all Loading... |
| 79 } | 82 } |
| 80 | 83 |
| 81 android_library("java") { | 84 android_library("java") { |
| 82 java_files = java_sources_needing_jni | 85 java_files = java_sources_needing_jni |
| 83 deps = [ | 86 deps = [ |
| 84 "//base:base_java", | 87 "//base:base_java", |
| 85 "//ui/android:ui_java", | 88 "//ui/android:ui_java", |
| 86 ] | 89 ] |
| 87 } | 90 } |
| 88 } | 91 } |
| OLD | NEW |