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

Side by Side Diff: build/config/android/config.gni

Issue 774353003: gn format // (the rest) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase net Created 6 years 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 | « breakpad/BUILD.gn ('k') | build/config/android/internal_rules.gni » ('j') | no next file with comments »
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 # This file contains common system config stuff for the Android build. 5 # This file contains common system config stuff for the Android build.
6 6
7 if (is_android) { 7 if (is_android) {
8 has_chrome_android_internal = 8 has_chrome_android_internal =
9 exec_script("//build/dir_exists.py", 9 exec_script("//build/dir_exists.py",
10 [ rebase_path("//clank", root_build_dir) ], 10 [ rebase_path("//clank", root_build_dir) ],
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 x86_android_sysroot_subdir = 88 x86_android_sysroot_subdir =
89 "platforms/android-${_android_api_level}/arch-x86" 89 "platforms/android-${_android_api_level}/arch-x86"
90 arm_android_sysroot_subdir = 90 arm_android_sysroot_subdir =
91 "platforms/android-${_android_api_level}/arch-arm" 91 "platforms/android-${_android_api_level}/arch-arm"
92 mips_android_sysroot_subdir = 92 mips_android_sysroot_subdir =
93 "platforms/android-${_android_api_level}/arch-mips" 93 "platforms/android-${_android_api_level}/arch-mips"
94 94
95 # Toolchain root directory for each build. The actual binaries are inside 95 # Toolchain root directory for each build. The actual binaries are inside
96 # a "bin" directory inside of these. 96 # a "bin" directory inside of these.
97 _android_toolchain_version = "4.9" 97 _android_toolchain_version = "4.9"
98 x86_android_toolchain_root = 98 x86_android_toolchain_root = "$android_ndk_root/toolchains/x86-${_android_tool chain_version}/prebuilt/${android_host_os}-${android_host_arch}"
99 "$android_ndk_root/toolchains/x86-${_android_toolchain_version}/prebuilt/$ {android_host_os}-${android_host_arch}" 99 arm_android_toolchain_root = "$android_ndk_root/toolchains/arm-linux-androidea bi-${_android_toolchain_version}/prebuilt/${android_host_os}-${android_host_arch }"
100 arm_android_toolchain_root = 100 mips_android_toolchain_root = "$android_ndk_root/toolchains/mipsel-linux-andro id-${_android_toolchain_version}/prebuilt/${android_host_os}-${android_host_arch }"
101 "$android_ndk_root/toolchains/arm-linux-androideabi-${_android_toolchain_v ersion}/prebuilt/${android_host_os}-${android_host_arch}"
102 mips_android_toolchain_root =
103 "$android_ndk_root/toolchains/mipsel-linux-android-${_android_toolchain_ve rsion}/prebuilt/${android_host_os}-${android_host_arch}"
104 101
105 # Location of libgcc. This is only needed for the current GN toolchain, so we 102 # Location of libgcc. This is only needed for the current GN toolchain, so we
106 # only need to define the current one, rather than one for every platform 103 # only need to define the current one, rather than one for every platform
107 # like the toolchain roots. 104 # like the toolchain roots.
108 if (cpu_arch == "x86") { 105 if (cpu_arch == "x86") {
109 android_prebuilt_arch = "android-x86" 106 android_prebuilt_arch = "android-x86"
110 _binary_prefix = "i686-linux-android" 107 _binary_prefix = "i686-linux-android"
111 android_toolchain_root = "$x86_android_toolchain_root" 108 android_toolchain_root = "$x86_android_toolchain_root"
112 android_libgcc_file = 109 android_libgcc_file = "$android_toolchain_root/lib/gcc/i686-linux-android/${ _android_toolchain_version}/libgcc.a"
113 "$android_toolchain_root/lib/gcc/i686-linux-android/${_android_toolchain _version}/libgcc.a"
114 } else if (cpu_arch == "arm") { 110 } else if (cpu_arch == "arm") {
115 android_prebuilt_arch = "android-arm" 111 android_prebuilt_arch = "android-arm"
116 _binary_prefix = "arm-linux-androideabi" 112 _binary_prefix = "arm-linux-androideabi"
117 android_toolchain_root = "$arm_android_toolchain_root" 113 android_toolchain_root = "$arm_android_toolchain_root"
118 android_libgcc_file = 114 android_libgcc_file = "$android_toolchain_root/lib/gcc/arm-linux-androideabi /${_android_toolchain_version}/libgcc.a"
119 "$android_toolchain_root/lib/gcc/arm-linux-androideabi/${_android_toolch ain_version}/libgcc.a"
120 } else if (cpu_arch == "mipsel") { 115 } else if (cpu_arch == "mipsel") {
121 android_prebuilt_arch = "android-mips" 116 android_prebuilt_arch = "android-mips"
122 _binary_prefix = "mipsel-linux-android" 117 _binary_prefix = "mipsel-linux-android"
123 android_toolchain_root = "$mips_android_toolchain_root" 118 android_toolchain_root = "$mips_android_toolchain_root"
124 android_libgcc_file = 119 android_libgcc_file = "$android_toolchain_root/lib/gcc/mipsel-linux-android/ ${_android_toolchain_version}/libgcc.a"
125 "$android_toolchain_root/lib/gcc/mipsel-linux-android/${_android_toolcha in_version}/libgcc.a"
126 } else { 120 } else {
127 assert(false, "Need android libgcc support for your target arch.") 121 assert(false, "Need android libgcc support for your target arch.")
128 } 122 }
129 123
130 android_tool_prefix = "$android_toolchain_root/bin/$_binary_prefix-" 124 android_tool_prefix = "$android_toolchain_root/bin/$_binary_prefix-"
131 android_readelf = "${android_tool_prefix}readelf" 125 android_readelf = "${android_tool_prefix}readelf"
132 android_objcopy = "${android_tool_prefix}objcopy" 126 android_objcopy = "${android_tool_prefix}objcopy"
133 android_gdbserver = 127 android_gdbserver =
134 "$android_ndk_root/prebuilt/$android_prebuilt_arch/gdbserver/gdbserver" 128 "$android_ndk_root/prebuilt/$android_prebuilt_arch/gdbserver/gdbserver"
135 129
(...skipping 19 matching lines...) Expand all
155 } else if (cpu_arch == "mipsel") { 149 } else if (cpu_arch == "mipsel") {
156 android_app_abi = "mips" 150 android_app_abi = "mips"
157 } else { 151 } else {
158 assert(false, "Unknown Android ABI: " + cpu_arch) 152 assert(false, "Unknown Android ABI: " + cpu_arch)
159 } 153 }
160 } else { 154 } else {
161 if (!defined(is_android_webview_build)) { 155 if (!defined(is_android_webview_build)) {
162 is_android_webview_build = false 156 is_android_webview_build = false
163 } 157 }
164 } 158 }
OLDNEW
« no previous file with comments | « breakpad/BUILD.gn ('k') | build/config/android/internal_rules.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698