OLD | NEW |
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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 | 69 |
70 # Location of libgcc. This is only needed for the current GN toolchain, so we | 70 # Location of libgcc. This is only needed for the current GN toolchain, so we |
71 # only need to define the current one, rather than one for every platform | 71 # only need to define the current one, rather than one for every platform |
72 # like the toolchain roots. | 72 # like the toolchain roots. |
73 if (cpu_arch == "x86") { | 73 if (cpu_arch == "x86") { |
74 android_libgcc_file = | 74 android_libgcc_file = |
75 "$x86_android_toolchain_root/lib/gcc/i686-linux-android/${_android_toolcha
in_version}/libgcc.a" | 75 "$x86_android_toolchain_root/lib/gcc/i686-linux-android/${_android_toolcha
in_version}/libgcc.a" |
76 } else if (cpu_arch == "arm") { | 76 } else if (cpu_arch == "arm") { |
77 android_libgcc_file = | 77 android_libgcc_file = |
78 "$arm_android_toolchain_root/lib/gcc/arm-linux-androideabi/${_android_tool
chain_version}/libgcc.a" | 78 "$arm_android_toolchain_root/lib/gcc/arm-linux-androideabi/${_android_tool
chain_version}/libgcc.a" |
79 } else if (cpu_arch == "mips") { | 79 } else if (cpu_arch == "mipsel") { |
80 android_libgcc_file = | 80 android_libgcc_file = |
81 "$mips_android_toolchain_root/lib/gcc/mipsel-linux-android/${_android_tool
chain_version}/libgcc.a" | 81 "$mips_android_toolchain_root/lib/gcc/mipsel-linux-android/${_android_tool
chain_version}/libgcc.a" |
82 } else { | 82 } else { |
83 assert(false, "Need android libgcc support for your target arch.") | 83 assert(false, "Need android libgcc support for your target arch.") |
84 } | 84 } |
85 | 85 |
86 # stlport stuff -------------------------------------------------------------- | 86 # stlport stuff -------------------------------------------------------------- |
87 | 87 |
88 use_system_stlport = is_android_webview_build | 88 use_system_stlport = is_android_webview_build |
89 | 89 |
(...skipping 20 matching lines...) Expand all Loading... |
110 android_app_abi = "mips" | 110 android_app_abi = "mips" |
111 } else { | 111 } else { |
112 assert(false, "Unknown Android ABI: " + cpu_arch) | 112 assert(false, "Unknown Android ABI: " + cpu_arch) |
113 } | 113 } |
114 } else { | 114 } else { |
115 if (!defined(is_android_webview_build)) { | 115 if (!defined(is_android_webview_build)) { |
116 is_android_webview_build = false | 116 is_android_webview_build = false |
117 } | 117 } |
118 use_system_stlport = false | 118 use_system_stlport = false |
119 } | 119 } |
OLD | NEW |