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

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

Issue 2858873005: [infra] Roll clang to match the version used by Flutter (Closed)
Patch Set: Fix Mac Android build Created 3 years, 7 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
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 if (!defined(default_android_sdk_root)) { 8 if (!defined(default_android_sdk_root)) {
9 default_android_sdk_root = "//third_party/android_tools/sdk" 9 default_android_sdk_root = "//third_party/android_tools/sdk"
10 default_android_sdk_version = "22" 10 default_android_sdk_version = "22"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 android_sdk_build_tools = 55 android_sdk_build_tools =
56 "${android_sdk_root}/build-tools/$android_sdk_build_tools_version" 56 "${android_sdk_root}/build-tools/$android_sdk_build_tools_version"
57 57
58 # Path to the SDK's android.jar 58 # Path to the SDK's android.jar
59 android_sdk_jar = "$android_sdk/android.jar" 59 android_sdk_jar = "$android_sdk/android.jar"
60 60
61 zipalign_path = "$android_sdk_build_tools/zipalign" 61 zipalign_path = "$android_sdk_build_tools/zipalign"
62 62
63 # Subdirectories inside android_ndk_root that contain the sysroot for the 63 # Subdirectories inside android_ndk_root that contain the sysroot for the
64 # associated platform. 64 # associated platform.
65 _android_api_level = 16 65 if (current_cpu == "x64" || current_cpu == "arm64") {
66 _android_api_level = 22
67 } else {
68 _android_api_level = 16
69 }
66 x86_android_sysroot_subdir = 70 x86_android_sysroot_subdir =
67 "platforms/android-${_android_api_level}/arch-x86" 71 "platforms/android-${_android_api_level}/arch-x86"
68 arm_android_sysroot_subdir = 72 arm_android_sysroot_subdir =
69 "platforms/android-${_android_api_level}/arch-arm" 73 "platforms/android-${_android_api_level}/arch-arm"
70 mips_android_sysroot_subdir = 74 mips_android_sysroot_subdir =
71 "platforms/android-${_android_api_level}/arch-mips" 75 "platforms/android-${_android_api_level}/arch-mips"
72 _android64_api_level = 21
73 x86_64_android_sysroot_subdir = 76 x86_64_android_sysroot_subdir =
74 "platforms/android-${_android64_api_level}/arch-x86_64" 77 "platforms/android-${_android_api_level}/arch-x86_64"
75 arm64_android_sysroot_subdir = 78 arm64_android_sysroot_subdir =
76 "platforms/android-${_android64_api_level}/arch-arm64" 79 "platforms/android-${_android_api_level}/arch-arm64"
77 mips64_android_sysroot_subdir = 80 mips64_android_sysroot_subdir =
78 "platforms/android-${_android64_api_level}/arch-mips64" 81 "platforms/android-${_android_api_level}/arch-mips64"
79 82
80 # Toolchain root directory for each build. The actual binaries are inside 83 # Toolchain root directory for each build. The actual binaries are inside
81 # a "bin" directory inside of these. 84 # a "bin" directory inside of these.
82 _android_toolchain_version = "4.9" 85 _android_toolchain_version = "4.9"
86 _android_toolchain_detailed_version = "4.9.x"
83 x86_android_toolchain_root = "$android_ndk_root/toolchains/x86-${_android_tool chain_version}/prebuilt/${android_host_os}-${android_host_arch}" 87 x86_android_toolchain_root = "$android_ndk_root/toolchains/x86-${_android_tool chain_version}/prebuilt/${android_host_os}-${android_host_arch}"
84 arm_android_toolchain_root = "$android_ndk_root/toolchains/arm-linux-androidea bi-${_android_toolchain_version}/prebuilt/${android_host_os}-${android_host_arch }" 88 arm_android_toolchain_root = "$android_ndk_root/toolchains/arm-linux-androidea bi-${_android_toolchain_version}/prebuilt/${android_host_os}-${android_host_arch }"
85 mips_android_toolchain_root = "$android_ndk_root/toolchains/mipsel-linux-andro id-${_android_toolchain_version}/prebuilt/${android_host_os}-${android_host_arch }" 89 mips_android_toolchain_root = "$android_ndk_root/toolchains/mipsel-linux-andro id-${_android_toolchain_version}/prebuilt/${android_host_os}-${android_host_arch }"
86 x86_64_android_toolchain_root = "$android_ndk_root/toolchains/x86_64-${_androi d_toolchain_version}/prebuilt/${android_host_os}-${android_host_arch}" 90 x86_64_android_toolchain_root = "$android_ndk_root/toolchains/x86_64-${_androi d_toolchain_version}/prebuilt/${android_host_os}-${android_host_arch}"
87 arm64_android_toolchain_root = "$android_ndk_root/toolchains/aarch64-linux-and roid-${_android_toolchain_version}/prebuilt/${android_host_os}-${android_host_ar ch}" 91 arm64_android_toolchain_root = "$android_ndk_root/toolchains/aarch64-linux-and roid-${_android_toolchain_version}/prebuilt/${android_host_os}-${android_host_ar ch}"
88 mips64_android_toolchain_root = "$android_ndk_root/toolchains/mips64el-${_andr oid_toolchain_version}/prebuilt/${android_host_os}-${android_host_arch}" 92 mips64_android_toolchain_root = "$android_ndk_root/toolchains/mips64el-linux-a ndroid-${_android_toolchain_version}/prebuilt/${android_host_os}-${android_host_ arch}"
89 93
90 # Location of libgcc. This is only needed for the current GN toolchain, so we 94 # Location of libgcc. This is only needed for the current GN toolchain, so we
91 # only need to define the current one, rather than one for every platform 95 # only need to define the current one, rather than one for every platform
92 # like the toolchain roots. 96 # like the toolchain roots.
93 if (current_cpu == "x86") { 97 if (current_cpu == "x86") {
94 android_prebuilt_arch = "android-x86" 98 android_prebuilt_arch = "android-x86"
95 _binary_prefix = "i686-linux-android" 99 _binary_prefix = "i686-linux-android"
96 android_toolchain_root = "$x86_android_toolchain_root" 100 android_toolchain_root = "$x86_android_toolchain_root"
97 android_libgcc_file = "$android_toolchain_root/lib/gcc/i686-linux-android/${ _android_toolchain_version}/libgcc.a"
98 } else if (current_cpu == "arm") { 101 } else if (current_cpu == "arm") {
99 android_prebuilt_arch = "android-arm" 102 android_prebuilt_arch = "android-arm"
100 _binary_prefix = "arm-linux-androideabi" 103 _binary_prefix = "arm-linux-androideabi"
101 android_toolchain_root = "$arm_android_toolchain_root" 104 android_toolchain_root = "$arm_android_toolchain_root"
102 android_libgcc_file = "$android_toolchain_root/lib/gcc/arm-linux-androideabi /${_android_toolchain_version}/libgcc.a"
103 } else if (current_cpu == "mipsel") { 105 } else if (current_cpu == "mipsel") {
104 android_prebuilt_arch = "android-mips" 106 android_prebuilt_arch = "android-mips"
105 _binary_prefix = "mipsel-linux-android" 107 _binary_prefix = "mipsel-linux-android"
106 android_toolchain_root = "$mips_android_toolchain_root" 108 android_toolchain_root = "$mips_android_toolchain_root"
107 android_libgcc_file = "$android_toolchain_root/lib/gcc/mipsel-linux-android/ ${_android_toolchain_version}/libgcc.a"
108 } else if (current_cpu == "x64") { 109 } else if (current_cpu == "x64") {
109 android_prebuilt_arch = "android-x86_64" 110 android_prebuilt_arch = "android-x86_64"
110 _binary_prefix = "x86_64-linux-android" 111 _binary_prefix = "x86_64-linux-android"
111 android_toolchain_root = "$x86_64_android_toolchain_root" 112 android_toolchain_root = "$x86_64_android_toolchain_root"
112 android_libgcc_file = "$android_toolchain_root/lib/gcc/x86_64-linux-android/ ${_android_toolchain_version}/libgcc.a"
113 } else if (current_cpu == "arm64") { 113 } else if (current_cpu == "arm64") {
114 android_prebuilt_arch = "android-arm64" 114 android_prebuilt_arch = "android-arm64"
115 _binary_prefix = "aarch64-linux-android" 115 _binary_prefix = "aarch64-linux-android"
116 android_toolchain_root = "$arm64_android_toolchain_root" 116 android_toolchain_root = "$arm64_android_toolchain_root"
117 android_libgcc_file = "$android_toolchain_root/lib/gcc/aarch64-linux-android /${_android_toolchain_version}/libgcc.a"
118 } else if (current_cpu == "mips64el") { 117 } else if (current_cpu == "mips64el") {
119 android_prebuilt_arch = "android-mips64" 118 android_prebuilt_arch = "android-mips64"
120 _binary_prefix = "mips64el-linux-android" 119 _binary_prefix = "mips64el-linux-android"
121 android_toolchain_root = "$mips64_android_toolchain_root" 120 android_toolchain_root = "$mips64_android_toolchain_root"
122 android_libgcc_file = "$android_toolchain_root/lib/gcc/mips64el-linux-androi d/${_android_toolchain_version}/libgcc.a"
123 } else { 121 } else {
124 assert(false, "Need android libgcc support for your target arch.") 122 assert(false, "Need android libgcc support for your target arch.")
125 } 123 }
126 124
127 android_tool_prefix = "$android_toolchain_root/bin/$_binary_prefix-" 125 android_tool_prefix = "$android_toolchain_root/bin/$_binary_prefix-"
128 android_readelf = "${android_tool_prefix}readelf" 126 android_readelf = "${android_tool_prefix}readelf"
129 android_objcopy = "${android_tool_prefix}objcopy" 127 android_objcopy = "${android_tool_prefix}objcopy"
130 android_gdbserver = 128 android_gdbserver =
131 "$android_ndk_root/prebuilt/$android_prebuilt_arch/gdbserver/gdbserver" 129 "$android_ndk_root/prebuilt/$android_prebuilt_arch/gdbserver/gdbserver"
132 130
(...skipping 30 matching lines...) Expand all
163 } else if (current_cpu == "x64") { 161 } else if (current_cpu == "x64") {
164 android_app_abi = "x86_64" 162 android_app_abi = "x86_64"
165 } else if (current_cpu == "arm64") { 163 } else if (current_cpu == "arm64") {
166 android_app_abi = "arm64-v8a" 164 android_app_abi = "arm64-v8a"
167 } else if (current_cpu == "mips64el") { 165 } else if (current_cpu == "mips64el") {
168 android_app_abi = "mips64" 166 android_app_abi = "mips64"
169 } else { 167 } else {
170 assert(false, "Unknown Android ABI: " + current_cpu) 168 assert(false, "Unknown Android ABI: " + current_cpu)
171 } 169 }
172 170
173 android_log_tag = "\"flutter\"" 171 android_log_tag = "\"dart\""
174 } 172 }
OLDNEW
« no previous file with comments | « DEPS ('k') | build/config/compiler/BUILD.gn » ('j') | tools/buildtools/linux64/clang-format » ('J')

Powered by Google App Engine
This is Rietveld 408576698