| OLD | NEW |
| 1 # Copyright 2013 the V8 project authors. All rights reserved. | 1 # Copyright 2013 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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 }], | 272 }], |
| 273 ['v8_host_byteorder=="little"', { | 273 ['v8_host_byteorder=="little"', { |
| 274 'defines': [ | 274 'defines': [ |
| 275 'V8_TARGET_ARCH_PPC_LE', | 275 'V8_TARGET_ARCH_PPC_LE', |
| 276 ], | 276 ], |
| 277 }], | 277 }], |
| 278 ['v8_host_byteorder=="big"', { | 278 ['v8_host_byteorder=="big"', { |
| 279 'defines': [ | 279 'defines': [ |
| 280 'V8_TARGET_ARCH_PPC_BE', | 280 'V8_TARGET_ARCH_PPC_BE', |
| 281 ], | 281 ], |
| 282 'conditions': [ |
| 283 ['OS=="aix"', { |
| 284 # Work around AIX ceil, trunc and round oddities. |
| 285 'cflags': [ '-mcpu=power5+ -mfprnd' ], |
| 286 }], |
| 287 ['OS=="aix"', { |
| 288 # Work around AIX assembler popcntb bug. |
| 289 'cflags': [ '-mno-popcntb' ], |
| 290 }], |
| 291 ], |
| 282 }], | 292 }], |
| 283 ], | 293 ], |
| 284 }], # ppc | 294 }], # ppc |
| 285 ['v8_target_arch=="ia32"', { | 295 ['v8_target_arch=="ia32"', { |
| 286 'defines': [ | 296 'defines': [ |
| 287 'V8_TARGET_ARCH_IA32', | 297 'V8_TARGET_ARCH_IA32', |
| 288 ], | 298 ], |
| 289 }], # v8_target_arch=="ia32" | 299 }], # v8_target_arch=="ia32" |
| 290 ['v8_target_arch=="x87"', { | 300 ['v8_target_arch=="x87"', { |
| 291 'defines': [ | 301 'defines': [ |
| (...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 882 [ 'android_webview_build == 1', { | 892 [ 'android_webview_build == 1', { |
| 883 'aosp_build_settings': { | 893 'aosp_build_settings': { |
| 884 'LOCAL_FDO_SUPPORT': 'true', | 894 'LOCAL_FDO_SUPPORT': 'true', |
| 885 }, | 895 }, |
| 886 }], | 896 }], |
| 887 ] | 897 ] |
| 888 }], | 898 }], |
| 889 ], | 899 ], |
| 890 }], | 900 }], |
| 891 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ | 901 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ |
| 892 or OS=="netbsd" or OS=="qnx"', { | 902 or OS=="netbsd" or OS=="qnx" or OS=="aix"', { |
| 893 'conditions': [ | 903 'conditions': [ |
| 894 [ 'v8_no_strict_aliasing==1', { | 904 [ 'v8_no_strict_aliasing==1', { |
| 895 'cflags': [ '-fno-strict-aliasing' ], | 905 'cflags': [ '-fno-strict-aliasing' ], |
| 896 }], | 906 }], |
| 897 ], # conditions | 907 ], # conditions |
| 898 }], | 908 }], |
| 899 ['OS=="solaris"', { | 909 ['OS=="solaris"', { |
| 900 'defines': [ '__C99FEATURES__=1' ], # isinf() etc. | 910 'defines': [ '__C99FEATURES__=1' ], # isinf() etc. |
| 901 }], | 911 }], |
| 902 ['OS=="freebsd" or OS=="openbsd"', { | 912 ['OS=="freebsd" or OS=="openbsd"', { |
| 903 'cflags': [ '-I/usr/local/include' ], | 913 'cflags': [ '-I/usr/local/include' ], |
| 904 }], | 914 }], |
| 905 ['OS=="netbsd"', { | 915 ['OS=="netbsd"', { |
| 906 'cflags': [ '-I/usr/pkg/include' ], | 916 'cflags': [ '-I/usr/pkg/include' ], |
| 907 }], | 917 }], |
| 918 ['OS=="aix"', { |
| 919 'defines': [ |
| 920 # Support for malloc(0) |
| 921 '_LINUX_SOURCE_COMPAT=1', |
| 922 '_ALL_SOURCE=1'], |
| 923 'conditions': [ |
| 924 [ 'v8_target_arch=="ppc"', { |
| 925 'ldflags': [ '-Wl,-bmaxdata:0x60000000/dsa' ], |
| 926 }], |
| 927 [ 'v8_target_arch=="ppc64"', { |
| 928 'cflags': [ '-maix64' ], |
| 929 'ldflags': [ '-maix64' ], |
| 930 }], |
| 931 ], |
| 932 }], |
| 908 ], # conditions | 933 ], # conditions |
| 909 'configurations': { | 934 'configurations': { |
| 910 # Abstract configuration for v8_optimized_debug == 0. | 935 # Abstract configuration for v8_optimized_debug == 0. |
| 911 'DebugBase0': { | 936 'DebugBase0': { |
| 912 'abstract': 1, | 937 'abstract': 1, |
| 913 'msvs_settings': { | 938 'msvs_settings': { |
| 914 'VCCLCompilerTool': { | 939 'VCCLCompilerTool': { |
| 915 'Optimization': '0', | 940 'Optimization': '0', |
| 916 'conditions': [ | 941 'conditions': [ |
| 917 ['component=="shared_library"', { | 942 ['component=="shared_library"', { |
| 918 'RuntimeLibrary': '3', # /MDd | 943 'RuntimeLibrary': '3', # /MDd |
| 919 }, { | 944 }, { |
| 920 'RuntimeLibrary': '1', # /MTd | 945 'RuntimeLibrary': '1', # /MTd |
| 921 }], | 946 }], |
| 922 ], | 947 ], |
| 923 }, | 948 }, |
| 924 'VCLinkerTool': { | 949 'VCLinkerTool': { |
| 925 'LinkIncremental': '2', | 950 'LinkIncremental': '2', |
| 926 }, | 951 }, |
| 927 }, | 952 }, |
| 928 'variables': { | 953 'variables': { |
| 929 'v8_enable_slow_dchecks%': 1, | 954 'v8_enable_slow_dchecks%': 1, |
| 930 }, | 955 }, |
| 931 'conditions': [ | 956 'conditions': [ |
| 932 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd" or \ | 957 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd" or \ |
| 933 OS=="qnx"', { | 958 OS=="qnx" or OS=="aix"', { |
| 934 'cflags!': [ | 959 'cflags!': [ |
| 935 '-O3', | 960 '-O3', |
| 936 '-O2', | 961 '-O2', |
| 937 '-O1', | 962 '-O1', |
| 938 '-Os', | 963 '-Os', |
| 939 ], | 964 ], |
| 940 'cflags': [ | 965 'cflags': [ |
| 941 '-fdata-sections', | 966 '-fdata-sections', |
| 942 '-ffunction-sections', | 967 '-ffunction-sections', |
| 943 ], | 968 ], |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 977 'LinkIncremental': '1', | 1002 'LinkIncremental': '1', |
| 978 'OptimizeReferences': '2', | 1003 'OptimizeReferences': '2', |
| 979 'EnableCOMDATFolding': '2', | 1004 'EnableCOMDATFolding': '2', |
| 980 }, | 1005 }, |
| 981 }, | 1006 }, |
| 982 'variables': { | 1007 'variables': { |
| 983 'v8_enable_slow_dchecks%': 0, | 1008 'v8_enable_slow_dchecks%': 0, |
| 984 }, | 1009 }, |
| 985 'conditions': [ | 1010 'conditions': [ |
| 986 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd" or \ | 1011 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd" or \ |
| 987 OS=="qnx"', { | 1012 OS=="qnx" or OS=="aix"', { |
| 988 'cflags!': [ | 1013 'cflags!': [ |
| 989 '-O0', | 1014 '-O0', |
| 990 '-O1', | 1015 '-O1', |
| 991 '-Os', | 1016 '-Os', |
| 992 ], | 1017 ], |
| 993 'cflags': [ | 1018 'cflags': [ |
| 994 '-fdata-sections', | 1019 '-fdata-sections', |
| 995 '-ffunction-sections', | 1020 '-ffunction-sections', |
| 996 ], | 1021 ], |
| 997 'conditions': [ | 1022 'conditions': [ |
| (...skipping 28 matching lines...) Expand all Loading... |
| 1026 'defines': [ | 1051 'defines': [ |
| 1027 'ENABLE_DISASSEMBLER', | 1052 'ENABLE_DISASSEMBLER', |
| 1028 'V8_ENABLE_CHECKS', | 1053 'V8_ENABLE_CHECKS', |
| 1029 'OBJECT_PRINT', | 1054 'OBJECT_PRINT', |
| 1030 'VERIFY_HEAP', | 1055 'VERIFY_HEAP', |
| 1031 'DEBUG', | 1056 'DEBUG', |
| 1032 'TRACE_MAPS' | 1057 'TRACE_MAPS' |
| 1033 ], | 1058 ], |
| 1034 'conditions': [ | 1059 'conditions': [ |
| 1035 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd" or \ | 1060 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd" or \ |
| 1036 OS=="qnx"', { | 1061 OS=="qnx" or OS=="aix"', { |
| 1037 'cflags': [ '-Woverloaded-virtual', '<(wno_array_bounds)', ], | 1062 'cflags': [ '-Woverloaded-virtual', '<(wno_array_bounds)', ], |
| 1038 }], | 1063 }], |
| 1039 ['OS=="linux" and v8_enable_backtrace==1', { | 1064 ['OS=="linux" and v8_enable_backtrace==1', { |
| 1040 # Support for backtrace_symbols. | 1065 # Support for backtrace_symbols. |
| 1041 'ldflags': [ '-rdynamic' ], | 1066 'ldflags': [ '-rdynamic' ], |
| 1042 }], | 1067 }], |
| 1068 ['OS=="aix"', { |
| 1069 'ldflags': [ '-Wl,-bbigtoc' ], |
| 1070 }], |
| 1043 ['OS=="android"', { | 1071 ['OS=="android"', { |
| 1044 'variables': { | 1072 'variables': { |
| 1045 'android_full_debug%': 1, | 1073 'android_full_debug%': 1, |
| 1046 }, | 1074 }, |
| 1047 'conditions': [ | 1075 'conditions': [ |
| 1048 ['android_full_debug==0', { | 1076 ['android_full_debug==0', { |
| 1049 # Disable full debug if we want a faster v8 in a debug build. | 1077 # Disable full debug if we want a faster v8 in a debug build. |
| 1050 # TODO(2304): pass DISABLE_DEBUG_ASSERT instead of hiding DEBUG. | 1078 # TODO(2304): pass DISABLE_DEBUG_ASSERT instead of hiding DEBUG. |
| 1051 'defines!': [ | 1079 'defines!': [ |
| 1052 'DEBUG', | 1080 'DEBUG', |
| (...skipping 12 matching lines...) Expand all Loading... |
| 1065 }, { | 1093 }, { |
| 1066 'inherit_from': ['DebugBase1'], | 1094 'inherit_from': ['DebugBase1'], |
| 1067 }], | 1095 }], |
| 1068 ], | 1096 ], |
| 1069 }, # Debug | 1097 }, # Debug |
| 1070 'Release': { | 1098 'Release': { |
| 1071 'variables': { | 1099 'variables': { |
| 1072 'v8_enable_slow_dchecks%': 0, | 1100 'v8_enable_slow_dchecks%': 0, |
| 1073 }, | 1101 }, |
| 1074 'conditions': [ | 1102 'conditions': [ |
| 1075 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd"', { | 1103 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd" \ |
| 1104 or OS=="aix"', { |
| 1076 'cflags!': [ | 1105 'cflags!': [ |
| 1077 '-Os', | 1106 '-Os', |
| 1078 ], | 1107 ], |
| 1079 'cflags': [ | 1108 'cflags': [ |
| 1080 '-fdata-sections', | 1109 '-fdata-sections', |
| 1081 '-ffunction-sections', | 1110 '-ffunction-sections', |
| 1082 '<(wno_array_bounds)', | 1111 '<(wno_array_bounds)', |
| 1083 ], | 1112 ], |
| 1084 'conditions': [ | 1113 'conditions': [ |
| 1085 # TODO(crbug.com/272548): Avoid -O3 in NaCl | 1114 # TODO(crbug.com/272548): Avoid -O3 in NaCl |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1142 ['v8_enable_slow_dchecks==1', { | 1171 ['v8_enable_slow_dchecks==1', { |
| 1143 'defines': [ | 1172 'defines': [ |
| 1144 'ENABLE_SLOW_DCHECKS', | 1173 'ENABLE_SLOW_DCHECKS', |
| 1145 ], | 1174 ], |
| 1146 }], | 1175 }], |
| 1147 ], # conditions | 1176 ], # conditions |
| 1148 }, # Release | 1177 }, # Release |
| 1149 }, # configurations | 1178 }, # configurations |
| 1150 }, # target_defaults | 1179 }, # target_defaults |
| 1151 } | 1180 } |
| OLD | NEW |