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 |
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", | |
75 _credits_html, | 103 _credits_html, |
76 ] | 104 ] |
77 outputs = [ | 105 outputs = [ |
78 "$_raw_resources_base_dir/raw/{{source_file_part}}", | 106 "$_raw_resources_base_dir/raw/{{source_file_part}}", |
79 ] | 107 ] |
80 deps = [ | 108 deps = [ |
81 "//remoting/webapp:credits", | 109 ":credits", |
82 ] | 110 ] |
83 } | 111 } |
84 | 112 |
85 remoting_localize("remoting_apk_manifest") { | 113 remoting_localize("remoting_apk_manifest") { |
86 sources = [ | 114 sources = [ |
87 "java/AndroidManifest.xml.jinja2", | 115 "java/AndroidManifest.xml.jinja2", |
88 ] | 116 ] |
89 locales = [ "en" ] | 117 locales = [ "en" ] |
90 variables = [ rebase_path(branding_path) ] | 118 variables = [ rebase_path(branding_path) ] |
91 output = "$root_gen_dir/remoting/android/{{source_name_part}}" | 119 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", | 171 "javatests/src/org/chromium/chromoting/TouchInputStrategyTest.java", |
144 "javatests/src/org/chromium/chromoting/test/util/MutableReference.java", | 172 "javatests/src/org/chromium/chromoting/test/util/MutableReference.java", |
145 ] | 173 ] |
146 deps = [ | 174 deps = [ |
147 ":remoting_android_client_java", | 175 ":remoting_android_client_java", |
148 "//base:base_java", | 176 "//base:base_java", |
149 "//base:base_java_test_support", | 177 "//base:base_java_test_support", |
150 "//third_party/android_support_test_runner:runner_java", | 178 "//third_party/android_support_test_runner:runner_java", |
151 ] | 179 ] |
152 } | 180 } |
OLD | NEW |