mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-24 14:26:09 +03:00
54 lines
1.4 KiB
Plaintext
54 lines
1.4 KiB
Plaintext
|
# Copyright 2017 The Chromium Authors. All rights reserved.
|
||
|
# Use of this source code is governed by a BSD-style license that can be
|
||
|
# found in the LICENSE file.
|
||
|
|
||
|
import("//build/config/features.gni")
|
||
|
|
||
|
if (is_android) {
|
||
|
import("//build/config/android/rules.gni") # For generate_jni().
|
||
|
}
|
||
|
|
||
|
source_set("screen_orientation") {
|
||
|
visibility = [ "//services/device:lib" ]
|
||
|
|
||
|
sources = [
|
||
|
"screen_orientation_listener_android.cc",
|
||
|
"screen_orientation_listener_android.h",
|
||
|
]
|
||
|
|
||
|
deps = [
|
||
|
"//base",
|
||
|
"//mojo/public/cpp/bindings",
|
||
|
]
|
||
|
|
||
|
public_deps = [
|
||
|
"//services/device/public/mojom",
|
||
|
]
|
||
|
|
||
|
if (is_android) {
|
||
|
deps += [ ":screen_orientation_jni_headers" ]
|
||
|
}
|
||
|
}
|
||
|
|
||
|
if (is_android) {
|
||
|
generate_jni("screen_orientation_jni_headers") {
|
||
|
visibility = [ ":screen_orientation" ]
|
||
|
sources = [
|
||
|
"android/java/src/org/chromium/device/screen_orientation/ScreenOrientationListener.java",
|
||
|
]
|
||
|
jni_package = "screen_orientation"
|
||
|
}
|
||
|
|
||
|
android_library("java") {
|
||
|
# Conceptually, this should be visible only to //services/device:java.
|
||
|
# However, various generated targets also need to see this target as a
|
||
|
# result of //services/device:java depending on it.
|
||
|
visibility = [ "//services/device:*" ]
|
||
|
java_files = [ "android/java/src/org/chromium/device/screen_orientation/ScreenOrientationListener.java" ]
|
||
|
deps = [
|
||
|
"//base:base_java",
|
||
|
"//ui/android:ui_java",
|
||
|
]
|
||
|
}
|
||
|
}
|