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

Side by Side Diff: sky/shell/BUILD.gn

Issue 890803004: SkyShell should be able to draw a green square with GL (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
1 # Copyright 2015 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 assert(is_android) 5 assert(is_android)
6 6
7 import("//build/config/android/config.gni") 7 import("//build/config/android/config.gni")
8 import("//build/config/android/rules.gni") 8 import("//build/config/android/rules.gni")
9 9
10 group("shell") { 10 group("shell") {
11 deps = [ 11 deps = [
12 ":sky_shell_apk", 12 ":sky_shell_apk",
13 ] 13 ]
14 } 14 }
15 15
16 generate_jni("jni_headers") { 16 generate_jni("jni_headers") {
17 sources = [ 17 sources = [
18 "apk/src/org/domokit/sky/shell/SkyMain.java", 18 "apk/src/org/domokit/sky/shell/SkyMain.java",
19 "apk/src/org/domokit/sky/shell/SkyView.java",
19 ] 20 ]
20 jni_package = "sky/shell" 21 jni_package = "sky/shell"
21 } 22 }
22 23
23 shared_library("sky_shell") { 24 shared_library("sky_shell") {
24 sources = [ 25 sources = [
26 "gpu_driver.cc",
27 "gpu_driver.h",
25 "library_loader.cc", 28 "library_loader.cc",
29 "shell.cc",
30 "shell.h",
26 "sky_main.cc", 31 "sky_main.cc",
27 "sky_main.h", 32 "sky_main.h",
33 "sky_view.cc",
34 "sky_view.h",
28 ] 35 ]
29 36
37 configs += [ "//third_party/khronos:khronos_headers" ]
38
30 deps = [ 39 deps = [
31 "//base", 40 "//base",
32 "//build/config/sanitizers:deps", 41 "//build/config/sanitizers:deps",
33 "//ui/gl", 42 "//ui/gl",
34 ":jni_headers", 43 ":jni_headers",
35 ] 44 ]
36 } 45 }
37 46
38 android_library("java") { 47 android_library("java") {
39 java_files = [ 48 java_files = [
40 "apk/src/org/domokit/sky/shell/SkyMain.java", 49 "apk/src/org/domokit/sky/shell/SkyMain.java",
41 "apk/src/org/domokit/sky/shell/SkyShellActivity.java", 50 "apk/src/org/domokit/sky/shell/SkyShellActivity.java",
42 "apk/src/org/domokit/sky/shell/SkyShellApplication.java", 51 "apk/src/org/domokit/sky/shell/SkyShellApplication.java",
52 "apk/src/org/domokit/sky/shell/SkyView.java",
43 ] 53 ]
44 54
45 deps = [ 55 deps = [
46 "//base:base_java", 56 "//base:base_java",
47 ] 57 ]
48 } 58 }
49 59
50 android_resources("resources") { 60 android_resources("resources") {
51 resource_dirs = [ "apk/res" ] 61 resource_dirs = [ "apk/res" ]
52 custom_package = "org.domokit.sky.shell" 62 custom_package = "org.domokit.sky.shell"
53 } 63 }
54 64
55 android_apk("sky_shell_apk") { 65 android_apk("sky_shell_apk") {
56 apk_name = "SkyShell" 66 apk_name = "SkyShell"
57 67
58 android_manifest = "apk/AndroidManifest.xml" 68 android_manifest = "apk/AndroidManifest.xml"
59 native_libs = [ "libsky_shell.so" ] 69 native_libs = [ "libsky_shell.so" ]
60 70
61 asset_location = "apk/res" 71 asset_location = "apk/res"
62 72
63 deps = [ 73 deps = [
64 ":sky_shell", 74 ":sky_shell",
65 ":java", 75 ":java",
66 ":resources", 76 ":resources",
67 "//base:base_java", 77 "//base:base_java",
68 ] 78 ]
69 } 79 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698