| OLD | NEW |
| (Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 |
| 5 import("//build/config/features.gni") |
| 6 |
| 7 if (is_android) { |
| 8 import("//build/config/android/rules.gni") # For generate_jni(). |
| 9 } |
| 10 |
| 11 source_set("screen_orientation") { |
| 12 visibility = [ "//services/device:lib" ] |
| 13 |
| 14 sources = [ |
| 15 "screen_orientation_listener_android.cc", |
| 16 "screen_orientation_listener_android.h", |
| 17 ] |
| 18 |
| 19 deps = [ |
| 20 "//base", |
| 21 "//mojo/public/cpp/bindings", |
| 22 ] |
| 23 |
| 24 public_deps = [ |
| 25 "//device/screen_orientation/public/interfaces", |
| 26 ] |
| 27 |
| 28 if (is_android) { |
| 29 deps += [ ":screen_orientation_jni_headers" ] |
| 30 } |
| 31 } |
| 32 |
| 33 if (is_android) { |
| 34 generate_jni("screen_orientation_jni_headers") { |
| 35 visibility = [ ":screen_orientation" ] |
| 36 sources = [ |
| 37 "android/java/src/org/chromium/device/screen_orientation/ScreenOrientation
Listener.java", |
| 38 ] |
| 39 jni_package = "screen_orientation" |
| 40 } |
| 41 } |
| OLD | NEW |