 Chromium Code Reviews
 Chromium Code Reviews Issue 2772183002:
  [DeviceService] Cleanup of android library dependencies.  (Closed)
    
  
    Issue 2772183002:
  [DeviceService] Cleanup of android library dependencies.  (Closed) 
  | OLD | NEW | 
|---|---|
| 1 # Copyright 2017 The Chromium Authors. All rights reserved. | 1 # Copyright 2017 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 | 6 | 
| 7 if (is_android) { | 7 if (is_android) { | 
| 8 import("//build/config/android/rules.gni") # For generate_jni(). | 8 import("//build/config/android/rules.gni") # For generate_jni(). | 
| 9 } | 9 } | 
| 10 | 10 | 
| (...skipping 20 matching lines...) Expand all Loading... | |
| 31 } | 31 } | 
| 32 | 32 | 
| 33 if (is_android) { | 33 if (is_android) { | 
| 34 generate_jni("screen_orientation_jni_headers") { | 34 generate_jni("screen_orientation_jni_headers") { | 
| 35 visibility = [ ":screen_orientation" ] | 35 visibility = [ ":screen_orientation" ] | 
| 36 sources = [ | 36 sources = [ | 
| 37 "android/java/src/org/chromium/device/screen_orientation/ScreenOrientation Listener.java", | 37 "android/java/src/org/chromium/device/screen_orientation/ScreenOrientation Listener.java", | 
| 38 ] | 38 ] | 
| 39 jni_package = "screen_orientation" | 39 jni_package = "screen_orientation" | 
| 40 } | 40 } | 
| 41 | |
| 42 android_library("java") { | |
| 43 visibility = [ "//services/device:*" ] | |
| 
blundell
2017/03/27 07:43:43
maybe just //services/device:java for clarity?
 
leonhsl(Using Gerrit)
2017/03/27 08:41:36
Yeah I tried with //services/device:java before, b
 | |
| 44 java_files = [ "android/java/src/org/chromium/device/screen_orientation/Scre enOrientationListener.java" ] | |
| 45 deps = [ | |
| 46 "//base:base_java", | |
| 47 "//ui/android:ui_java", | |
| 48 ] | |
| 49 } | |
| 41 } | 50 } | 
| OLD | NEW |