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") { | |
Lambros
2017/03/02 20:33:00
If it helps reviewing, this section is based off o
| |
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 | |
67 _raw_resources_base_dir = "$target_gen_dir/remoting_android_raw_resources/res" | 96 _raw_resources_base_dir = "$target_gen_dir/remoting_android_raw_resources/res" |
68 copy("remoting_android_raw_resources") { | 97 copy("remoting_android_raw_resources") { |
69 _credits_html = get_label_info("//remoting/webapp:credits", | 98 _credits_html = get_label_info("//remoting/android:credits", |
70 "target_gen_dir") + "/credits.html" | 99 "target_gen_dir") + "/credits.html" |
71 sources = [ | 100 sources = [ |
72 "//remoting/webapp/base/html/credits_css.css", | 101 "//remoting/credits/credits_css.css", |
73 "//remoting/webapp/base/html/main.css", | 102 "//remoting/credits/credits_js.js", |
74 "//remoting/webapp/base/js/credits_js.js", | 103 "//remoting/credits/main.css", |
Jamie
2017/03/02 18:37:01
Is it worth splitting the CSS into two files? IIRC
Lambros
2017/03/03 01:53:16
Removed main.css and moved some styles into credit
| |
75 _credits_html, | 104 _credits_html, |
76 ] | 105 ] |
77 outputs = [ | 106 outputs = [ |
78 "$_raw_resources_base_dir/raw/{{source_file_part}}", | 107 "$_raw_resources_base_dir/raw/{{source_file_part}}", |
79 ] | 108 ] |
80 deps = [ | 109 deps = [ |
81 "//remoting/webapp:credits", | 110 ":credits", |
82 ] | 111 ] |
83 } | 112 } |
84 | 113 |
85 remoting_localize("remoting_apk_manifest") { | 114 remoting_localize("remoting_apk_manifest") { |
86 sources = [ | 115 sources = [ |
87 "java/AndroidManifest.xml.jinja2", | 116 "java/AndroidManifest.xml.jinja2", |
88 ] | 117 ] |
89 locales = [ "en" ] | 118 locales = [ "en" ] |
90 variables = [ rebase_path(branding_path) ] | 119 variables = [ rebase_path(branding_path) ] |
91 output = "$root_gen_dir/remoting/android/{{source_name_part}}" | 120 output = "$root_gen_dir/remoting/android/{{source_name_part}}" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
143 "javatests/src/org/chromium/chromoting/TouchInputStrategyTest.java", | 172 "javatests/src/org/chromium/chromoting/TouchInputStrategyTest.java", |
144 "javatests/src/org/chromium/chromoting/test/util/MutableReference.java", | 173 "javatests/src/org/chromium/chromoting/test/util/MutableReference.java", |
145 ] | 174 ] |
146 deps = [ | 175 deps = [ |
147 ":remoting_android_client_java", | 176 ":remoting_android_client_java", |
148 "//base:base_java", | 177 "//base:base_java", |
149 "//base:base_java_test_support", | 178 "//base:base_java_test_support", |
150 "//third_party/android_support_test_runner:runner_java", | 179 "//third_party/android_support_test_runner:runner_java", |
151 ] | 180 ] |
152 } | 181 } |
OLD | NEW |