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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 deps = [ | 63 deps = [ |
64 "//remoting/webapp:credits", | 64 "//remoting/webapp:credits", |
65 ] | 65 ] |
66 } | 66 } |
67 | 67 |
68 remoting_localize("remoting_apk_manifest") { | 68 remoting_localize("remoting_apk_manifest") { |
69 sources = [ | 69 sources = [ |
70 "java/AndroidManifest.xml.jinja2", | 70 "java/AndroidManifest.xml.jinja2", |
71 ] | 71 ] |
72 locales = [ "en" ] | 72 locales = [ "en" ] |
73 defines = [ "ENABLE_CARDBOARD=$enable_cardboard" ] | 73 if (remoting_enable_cardboard) { |
| 74 defines = [ "ENABLE_CARDBOARD=1" ] |
| 75 } else { |
| 76 defines = [ "ENABLE_CARDBOARD=0" ] |
| 77 } |
74 variables = [ branding_path ] | 78 variables = [ branding_path ] |
75 output = "$root_gen_dir/remoting/android/{{source_name_part}}" | 79 output = "$root_gen_dir/remoting/android/{{source_name_part}}" |
76 } | 80 } |
77 | 81 |
78 android_resources("remoting_android_client_java_resources") { | 82 android_resources("remoting_android_client_java_resources") { |
79 custom_package = "org.chromium.chromoting" | 83 custom_package = "org.chromium.chromoting" |
80 resource_dirs = [ "java/res" ] | 84 resource_dirs = [ "java/res" ] |
81 generated_resource_dirs = [ _raw_resources_base_dir ] | 85 generated_resource_dirs = [ _raw_resources_base_dir ] |
82 generated_resource_files = | 86 generated_resource_files = |
83 get_target_outputs(":remoting_android_raw_resources") | 87 get_target_outputs(":remoting_android_raw_resources") |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 apk_name = "ChromotingTest" | 137 apk_name = "ChromotingTest" |
134 apk_under_test = ":remoting_apk" | 138 apk_under_test = ":remoting_apk" |
135 DEPRECATED_java_in_dir = "javatests/src" | 139 DEPRECATED_java_in_dir = "javatests/src" |
136 deps = [ | 140 deps = [ |
137 ":remoting_android_client_java", | 141 ":remoting_android_client_java", |
138 ":remoting_test_apk_manifest", | 142 ":remoting_test_apk_manifest", |
139 "//base:base_java", | 143 "//base:base_java", |
140 "//base:base_java_test_support", | 144 "//base:base_java_test_support", |
141 ] | 145 ] |
142 } | 146 } |
OLD | NEW |