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

Side by Side 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: Created 5 years, 10 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 unified diff | Download patch
OLDNEW
(Empty)
1 # Copyright 2015 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 assert(is_android)
6
7 import("//build/config/android/config.gni")
8 import("//build/config/android/rules.gni")
9
10 group("shell") {
11 deps = [
12 ":sky_shell_apk",
13 ]
14 }
15
16 generate_jni("jni_headers") {
17 sources = [
18 "apk/src/org/domokit/sky/shell/SkyMain.java",
19 ]
20 jni_package = "sky/shell"
21 }
22
23 shared_library("sky_shell") {
24 sources = [
25 "library_loader.cc",
26 "sky_main.cc",
27 "sky_main.h",
28 ]
29
30 deps = [
31 "//base",
32 "//build/config/sanitizers:deps",
33 "//ui/gl",
34 ":jni_headers",
35 ]
36
37 # On android, the executable is also the native library used by the apk.
38 # It means dynamic symbols must be preserved and exported.
39 ldflags = [ "-Wl,--export-dynamic" ]
eseidel 2015/01/30 21:57:56 Is this hold-over from the funk that is libmojo_sh
abarth-chromium 2015/01/30 22:02:28 You're right. It's not needed.
40 }
41
42 android_library("java") {
43 java_files = [
44 "apk/src/org/domokit/sky/shell/SkyMain.java",
45 "apk/src/org/domokit/sky/shell/SkyShellActivity.java",
46 "apk/src/org/domokit/sky/shell/SkyShellApplication.java",
47 ]
48
49 deps = [
50 "//base:base_java",
51 ]
52 }
53
54 android_resources("resources") {
55 resource_dirs = [ "apk/res" ]
56 custom_package = "org.domokit.sky.shell"
57 }
58
59 android_apk("sky_shell_apk") {
60 apk_name = "SkyShell"
61
62 android_manifest = "apk/AndroidManifest.xml"
63 native_libs = [ "libsky_shell.so" ]
64
65 asset_location = "apk/res"
66
67 deps = [
68 ":sky_shell",
69 ":java",
70 ":resources",
71 "//base:base_java",
72 ]
73 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698