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

Unified Diff: sky/shell/BUILD.gn

Issue 893643002: Add a standalone SkyShell.apk for testing (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Address reviewer comments Created 5 years, 11 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
« no previous file with comments | « sky/BUILD.gn ('k') | sky/shell/apk/AndroidManifest.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/shell/BUILD.gn
diff --git a/sky/shell/BUILD.gn b/sky/shell/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..624472d4b2d3d297d6685929f1ccc6de19166b6b
--- /dev/null
+++ b/sky/shell/BUILD.gn
@@ -0,0 +1,69 @@
+# Copyright 2015 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.
+
+assert(is_android)
+
+import("//build/config/android/config.gni")
+import("//build/config/android/rules.gni")
+
+group("shell") {
+ deps = [
+ ":sky_shell_apk",
+ ]
+}
+
+generate_jni("jni_headers") {
+ sources = [
+ "apk/src/org/domokit/sky/shell/SkyMain.java",
+ ]
+ jni_package = "sky/shell"
+}
+
+shared_library("sky_shell") {
+ sources = [
+ "library_loader.cc",
+ "sky_main.cc",
+ "sky_main.h",
+ ]
+
+ deps = [
+ "//base",
+ "//build/config/sanitizers:deps",
+ "//ui/gl",
+ ":jni_headers",
+ ]
+}
+
+android_library("java") {
+ java_files = [
+ "apk/src/org/domokit/sky/shell/SkyMain.java",
+ "apk/src/org/domokit/sky/shell/SkyShellActivity.java",
+ "apk/src/org/domokit/sky/shell/SkyShellApplication.java",
+ ]
+
+ deps = [
+ "//base:base_java",
+ ]
+}
+
+android_resources("resources") {
+ resource_dirs = [ "apk/res" ]
+ custom_package = "org.domokit.sky.shell"
+}
+
+android_apk("sky_shell_apk") {
+ apk_name = "SkyShell"
+
+ android_manifest = "apk/AndroidManifest.xml"
+ native_libs = [ "libsky_shell.so" ]
+
+ asset_location = "apk/res"
+
+ deps = [
+ ":sky_shell",
+ ":java",
+ ":resources",
+ "//base:base_java",
+ ]
+}
« no previous file with comments | « sky/BUILD.gn ('k') | sky/shell/apk/AndroidManifest.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698