Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(438)

Unified Diff: services/device/screen_orientation/BUILD.gn

Issue 2745443002: [Device Service] Port ScreenOrientationListener into Device Service. (Closed)
Patch Set: Add DEPS Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: services/device/screen_orientation/BUILD.gn
diff --git a/services/device/screen_orientation/BUILD.gn b/services/device/screen_orientation/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..be91f8dd91f7353ceef30a2785911bc570e0d880
--- /dev/null
+++ b/services/device/screen_orientation/BUILD.gn
@@ -0,0 +1,41 @@
+# 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 = [
+ "//device/screen_orientation/public/interfaces",
+ ]
+
+ 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"
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698