| 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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 'use_lto%': 1, | 247 'use_lto%': 1, |
| 248 }], | 248 }], |
| 249 ['OS=="android"', { | 249 ['OS=="android"', { |
| 250 # Location of Android NDK. | 250 # Location of Android NDK. |
| 251 'variables': { | 251 'variables': { |
| 252 'variables': { | 252 'variables': { |
| 253 # The Android toolchain needs to use the absolute path to the NDK | 253 # The Android toolchain needs to use the absolute path to the NDK |
| 254 # because it is used at different levels in the GYP files. | 254 # because it is used at different levels in the GYP files. |
| 255 'android_ndk_root%': '<(base_dir)/third_party/android_tools/ndk/', | 255 'android_ndk_root%': '<(base_dir)/third_party/android_tools/ndk/', |
| 256 'android_host_arch%': "<!(uname -m | sed -e 's/i[3456]86/x86/')", | 256 'android_host_arch%': "<!(uname -m | sed -e 's/i[3456]86/x86/')", |
| 257 # Version of the NDK. Used to ensure full rebuilds on NDK rolls. |
| 258 'android_ndk_version%': 'r11c', |
| 257 'host_os%': "<!(uname -s | sed -e 's/Linux/linux/;s/Darwin/mac/')", | 259 'host_os%': "<!(uname -s | sed -e 's/Linux/linux/;s/Darwin/mac/')", |
| 258 'os_folder_name%': "<!(uname -s | sed -e 's/Linux/linux/;s/Darwin/da
rwin/')", | 260 'os_folder_name%': "<!(uname -s | sed -e 's/Linux/linux/;s/Darwin/da
rwin/')", |
| 259 }, | 261 }, |
| 260 | 262 |
| 261 # Copy conditionally-set variables out one scope. | 263 # Copy conditionally-set variables out one scope. |
| 262 'android_ndk_root%': '<(android_ndk_root)', | 264 'android_ndk_root%': '<(android_ndk_root)', |
| 265 'android_ndk_version%': '<(android_ndk_version)', |
| 263 'host_os%': '<(host_os)', | 266 'host_os%': '<(host_os)', |
| 264 'os_folder_name%': '<(os_folder_name)', | 267 'os_folder_name%': '<(os_folder_name)', |
| 265 | 268 |
| 266 'conditions': [ | 269 'conditions': [ |
| 267 ['target_arch == "ia32"', { | 270 ['target_arch == "ia32"', { |
| 268 'android_toolchain%': '<(android_ndk_root)/toolchains/x86-4.9/preb
uilt/<(os_folder_name)-<(android_host_arch)/bin', | 271 'android_toolchain%': '<(android_ndk_root)/toolchains/x86-4.9/preb
uilt/<(os_folder_name)-<(android_host_arch)/bin', |
| 269 'android_target_arch%': 'x86', | 272 'android_target_arch%': 'x86', |
| 270 'android_target_platform%': '16', | 273 'android_target_platform%': '16', |
| 271 'arm_version%': 'default', | 274 'arm_version%': 'default', |
| 272 }], | 275 }], |
| (...skipping 24 matching lines...) Expand all Loading... |
| 297 ['target_arch == "mips64el"', { | 300 ['target_arch == "mips64el"', { |
| 298 'android_toolchain%': '<(android_ndk_root)/toolchains/mips64el-lin
ux-android-4.9/prebuilt/<(os_folder_name)-<(android_host_arch)/bin', | 301 'android_toolchain%': '<(android_ndk_root)/toolchains/mips64el-lin
ux-android-4.9/prebuilt/<(os_folder_name)-<(android_host_arch)/bin', |
| 299 'android_target_arch%': 'mips64', | 302 'android_target_arch%': 'mips64', |
| 300 'android_target_platform%': '21', | 303 'android_target_platform%': '21', |
| 301 'arm_version%': 'default', | 304 'arm_version%': 'default', |
| 302 }], | 305 }], |
| 303 ], | 306 ], |
| 304 }, | 307 }, |
| 305 | 308 |
| 306 # Copy conditionally-set variables out one scope. | 309 # Copy conditionally-set variables out one scope. |
| 310 'android_ndk_version%': '<(android_ndk_version)', |
| 307 'android_target_arch%': '<(android_target_arch)', | 311 'android_target_arch%': '<(android_target_arch)', |
| 308 'android_target_platform%': '<(android_target_platform)', | 312 'android_target_platform%': '<(android_target_platform)', |
| 309 'android_toolchain%': '<(android_toolchain)', | 313 'android_toolchain%': '<(android_toolchain)', |
| 310 'arm_version%': '<(arm_version)', | 314 'arm_version%': '<(arm_version)', |
| 311 'host_os%': '<(host_os)', | 315 'host_os%': '<(host_os)', |
| 312 | 316 |
| 313 'conditions': [ | 317 'conditions': [ |
| 314 ['android_ndk_root==""', { | 318 ['android_ndk_root==""', { |
| 315 'variables': { | 319 'variables': { |
| 316 'android_sysroot': '<(android_toolchain)/sysroot/', | 320 'android_sysroot': '<(android_toolchain)/sysroot/', |
| (...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1065 '-isystem<(android_libcpp_include)', | 1069 '-isystem<(android_libcpp_include)', |
| 1066 '-isystem<(android_libcpp_abi_include)', | 1070 '-isystem<(android_libcpp_abi_include)', |
| 1067 '-isystem<(android_support_include)', | 1071 '-isystem<(android_support_include)', |
| 1068 ], | 1072 ], |
| 1069 'defines': [ | 1073 'defines': [ |
| 1070 'ANDROID', | 1074 'ANDROID', |
| 1071 #'__GNU_SOURCE=1', # Necessary for clone() | 1075 #'__GNU_SOURCE=1', # Necessary for clone() |
| 1072 'HAVE_OFF64_T', | 1076 'HAVE_OFF64_T', |
| 1073 'HAVE_SYS_UIO_H', | 1077 'HAVE_SYS_UIO_H', |
| 1074 'ANDROID_BINSIZE_HACK', # Enable temporary hacks to reduce binsize
. | 1078 'ANDROID_BINSIZE_HACK', # Enable temporary hacks to reduce binsize
. |
| 1079 'ANDROID_NDK_VERSION=<(android_ndk_version)', |
| 1075 ], | 1080 ], |
| 1076 'ldflags!': [ | 1081 'ldflags!': [ |
| 1077 '-pthread', # Not supported by Android toolchain. | 1082 '-pthread', # Not supported by Android toolchain. |
| 1078 ], | 1083 ], |
| 1079 'ldflags': [ | 1084 'ldflags': [ |
| 1080 '-Wl,--no-undefined', | 1085 '-Wl,--no-undefined', |
| 1081 '--sysroot=<(android_sysroot)', | 1086 '--sysroot=<(android_sysroot)', |
| 1082 '-nostdlib', | 1087 '-nostdlib', |
| 1083 ], | 1088 ], |
| 1084 'libraries!': [ | 1089 'libraries!': [ |
| (...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1423 '-fsanitize=cfi-vcall', | 1428 '-fsanitize=cfi-vcall', |
| 1424 '-fsanitize=cfi-derived-cast', | 1429 '-fsanitize=cfi-derived-cast', |
| 1425 '-fsanitize=cfi-unrelated-cast', | 1430 '-fsanitize=cfi-unrelated-cast', |
| 1426 ], | 1431 ], |
| 1427 }], | 1432 }], |
| 1428 ], | 1433 ], |
| 1429 }, | 1434 }, |
| 1430 }], | 1435 }], |
| 1431 ], | 1436 ], |
| 1432 } | 1437 } |
| OLD | NEW |