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

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

Issue 457193002: Port r288424 to gn. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reb Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « build/common.gypi ('k') | build/config/compiler/BUILD.gn » ('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 declare_args() { 8 declare_args() {
9 # Absolute directory containing the Android source code. 9 # Absolute directory containing the Android source code.
10 android_src = "" 10 android_src = ""
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 # a "bin" directory inside of these. 80 # a "bin" directory inside of these.
81 _android_toolchain_version = "4.8" 81 _android_toolchain_version = "4.8"
82 x86_android_toolchain_root = "$android_ndk_root/toolchains/x86-${_android_tool chain_version}/prebuilt/${android_host_os}-${android_host_arch}" 82 x86_android_toolchain_root = "$android_ndk_root/toolchains/x86-${_android_tool chain_version}/prebuilt/${android_host_os}-${android_host_arch}"
83 arm_android_toolchain_root = "$android_ndk_root/toolchains/arm-linux-androidea bi-${_android_toolchain_version}/prebuilt/${android_host_os}-${android_host_arch }" 83 arm_android_toolchain_root = "$android_ndk_root/toolchains/arm-linux-androidea bi-${_android_toolchain_version}/prebuilt/${android_host_os}-${android_host_arch }"
84 mips_android_toolchain_root = "$android_ndk_root/toolchains/mipsel-linux-andro id-${_android_toolchain_version}/prebuilt/${android_host_os}-${android_host_arch }" 84 mips_android_toolchain_root = "$android_ndk_root/toolchains/mipsel-linux-andro id-${_android_toolchain_version}/prebuilt/${android_host_os}-${android_host_arch }"
85 85
86 # Location of libgcc. This is only needed for the current GN toolchain, so we 86 # Location of libgcc. This is only needed for the current GN toolchain, so we
87 # only need to define the current one, rather than one for every platform 87 # only need to define the current one, rather than one for every platform
88 # like the toolchain roots. 88 # like the toolchain roots.
89 if (cpu_arch == "x86") { 89 if (cpu_arch == "x86") {
90 android_toolchain_root = "$x86_android_toolchain_root"
90 android_libgcc_file = 91 android_libgcc_file =
91 "$x86_android_toolchain_root/lib/gcc/i686-linux-android/${_android_toolcha in_version}/libgcc.a" 92 "$android_toolchain_root/lib/gcc/i686-linux-android/${_android_toolchain_v ersion}/libgcc.a"
92 } else if (cpu_arch == "arm") { 93 } else if (cpu_arch == "arm") {
94 android_toolchain_root = "$arm_android_toolchain_root"
93 android_libgcc_file = 95 android_libgcc_file =
94 "$arm_android_toolchain_root/lib/gcc/arm-linux-androideabi/${_android_tool chain_version}/libgcc.a" 96 "$android_toolchain_root/lib/gcc/arm-linux-androideabi/${_android_toolchai n_version}/libgcc.a"
95 } else if (cpu_arch == "mipsel") { 97 } else if (cpu_arch == "mipsel") {
98 android_toolchain_root = "$mips_android_toolchain_root"
96 android_libgcc_file = 99 android_libgcc_file =
97 "$mips_android_toolchain_root/lib/gcc/mipsel-linux-android/${_android_tool chain_version}/libgcc.a" 100 "$android_toolchain_root/lib/gcc/mipsel-linux-android/${_android_toolchain _version}/libgcc.a"
98 } else { 101 } else {
99 assert(false, "Need android libgcc support for your target arch.") 102 assert(false, "Need android libgcc support for your target arch.")
100 } 103 }
101 104
102 # stlport stuff -------------------------------------------------------------- 105 # stlport stuff --------------------------------------------------------------
103 106
104 use_system_stlport = is_android_webview_build 107 use_system_stlport = is_android_webview_build
105 108
106 if (use_system_stlport) { 109 if (use_system_stlport) {
107 android_stlport_library = "stlport" 110 android_stlport_library = "stlport"
(...skipping 18 matching lines...) Expand all
126 android_app_abi = "mips" 129 android_app_abi = "mips"
127 } else { 130 } else {
128 assert(false, "Unknown Android ABI: " + cpu_arch) 131 assert(false, "Unknown Android ABI: " + cpu_arch)
129 } 132 }
130 } else { 133 } else {
131 if (!defined(is_android_webview_build)) { 134 if (!defined(is_android_webview_build)) {
132 is_android_webview_build = false 135 is_android_webview_build = false
133 } 136 }
134 use_system_stlport = false 137 use_system_stlport = false
135 } 138 }
OLDNEW
« no previous file with comments | « build/common.gypi ('k') | build/config/compiler/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698