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

Side by Side Diff: build/android/BUILD.gn

Issue 2130933002: 🎧 Initial version of Android Studio project generation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « no previous file | build/android/build.gradle.jinja » ('j') | build/android/build.gradle.jinja » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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/rules.gni") 5 import("//build/config/android/rules.gni")
6 6
7 if (enable_java_templates) { 7 if (enable_java_templates) {
8 import("//third_party/ijar/ijar.gni") 8 import("//third_party/ijar/ijar.gni")
9 9
10 sun_tools_jar_path = "$root_gen_dir/sun_tools_jar/tools.jar" 10 sun_tools_jar_path = "$root_gen_dir/sun_tools_jar/tools.jar"
(...skipping 23 matching lines...) Expand all
34 34
35 java_prebuilt("sun_tools_java") { 35 java_prebuilt("sun_tools_java") {
36 jar_path = sun_tools_jar_path 36 jar_path = sun_tools_jar_path
37 jar_dep = ":find_sun_tools_jar" 37 jar_dep = ":find_sun_tools_jar"
38 } 38 }
39 39
40 generate_interface_jar("android_ijar") { 40 generate_interface_jar("android_ijar") {
41 input_jar = android_sdk_jar 41 input_jar = android_sdk_jar
42 output_jar = "$root_out_dir/lib.java/android.interface.jar" 42 output_jar = "$root_out_dir/lib.java/android.interface.jar"
43 } 43 }
44
45 _rebased_android_sdk_root = rebase_path(android_sdk_root, root_build_dir)
jbudorick 2016/07/07 22:32:29 Should this be a part of a group or action rather
agrieve 2016/07/08 19:07:28 If we made it its own action, then "gn gen" would
46
47 # Record GN vars that are needed by generate_gradle.py.
48 # One statement per-line to make GN's formatter leave it alone.
49 CR = "$0x0A"
50 _json = "{$CR"
51 _json += " \"android_sdk_root\": \"$_rebased_android_sdk_root\",$CR"
52 _json += " \"android_sdk_root\": \"$_rebased_android_sdk_root\",$CR"
53 _json += " \"compile_sdk_version\": \"$android_sdk_version\",$CR"
54 _json += " \"build_tools_version\": \"$android_sdk_build_tools_version\"$CR"
55 _json += "}$CR"
56 write_file("$root_build_dir/gradle/config.json", _json)
44 } 57 }
45 58
46 # Copy to the lib.unstripped directory so that gdb can easily find it. 59 # Copy to the lib.unstripped directory so that gdb can easily find it.
47 copy("cpplib_unstripped") { 60 copy("cpplib_unstripped") {
48 _soname = "libc++_shared.so" 61 _soname = "libc++_shared.so"
49 sources = [ 62 sources = [
50 "${android_libcpp_lib_dir}/${_soname}", 63 "${android_libcpp_lib_dir}/${_soname}",
51 ] 64 ]
52 outputs = [ 65 outputs = [
53 "${root_out_dir}/lib.unstripped/${_soname}", 66 "${root_out_dir}/lib.unstripped/${_soname}",
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 _target_name = get_path_info(script, "name") + "_wrapper" 147 _target_name = get_path_info(script, "name") + "_wrapper"
135 _wrapper_targets += [ ":$_target_name" ] 148 _wrapper_targets += [ ":$_target_name" ]
136 wrapper_script(_target_name) { 149 wrapper_script(_target_name) {
137 target = script 150 target = script
138 } 151 }
139 } 152 }
140 153
141 group("wrapper_scripts") { 154 group("wrapper_scripts") {
142 deps = _wrapper_targets 155 deps = _wrapper_targets
143 } 156 }
OLDNEW
« no previous file with comments | « no previous file | build/android/build.gradle.jinja » ('j') | build/android/build.gradle.jinja » ('J')

Powered by Google App Engine
This is Rietveld 408576698