OLD | NEW |
1 # Copyright 2012 the V8 project authors. All rights reserved. | 1 # Copyright 2012 the V8 project authors. All rights reserved. |
2 # Redistribution and use in source and binary forms, with or without | 2 # Redistribution and use in source and binary forms, with or without |
3 # modification, are permitted provided that the following conditions are | 3 # modification, are permitted provided that the following conditions are |
4 # met: | 4 # met: |
5 # | 5 # |
6 # * Redistributions of source code must retain the above copyright | 6 # * Redistributions of source code must retain the above copyright |
7 # notice, this list of conditions and the following disclaimer. | 7 # notice, this list of conditions and the following disclaimer. |
8 # * Redistributions in binary form must reproduce the above | 8 # * Redistributions in binary form must reproduce the above |
9 # copyright notice, this list of conditions and the following | 9 # copyright notice, this list of conditions and the following |
10 # disclaimer in the documentation and/or other materials provided | 10 # disclaimer in the documentation and/or other materials provided |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 'variables': { | 215 'variables': { |
216 # The Android toolchain needs to use the absolute path to the NDK | 216 # The Android toolchain needs to use the absolute path to the NDK |
217 # because it is used at different levels in the GYP files. | 217 # because it is used at different levels in the GYP files. |
218 'android_ndk_root%': '<!(cd <(DEPTH) && pwd -P)/third_party/android_
tools/ndk/', | 218 'android_ndk_root%': '<!(cd <(DEPTH) && pwd -P)/third_party/android_
tools/ndk/', |
219 'android_host_arch%': "<!(uname -m | sed -e 's/i[3456]86/x86/')", | 219 'android_host_arch%': "<!(uname -m | sed -e 's/i[3456]86/x86/')", |
220 'host_os%': "<!(uname -s | sed -e 's/Linux/linux/;s/Darwin/mac/')", | 220 'host_os%': "<!(uname -s | sed -e 's/Linux/linux/;s/Darwin/mac/')", |
221 }, | 221 }, |
222 | 222 |
223 # Copy conditionally-set variables out one scope. | 223 # Copy conditionally-set variables out one scope. |
224 'android_ndk_root%': '<(android_ndk_root)', | 224 'android_ndk_root%': '<(android_ndk_root)', |
| 225 'host_os%': '<(host_os)', |
225 | 226 |
226 'conditions': [ | 227 'conditions': [ |
227 ['target_arch == "ia32"', { | 228 ['target_arch == "ia32"', { |
228 'android_toolchain%': '<(android_ndk_root)/toolchains/x86-4.9/preb
uilt/<(host_os)-<(android_host_arch)/bin', | 229 'android_toolchain%': '<(android_ndk_root)/toolchains/x86-4.9/preb
uilt/<(host_os)-<(android_host_arch)/bin', |
| 230 'android_target_arch%': 'x86', |
| 231 'android_target_platform%': '16', |
229 }], | 232 }], |
230 ['target_arch == "x64"', { | 233 ['target_arch == "x64"', { |
231 'android_toolchain%': '<(android_ndk_root)/toolchains/x86_64-4.9/p
rebuilt/<(host_os)-<(android_host_arch)/bin', | 234 'android_toolchain%': '<(android_ndk_root)/toolchains/x86_64-4.9/p
rebuilt/<(host_os)-<(android_host_arch)/bin', |
| 235 'android_target_arch%': 'x86_64', |
| 236 'android_target_platform%': '21', |
232 }], | 237 }], |
233 ['target_arch=="arm"', { | 238 ['target_arch=="arm"', { |
234 'android_toolchain%': '<(android_ndk_root)/toolchains/arm-linux-an
droideabi-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin', | 239 'android_toolchain%': '<(android_ndk_root)/toolchains/arm-linux-an
droideabi-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin', |
| 240 'android_target_arch%': 'arm', |
| 241 'android_target_platform%': '16', |
| 242 'arm_version%': 7, |
235 }], | 243 }], |
236 ['target_arch == "arm64"', { | 244 ['target_arch == "arm64"', { |
237 'android_toolchain%': '<(android_ndk_root)/toolchains/aarch64-linu
x-android-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin', | 245 'android_toolchain%': '<(android_ndk_root)/toolchains/aarch64-linu
x-android-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin', |
| 246 'android_target_arch%': 'arm64', |
| 247 'android_target_platform%': '21', |
| 248 'arm_version%': 'default', |
238 }], | 249 }], |
239 ['target_arch == "mipsel"', { | 250 ['target_arch == "mipsel"', { |
240 'android_toolchain%': '<(android_ndk_root)/toolchains/mipsel-linux
-android-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin', | 251 'android_toolchain%': '<(android_ndk_root)/toolchains/mipsel-linux
-android-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin', |
| 252 'android_target_arch%': 'mips', |
| 253 'android_target_platform%': '16', |
241 }], | 254 }], |
242 ['target_arch == "mips64el"', { | 255 ['target_arch == "mips64el"', { |
243 'android_toolchain%': '<(android_ndk_root)/toolchains/mips64el-lin
ux-android-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin', | 256 'android_toolchain%': '<(android_ndk_root)/toolchains/mips64el-lin
ux-android-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin', |
| 257 'android_target_arch%': 'mips64', |
| 258 'android_target_platform%': '21', |
244 }], | 259 }], |
245 ], | 260 ], |
246 }, | 261 }, |
247 | 262 |
248 # Copy conditionally-set variables out one scope. | 263 # Copy conditionally-set variables out one scope. |
| 264 'android_target_arch%': '<(android_target_arch)', |
| 265 'android_target_platform%': '<(android_target_platform)', |
249 'android_toolchain%': '<(android_toolchain)', | 266 'android_toolchain%': '<(android_toolchain)', |
| 267 'arm_version%': '<(arm_version)', |
| 268 'host_os%': '<(host_os)', |
250 | 269 |
251 'conditions': [ | 270 'conditions': [ |
252 ['android_ndk_root==""', { | 271 ['android_ndk_root==""', { |
253 'variables': { | 272 'variables': { |
254 'android_sysroot': '<(android_toolchain)/sysroot/', | 273 'android_sysroot': '<(android_toolchain)/sysroot/', |
255 'android_stlport': '<(android_toolchain)/sources/cxx-stl/stlport/'
, | 274 'android_stlport': '<(android_toolchain)/sources/cxx-stl/stlport/'
, |
256 }, | 275 }, |
257 'android_include': '<(android_sysroot)/usr/include', | 276 'android_include': '<(android_sysroot)/usr/include', |
258 'conditions': [ | 277 'conditions': [ |
259 ['target_arch=="x64"', { | 278 ['target_arch=="x64"', { |
(...skipping 25 matching lines...) Expand all Loading... |
285 }], # OS=="android" | 304 }], # OS=="android" |
286 ['host_clang==1', { | 305 ['host_clang==1', { |
287 'host_cc': '../<(clang_dir)/bin/clang', | 306 'host_cc': '../<(clang_dir)/bin/clang', |
288 'host_cxx': '../<(clang_dir)/bin/clang++', | 307 'host_cxx': '../<(clang_dir)/bin/clang++', |
289 }, { | 308 }, { |
290 'host_cc': '<!(which gcc)', | 309 'host_cc': '<!(which gcc)', |
291 'host_cxx': '<!(which g++)', | 310 'host_cxx': '<!(which g++)', |
292 }], | 311 }], |
293 ], | 312 ], |
294 # Default ARM variable settings. | 313 # Default ARM variable settings. |
295 'arm_version%': 'default', | |
296 'arm_fpu%': 'vfpv3', | 314 'arm_fpu%': 'vfpv3', |
297 'arm_float_abi%': 'default', | 315 'arm_float_abi%': 'default', |
298 'arm_thumb': 'default', | 316 'arm_thumb': 'default', |
299 | 317 |
300 # Default MIPS variable settings. | 318 # Default MIPS variable settings. |
301 'mips_arch_variant%': 'r2', | 319 'mips_arch_variant%': 'r2', |
302 # Possible values fp32, fp64, fpxx. | 320 # Possible values fp32, fp64, fpxx. |
303 # fp32 - 32 32-bit FPU registers are available, doubles are placed in | 321 # fp32 - 32 32-bit FPU registers are available, doubles are placed in |
304 # register pairs. | 322 # register pairs. |
305 # fp64 - 32 64-bit FPU registers are available. | 323 # fp64 - 32 64-bit FPU registers are available. |
306 # fpxx - compatibility mode, it chooses fp32 or fp64 depending on runtime | 324 # fpxx - compatibility mode, it chooses fp32 or fp64 depending on runtime |
307 # detection | 325 # detection |
308 'mips_fpu_mode%': 'fp32', | 326 'mips_fpu_mode%': 'fp32', |
309 }, | 327 }, |
310 'target_defaults': { | 328 'target_defaults': { |
311 'variables': { | 329 'variables': { |
312 'v8_code%': '<(v8_code)', | 330 'v8_code%': '<(v8_code)', |
| 331 'conditions':[ |
| 332 ['OS=="android"', { |
| 333 'host_os%': '<(host_os)', |
| 334 }], |
| 335 ], |
313 }, | 336 }, |
314 'default_configuration': 'Debug', | 337 'default_configuration': 'Debug', |
315 'configurations': { | 338 'configurations': { |
316 'DebugBaseCommon': { | 339 'DebugBaseCommon': { |
317 'conditions': [ | 340 'conditions': [ |
318 ['OS=="aix"', { | 341 ['OS=="aix"', { |
319 'cflags': [ '-g', '-Og', '-gxcoff' ], | 342 'cflags': [ '-g', '-Og', '-gxcoff' ], |
320 }, { | 343 }, { |
321 'cflags': [ '-g', '-O0' ], | 344 'cflags': [ '-g', '-O0' ], |
322 }], | 345 }], |
(...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1015 ['use_goma==1 and ("<(GENERATOR)"=="ninja" or clang==1)', { | 1038 ['use_goma==1 and ("<(GENERATOR)"=="ninja" or clang==1)', { |
1016 'make_global_settings': [ | 1039 'make_global_settings': [ |
1017 ['CC_wrapper', '<(gomadir)/gomacc'], | 1040 ['CC_wrapper', '<(gomadir)/gomacc'], |
1018 ['CXX_wrapper', '<(gomadir)/gomacc'], | 1041 ['CXX_wrapper', '<(gomadir)/gomacc'], |
1019 ['CC.host_wrapper', '<(gomadir)/gomacc'], | 1042 ['CC.host_wrapper', '<(gomadir)/gomacc'], |
1020 ['CXX.host_wrapper', '<(gomadir)/gomacc'], | 1043 ['CXX.host_wrapper', '<(gomadir)/gomacc'], |
1021 ], | 1044 ], |
1022 }], | 1045 }], |
1023 ], | 1046 ], |
1024 } | 1047 } |
OLD | NEW |