| 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 297 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 308           'android_ndk_root%': '<(android_ndk_root)', | 308           'android_ndk_root%': '<(android_ndk_root)', | 
| 309           'android_ndk_version%': '<(android_ndk_version)', | 309           'android_ndk_version%': '<(android_ndk_version)', | 
| 310           'host_os%': '<(host_os)', | 310           'host_os%': '<(host_os)', | 
| 311           'os_folder_name%': '<(os_folder_name)', | 311           'os_folder_name%': '<(os_folder_name)', | 
| 312 | 312 | 
| 313           'conditions': [ | 313           'conditions': [ | 
| 314             ['target_arch == "ia32"', { | 314             ['target_arch == "ia32"', { | 
| 315               'android_toolchain%': '<(android_ndk_root)/toolchains/x86-4.9/preb
      uilt/<(os_folder_name)-<(android_host_arch)/bin', | 315               'android_toolchain%': '<(android_ndk_root)/toolchains/x86-4.9/preb
      uilt/<(os_folder_name)-<(android_host_arch)/bin', | 
| 316               'android_target_arch%': 'x86', | 316               'android_target_arch%': 'x86', | 
| 317               'android_target_platform%': '16', | 317               'android_target_platform%': '16', | 
|  | 318               'abi_target': 'i686-linux-android', | 
| 318               'arm_version%': 'default', | 319               'arm_version%': 'default', | 
| 319             }], | 320             }], | 
| 320             ['target_arch == "x64"', { | 321             ['target_arch == "x64"', { | 
| 321               'android_toolchain%': '<(android_ndk_root)/toolchains/x86_64-4.9/p
      rebuilt/<(os_folder_name)-<(android_host_arch)/bin', | 322               'android_toolchain%': '<(android_ndk_root)/toolchains/x86_64-4.9/p
      rebuilt/<(os_folder_name)-<(android_host_arch)/bin', | 
| 322               'android_target_arch%': 'x86_64', | 323               'android_target_arch%': 'x86_64', | 
| 323               'android_target_platform%': '21', | 324               'android_target_platform%': '21', | 
|  | 325               'abi_target': 'x86_64-linux-android', | 
| 324               'arm_version%': 'default', | 326               'arm_version%': 'default', | 
| 325             }], | 327             }], | 
| 326             ['target_arch=="arm"', { | 328             ['target_arch=="arm"', { | 
| 327               'android_toolchain%': '<(android_ndk_root)/toolchains/arm-linux-an
      droideabi-4.9/prebuilt/<(os_folder_name)-<(android_host_arch)/bin', | 329               'android_toolchain%': '<(android_ndk_root)/toolchains/arm-linux-an
      droideabi-4.9/prebuilt/<(os_folder_name)-<(android_host_arch)/bin', | 
| 328               'android_target_arch%': 'arm', | 330               'android_target_arch%': 'arm', | 
| 329               'android_target_platform%': '16', | 331               'android_target_platform%': '16', | 
|  | 332               'abi_target': 'arm-linux-androideabi', | 
| 330               'arm_version%': 7, | 333               'arm_version%': 7, | 
| 331             }], | 334             }], | 
| 332             ['target_arch == "arm64"', { | 335             ['target_arch == "arm64"', { | 
| 333               'android_toolchain%': '<(android_ndk_root)/toolchains/aarch64-linu
      x-android-4.9/prebuilt/<(os_folder_name)-<(android_host_arch)/bin', | 336               'android_toolchain%': '<(android_ndk_root)/toolchains/aarch64-linu
      x-android-4.9/prebuilt/<(os_folder_name)-<(android_host_arch)/bin', | 
| 334               'android_target_arch%': 'arm64', | 337               'android_target_arch%': 'arm64', | 
| 335               'android_target_platform%': '21', | 338               'android_target_platform%': '21', | 
|  | 339               'abi_target': 'aarch64-linux-android', | 
| 336               'arm_version%': 'default', | 340               'arm_version%': 'default', | 
| 337             }], | 341             }], | 
| 338             ['target_arch == "mipsel"', { | 342             ['target_arch == "mipsel"', { | 
| 339               'android_toolchain%': '<(android_ndk_root)/toolchains/mipsel-linux
      -android-4.9/prebuilt/<(os_folder_name)-<(android_host_arch)/bin', | 343               'android_toolchain%': '<(android_ndk_root)/toolchains/mipsel-linux
      -android-4.9/prebuilt/<(os_folder_name)-<(android_host_arch)/bin', | 
| 340               'android_target_arch%': 'mips', | 344               'android_target_arch%': 'mips', | 
| 341               'android_target_platform%': '16', | 345               'android_target_platform%': '16', | 
|  | 346               'abi_target': 'mips-linux-android', | 
| 342               'arm_version%': 'default', | 347               'arm_version%': 'default', | 
| 343             }], | 348             }], | 
| 344             ['target_arch == "mips64el"', { | 349             ['target_arch == "mips64el"', { | 
| 345               'android_toolchain%': '<(android_ndk_root)/toolchains/mips64el-lin
      ux-android-4.9/prebuilt/<(os_folder_name)-<(android_host_arch)/bin', | 350               'android_toolchain%': '<(android_ndk_root)/toolchains/mips64el-lin
      ux-android-4.9/prebuilt/<(os_folder_name)-<(android_host_arch)/bin', | 
| 346               'android_target_arch%': 'mips64', | 351               'android_target_arch%': 'mips64', | 
| 347               'android_target_platform%': '21', | 352               'android_target_platform%': '21', | 
|  | 353               'abi_target': 'mips64el-linux-android', | 
| 348               'arm_version%': 'default', | 354               'arm_version%': 'default', | 
| 349             }], | 355             }], | 
| 350           ], | 356           ], | 
| 351         }, | 357         }, | 
| 352 | 358 | 
| 353         # Copy conditionally-set variables out one scope. | 359         # Copy conditionally-set variables out one scope. | 
| 354         'android_ndk_version%': '<(android_ndk_version)', | 360         'android_ndk_version%': '<(android_ndk_version)', | 
| 355         'android_target_arch%': '<(android_target_arch)', | 361         'android_target_arch%': '<(android_target_arch)', | 
| 356         'android_target_platform%': '<(android_target_platform)', | 362         'android_target_platform%': '<(android_target_platform)', | 
| 357         'android_toolchain%': '<(android_toolchain)', | 363         'android_toolchain%': '<(android_toolchain)', | 
| 358         'arm_version%': '<(arm_version)', | 364         'arm_version%': '<(arm_version)', | 
| 359         'host_os%': '<(host_os)', | 365         'host_os%': '<(host_os)', | 
| 360 | 366 | 
| 361         # Print to stdout on Android. | 367         # Print to stdout on Android. | 
| 362         'v8_android_log_stdout%': 1, | 368         'v8_android_log_stdout%': 1, | 
| 363 | 369 | 
| 364         'conditions': [ | 370         'conditions': [ | 
| 365           ['android_ndk_root==""', { | 371           ['android_ndk_root==""', { | 
| 366             'variables': { | 372             'variables': { | 
| 367               'android_sysroot': '<(android_toolchain)/sysroot/', | 373               'android_sysroot': '<(android_toolchain)/sysroot/', | 
| 368               'android_stl': '<(android_toolchain)/sources/cxx-stl/', | 374               'android_stl': '<(android_toolchain)/sources/cxx-stl/', | 
| 369             }, | 375             }, | 
| 370             'conditions': [ | 376             'conditions': [ | 
| 371               ['target_arch=="x64"', { | 377               ['target_arch=="x64"', { | 
| 372                 'android_lib': '<(android_sysroot)/usr/lib64', | 378                 'android_lib': '<(android_sysroot)/usr/lib64', | 
| 373               }, { | 379               }, { | 
| 374                 'android_lib': '<(android_sysroot)/usr/lib', | 380                 'android_lib': '<(android_sysroot)/usr/lib', | 
| 375               }], | 381               }], | 
| 376             ], | 382             ], | 
| 377             'android_libcpp_include': '<(android_stl)/llvm-libc++/libcxx/include
      ', | 383             'android_libcpp_include': '<(android_stl)/llvm-libc++/include', | 
| 378             'android_libcpp_abi_include': '<(android_stl)/llvm-libc++abi/libcxxa
      bi/include', | 384             'android_libcpp_abi_include': '<(android_stl)/llvm-libc++abi/include
      ', | 
| 379             'android_libcpp_libs': '<(android_stl)/llvm-libc++/libs', | 385             'android_libcpp_libs': '<(android_stl)/llvm-libc++/libs', | 
| 380             'android_support_include': '<(android_toolchain)/sources/android/sup
      port/include', | 386             'android_support_include': '<(android_toolchain)/sources/android/sup
      port/include', | 
| 381             'android_sysroot': '<(android_sysroot)', | 387             'android_sysroot': '<(android_sysroot)', | 
| 382           }, { | 388           }, { | 
| 383             'variables': { | 389             'variables': { | 
| 384               'android_sysroot': '<(android_ndk_root)/platforms/android-<(androi
      d_target_platform)/arch-<(android_target_arch)', | 390               'android_sysroot': '<(android_ndk_root)/sysroot', | 
| 385               'android_stl': '<(android_ndk_root)/sources/cxx-stl/', | 391               'android_stl': '<(android_ndk_root)/sources/cxx-stl/', | 
| 386             }, | 392             }, | 
| 387             'conditions': [ | 393             'conditions': [ | 
| 388               ['target_arch=="x64"', { | 394               ['target_arch=="x64"', { | 
| 389                 'android_lib': '<(android_sysroot)/usr/lib64', | 395                 'android_lib': '<(android_sysroot)/usr/lib64', | 
| 390               }, { | 396               }, { | 
| 391                 'android_lib': '<(android_sysroot)/usr/lib', | 397                 'android_lib': '<(android_sysroot)/usr/lib', | 
| 392               }], | 398               }], | 
| 393             ], | 399             ], | 
| 394             'android_libcpp_include': '<(android_stl)/llvm-libc++/libcxx/include
      ', | 400             'android_platform_sysroot': '<(android_ndk_root)/platforms/android-<
      (android_target_platform)/arch-<(android_target_arch)', | 
| 395             'android_libcpp_abi_include': '<(android_stl)/llvm-libc++abi/libcxxa
      bi/include', | 401             'android_libcpp_include': '<(android_stl)/llvm-libc++/include', | 
|  | 402             'android_libcpp_abi_include': '<(android_stl)/llvm-libc++abi/include
      ', | 
|  | 403             'android_libcpp_abi_target_include': '<(android_sysroot)/usr/include
      /<(abi_target)', | 
| 396             'android_libcpp_libs': '<(android_stl)/llvm-libc++/libs', | 404             'android_libcpp_libs': '<(android_stl)/llvm-libc++/libs', | 
| 397             'android_support_include': '<(android_ndk_root)/sources/android/supp
      ort/include', | 405             'android_support_include': '<(android_ndk_root)/sources/android/supp
      ort/include', | 
| 398             'android_sysroot': '<(android_sysroot)', | 406             'android_sysroot': '<(android_sysroot)', | 
| 399           }], | 407           }], | 
| 400         ], | 408         ], | 
| 401         'android_libcpp_library': 'c++_static', | 409         'android_libcpp_library': 'c++_static', | 
| 402       }],  # OS=="android" | 410       }],  # OS=="android" | 
| 403       ['host_clang==1', { | 411       ['host_clang==1', { | 
| 404         'conditions':[ | 412         'conditions':[ | 
| 405           ['OS=="android"', { | 413           ['OS=="android"', { | 
| (...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1083         }, | 1091         }, | 
| 1084         'conditions': [ | 1092         'conditions': [ | 
| 1085           ['werror==""', { | 1093           ['werror==""', { | 
| 1086             'xcode_settings': {'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO'}, | 1094             'xcode_settings': {'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO'}, | 
| 1087           }, { | 1095           }, { | 
| 1088             'xcode_settings': {'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES'}, | 1096             'xcode_settings': {'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES'}, | 
| 1089           }], | 1097           }], | 
| 1090           ['clang==1', { | 1098           ['clang==1', { | 
| 1091             'xcode_settings': { | 1099             'xcode_settings': { | 
| 1092               'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0', | 1100               'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0', | 
| 1093               'CLANG_CXX_LANGUAGE_STANDARD': 'c++11',  # -std=c++11 |  | 
| 1094             }, | 1101             }, | 
| 1095             'conditions': [ | 1102             'conditions': [ | 
| 1096               ['clang_xcode==0', { | 1103               ['clang_xcode==0', { | 
| 1097                 'xcode_settings': { | 1104                 'xcode_settings': { | 
| 1098                   'CC': '<(clang_dir)/bin/clang', | 1105                   'CC': '<(clang_dir)/bin/clang', | 
| 1099                   'LDPLUSPLUS': '<(clang_dir)/bin/clang++', | 1106                   'LDPLUSPLUS': '<(clang_dir)/bin/clang++', | 
| 1100                   'CLANG_CXX_LIBRARY': 'libc++' | 1107                   'CLANG_CXX_LIBRARY': 'libc++' | 
| 1101                 }, | 1108                 }, | 
| 1102               }], | 1109               }], | 
| 1103               ['v8_target_arch=="x64" or v8_target_arch=="arm64" \ | 1110               ['v8_target_arch=="x64" or v8_target_arch=="arm64" \ | 
| (...skipping 16 matching lines...) Expand all  Loading... | 
| 1120           'ANDROID', | 1127           'ANDROID', | 
| 1121         ], | 1128         ], | 
| 1122         'configurations': { | 1129         'configurations': { | 
| 1123           'Release': { | 1130           'Release': { | 
| 1124             'cflags': [ | 1131             'cflags': [ | 
| 1125               '-fomit-frame-pointer', | 1132               '-fomit-frame-pointer', | 
| 1126             ], | 1133             ], | 
| 1127           },  # Release | 1134           },  # Release | 
| 1128         },  # configurations | 1135         },  # configurations | 
| 1129         'cflags': [ '-Wno-abi', '-Wall', '-W', '-Wno-unused-parameter'], | 1136         'cflags': [ '-Wno-abi', '-Wall', '-W', '-Wno-unused-parameter'], | 
| 1130         'cflags_cc': [ '-Wnon-virtual-dtor', '-fno-rtti', '-fno-exceptions', | 1137         'cflags_cc': [ '-Wnon-virtual-dtor', '-fno-rtti', '-fno-exceptions' ], | 
| 1131                        '-std=gnu++11' ], |  | 
| 1132         'target_conditions': [ | 1138         'target_conditions': [ | 
| 1133           ['_toolset=="target"', { | 1139           ['_toolset=="target"', { | 
| 1134             'cflags!': [ | 1140             'cflags!': [ | 
| 1135               '-pthread',  # Not supported by Android toolchain. | 1141               '-pthread',  # Not supported by Android toolchain. | 
| 1136             ], | 1142             ], | 
| 1137             'cflags': [ | 1143             'cflags': [ | 
| 1138               '-ffunction-sections', | 1144               '-ffunction-sections', | 
| 1139               '-funwind-tables', | 1145               '-funwind-tables', | 
| 1140               '-fstack-protector', | 1146               '-fstack-protector', | 
| 1141               '-fno-short-enums', | 1147               '-fno-short-enums', | 
| 1142               '-finline-limit=64', | 1148               '-finline-limit=64', | 
| 1143               '-Wa,--noexecstack', | 1149               '-Wa,--noexecstack', | 
| 1144               '--sysroot=<(android_sysroot)', | 1150               '--sysroot=<(android_sysroot)', | 
| 1145             ], | 1151             ], | 
| 1146             'cflags_cc': [ | 1152             'cflags_cc': [ | 
|  | 1153               '-isystem<(android_libcpp_abi_target_include)', | 
| 1147               '-isystem<(android_libcpp_include)', | 1154               '-isystem<(android_libcpp_include)', | 
| 1148               '-isystem<(android_libcpp_abi_include)', | 1155               '-isystem<(android_libcpp_abi_include)', | 
| 1149               '-isystem<(android_support_include)', | 1156               '-isystem<(android_support_include)', | 
| 1150             ], | 1157             ], | 
| 1151             'defines': [ | 1158             'defines': [ | 
| 1152               'ANDROID', | 1159               'ANDROID', | 
| 1153               #'__GNU_SOURCE=1',  # Necessary for clone() | 1160               #'__GNU_SOURCE=1',  # Necessary for clone() | 
| 1154               'HAVE_OFF64_T', | 1161               'HAVE_OFF64_T', | 
| 1155               'HAVE_SYS_UIO_H', | 1162               'HAVE_SYS_UIO_H', | 
| 1156               'ANDROID_BINSIZE_HACK', # Enable temporary hacks to reduce binsize
      . | 1163               'ANDROID_BINSIZE_HACK', # Enable temporary hacks to reduce binsize
      . | 
| 1157               'ANDROID_NDK_VERSION=<(android_ndk_version)', | 1164               'ANDROID_NDK_VERSION=<(android_ndk_version)', | 
| 1158             ], | 1165             ], | 
| 1159             'ldflags!': [ | 1166             'ldflags!': [ | 
| 1160               '-pthread',  # Not supported by Android toolchain. | 1167               '-pthread',  # Not supported by Android toolchain. | 
| 1161             ], | 1168             ], | 
| 1162             'ldflags': [ | 1169             'ldflags': [ | 
| 1163               '-Wl,--no-undefined', | 1170               '-Wl,--no-undefined', | 
| 1164               '--sysroot=<(android_sysroot)', | 1171               '--sysroot=<(android_platform_sysroot)', | 
| 1165               '-nostdlib', | 1172               '-nostdlib', | 
| 1166             ], | 1173             ], | 
| 1167             'libraries!': [ | 1174             'libraries!': [ | 
| 1168                 '-lrt',  # librt is built into Bionic. | 1175                 '-lrt',  # librt is built into Bionic. | 
| 1169                 # Not supported by Android toolchain. | 1176                 # Not supported by Android toolchain. | 
| 1170                 # Where do these come from?  Can't find references in | 1177                 # Where do these come from?  Can't find references in | 
| 1171                 # any Chromium gyp or gypi file.  Maybe they come from | 1178                 # any Chromium gyp or gypi file.  Maybe they come from | 
| 1172                 # gyp itself? | 1179                 # gyp itself? | 
| 1173                 '-lpthread', '-lnss3', '-lnssutil3', '-lsmime3', '-lplds4', '-lp
      lc4', '-lnspr4', | 1180                 '-lpthread', '-lnss3', '-lnssutil3', '-lsmime3', '-lplds4', '-lp
      lc4', '-lnspr4', | 
| 1174               ], | 1181               ], | 
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1404             ['CC_wrapper', '<(base_dir)/gypfiles/coverage_wrapper.py'], | 1411             ['CC_wrapper', '<(base_dir)/gypfiles/coverage_wrapper.py'], | 
| 1405             ['CXX_wrapper', '<(base_dir)/gypfiles/coverage_wrapper.py'], | 1412             ['CXX_wrapper', '<(base_dir)/gypfiles/coverage_wrapper.py'], | 
| 1406             ['CC.host_wrapper', '<(base_dir)/gypfiles/coverage_wrapper.py'], | 1413             ['CC.host_wrapper', '<(base_dir)/gypfiles/coverage_wrapper.py'], | 
| 1407             ['CXX.host_wrapper', '<(base_dir)/gypfiles/coverage_wrapper.py'], | 1414             ['CXX.host_wrapper', '<(base_dir)/gypfiles/coverage_wrapper.py'], | 
| 1408           ], | 1415           ], | 
| 1409         }], | 1416         }], | 
| 1410       ], | 1417       ], | 
| 1411     }], | 1418     }], | 
| 1412   ], | 1419   ], | 
| 1413 } | 1420 } | 
| OLD | NEW | 
|---|