OLD | NEW |
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 import("//build/config/android/config.gni") | 5 import("//build/config/android/config.gni") |
6 import("//build/config/android/rules.gni") | 6 import("//build/config/android/rules.gni") |
7 import("//remoting/android/client_java_tmpl.gni") | 7 import("//remoting/android/client_java_tmpl.gni") |
8 import("//remoting/android/remoting_apk_tmpl.gni") | 8 import("//remoting/android/remoting_apk_tmpl.gni") |
9 import("//remoting/remoting_options.gni") | 9 import("//remoting/remoting_options.gni") |
10 import("//remoting/tools/build/remoting_localize.gni") | 10 import("//remoting/tools/build/remoting_localize.gni") |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 ] | 57 ] |
58 libs = [ | 58 libs = [ |
59 "android", | 59 "android", |
60 "OpenSLES", | 60 "OpenSLES", |
61 "EGL", | 61 "EGL", |
62 ] | 62 ] |
63 configs += [ "//remoting/build/config:enable_webrtc_remoting_client" ] | 63 configs += [ "//remoting/build/config:enable_webrtc_remoting_client" ] |
64 assert_no_deps = [ "//third_party/ffmpeg:*" ] | 64 assert_no_deps = [ "//third_party/ffmpeg:*" ] |
65 } | 65 } |
66 | 66 |
67 action("credits") { | |
68 credits_html_file = "$target_gen_dir/credits.html" | |
69 script = "//tools/licenses.py" | |
70 depfile = "$target_gen_dir/$target_name.d" | |
71 credits_template = "//remoting/credits/credits.tmpl" | |
72 credits_entry_template = "//remoting/credits/credits_entry.tmpl" | |
73 inputs = [ | |
74 credits_template, | |
75 credits_entry_template, | |
76 ] | |
77 outputs = [ | |
78 credits_html_file, | |
79 ] | |
80 args = [ | |
81 "credits", | |
82 rebase_path(credits_html_file, root_build_dir), | |
83 "--file-template", | |
84 rebase_path(credits_template, root_build_dir), | |
85 "--entry-template", | |
86 rebase_path(credits_entry_template, root_build_dir), | |
87 "--depfile", | |
88 rebase_path(depfile, root_build_dir), | |
89 "--gn-target", | |
90 "//remoting/android:remoting_apk", | |
91 "--gn-out-dir", | |
92 rebase_path(root_build_dir), | |
93 ] | |
94 } | |
95 | |
96 _raw_resources_base_dir = "$target_gen_dir/remoting_android_raw_resources/res" | 67 _raw_resources_base_dir = "$target_gen_dir/remoting_android_raw_resources/res" |
97 copy("remoting_android_raw_resources") { | 68 copy("remoting_android_raw_resources") { |
98 _credits_html = get_label_info("//remoting/android:credits", | 69 _credits_html = get_label_info("//remoting/webapp:credits", |
99 "target_gen_dir") + "/credits.html" | 70 "target_gen_dir") + "/credits.html" |
100 sources = [ | 71 sources = [ |
101 "//remoting/credits/credits_css.css", | 72 "//remoting/webapp/base/html/credits_css.css", |
102 "//remoting/credits/credits_js.js", | 73 "//remoting/webapp/base/html/main.css", |
| 74 "//remoting/webapp/base/js/credits_js.js", |
103 _credits_html, | 75 _credits_html, |
104 ] | 76 ] |
105 outputs = [ | 77 outputs = [ |
106 "$_raw_resources_base_dir/raw/{{source_file_part}}", | 78 "$_raw_resources_base_dir/raw/{{source_file_part}}", |
107 ] | 79 ] |
108 deps = [ | 80 deps = [ |
109 ":credits", | 81 "//remoting/webapp:credits", |
110 ] | 82 ] |
111 } | 83 } |
112 | 84 |
113 remoting_localize("remoting_apk_manifest") { | 85 remoting_localize("remoting_apk_manifest") { |
114 sources = [ | 86 sources = [ |
115 "java/AndroidManifest.xml.jinja2", | 87 "java/AndroidManifest.xml.jinja2", |
116 ] | 88 ] |
117 locales = [ "en" ] | 89 locales = [ "en" ] |
118 variables = [ rebase_path(branding_path) ] | 90 variables = [ rebase_path(branding_path) ] |
119 output = "$root_gen_dir/remoting/android/{{source_name_part}}" | 91 output = "$root_gen_dir/remoting/android/{{source_name_part}}" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 "javatests/src/org/chromium/chromoting/TouchInputStrategyTest.java", | 143 "javatests/src/org/chromium/chromoting/TouchInputStrategyTest.java", |
172 "javatests/src/org/chromium/chromoting/test/util/MutableReference.java", | 144 "javatests/src/org/chromium/chromoting/test/util/MutableReference.java", |
173 ] | 145 ] |
174 deps = [ | 146 deps = [ |
175 ":remoting_android_client_java", | 147 ":remoting_android_client_java", |
176 "//base:base_java", | 148 "//base:base_java", |
177 "//base:base_java_test_support", | 149 "//base:base_java_test_support", |
178 "//third_party/android_support_test_runner:runner_java", | 150 "//third_party/android_support_test_runner:runner_java", |
179 ] | 151 ] |
180 } | 152 } |
OLD | NEW |