| 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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 '<@(INTERMEDIATE_DIR)/snapshot.cc', | 281 '<@(INTERMEDIATE_DIR)/snapshot.cc', |
| 282 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob.bin', | 282 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob.bin', |
| 283 ], | 283 ], |
| 284 }, | 284 }, |
| 285 ], | 285 ], |
| 286 }, | 286 }, |
| 287 { | 287 { |
| 288 'target_name': 'v8_base', | 288 'target_name': 'v8_base', |
| 289 'type': 'static_library', | 289 'type': 'static_library', |
| 290 'dependencies': [ | 290 'dependencies': [ |
| 291 'v8_libbase', | 291 '../../src/base/base.gyp:base', |
| 292 ], | 292 ], |
| 293 'variables': { | 293 'variables': { |
| 294 'optimize': 'max', | 294 'optimize': 'max', |
| 295 }, | 295 }, |
| 296 'include_dirs+': [ | 296 'include_dirs+': [ |
| 297 '../..', | 297 '../..', |
| 298 ], | 298 ], |
| 299 'sources': [ ### gcmole(all) ### | 299 'sources': [ ### gcmole(all) ### |
| 300 '../../src/accessors.cc', | 300 '../../src/accessors.cc', |
| 301 '../../src/accessors.h', | 301 '../../src/accessors.h', |
| (...skipping 807 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1109 ['OS=="win"', { | 1109 ['OS=="win"', { |
| 1110 'defines': ['ICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_SHARED'], | 1110 'defines': ['ICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_SHARED'], |
| 1111 }, { | 1111 }, { |
| 1112 'defines': ['ICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC'], | 1112 'defines': ['ICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC'], |
| 1113 }], | 1113 }], |
| 1114 ], | 1114 ], |
| 1115 }], | 1115 }], |
| 1116 ], | 1116 ], |
| 1117 }, | 1117 }, |
| 1118 { | 1118 { |
| 1119 'target_name': 'v8_libbase', | |
| 1120 'type': 'static_library', | |
| 1121 'variables': { | |
| 1122 'optimize': 'max', | |
| 1123 }, | |
| 1124 'include_dirs+': [ | |
| 1125 '../..', | |
| 1126 ], | |
| 1127 'sources': [ | |
| 1128 '../../src/base/atomicops.h', | |
| 1129 '../../src/base/atomicops_internals_arm64_gcc.h', | |
| 1130 '../../src/base/atomicops_internals_arm_gcc.h', | |
| 1131 '../../src/base/atomicops_internals_atomicword_compat.h', | |
| 1132 '../../src/base/atomicops_internals_mac.h', | |
| 1133 '../../src/base/atomicops_internals_mips_gcc.h', | |
| 1134 '../../src/base/atomicops_internals_tsan.h', | |
| 1135 '../../src/base/atomicops_internals_x86_gcc.cc', | |
| 1136 '../../src/base/atomicops_internals_x86_gcc.h', | |
| 1137 '../../src/base/atomicops_internals_x86_msvc.h', | |
| 1138 '../../src/base/bits.h', | |
| 1139 '../../src/base/build_config.h', | |
| 1140 '../../src/base/cpu.cc', | |
| 1141 '../../src/base/cpu.h', | |
| 1142 '../../src/base/flags.h', | |
| 1143 '../../src/base/lazy-instance.h', | |
| 1144 '../../src/base/logging.cc', | |
| 1145 '../../src/base/logging.h', | |
| 1146 '../../src/base/macros.h', | |
| 1147 '../../src/base/once.cc', | |
| 1148 '../../src/base/once.h', | |
| 1149 '../../src/base/platform/elapsed-timer.h', | |
| 1150 '../../src/base/platform/time.cc', | |
| 1151 '../../src/base/platform/time.h', | |
| 1152 '../../src/base/platform/condition-variable.cc', | |
| 1153 '../../src/base/platform/condition-variable.h', | |
| 1154 '../../src/base/platform/mutex.cc', | |
| 1155 '../../src/base/platform/mutex.h', | |
| 1156 '../../src/base/platform/platform.h', | |
| 1157 '../../src/base/platform/semaphore.cc', | |
| 1158 '../../src/base/platform/semaphore.h', | |
| 1159 '../../src/base/safe_conversions.h', | |
| 1160 '../../src/base/safe_conversions_impl.h', | |
| 1161 '../../src/base/safe_math.h', | |
| 1162 '../../src/base/safe_math_impl.h', | |
| 1163 '../../src/base/sys-info.cc', | |
| 1164 '../../src/base/sys-info.h', | |
| 1165 '../../src/base/utils/random-number-generator.cc', | |
| 1166 '../../src/base/utils/random-number-generator.h', | |
| 1167 ], | |
| 1168 'conditions': [ | |
| 1169 ['want_separate_host_toolset==1', { | |
| 1170 'toolsets': ['host', 'target'], | |
| 1171 }, { | |
| 1172 'toolsets': ['target'], | |
| 1173 }], | |
| 1174 ['OS=="linux"', { | |
| 1175 'link_settings': { | |
| 1176 'libraries': [ | |
| 1177 '-lrt' | |
| 1178 ] | |
| 1179 }, | |
| 1180 'sources': [ | |
| 1181 '../../src/base/platform/platform-linux.cc', | |
| 1182 '../../src/base/platform/platform-posix.cc' | |
| 1183 ], | |
| 1184 } | |
| 1185 ], | |
| 1186 ['OS=="android"', { | |
| 1187 'sources': [ | |
| 1188 '../../src/base/platform/platform-posix.cc' | |
| 1189 ], | |
| 1190 'conditions': [ | |
| 1191 ['host_os=="mac"', { | |
| 1192 'target_conditions': [ | |
| 1193 ['_toolset=="host"', { | |
| 1194 'sources': [ | |
| 1195 '../../src/base/platform/platform-macos.cc' | |
| 1196 ] | |
| 1197 }, { | |
| 1198 'sources': [ | |
| 1199 '../../src/base/platform/platform-linux.cc' | |
| 1200 ] | |
| 1201 }], | |
| 1202 ], | |
| 1203 }, { | |
| 1204 # TODO(bmeurer): What we really want here, is this: | |
| 1205 # | |
| 1206 # 'link_settings': { | |
| 1207 # 'target_conditions': [ | |
| 1208 # ['_toolset=="host"', { | |
| 1209 # 'libraries': [ | |
| 1210 # '-lrt' | |
| 1211 # ] | |
| 1212 # }] | |
| 1213 # ] | |
| 1214 # }, | |
| 1215 # | |
| 1216 # but we can't do this right now, as the AOSP does not support | |
| 1217 # linking against the host librt, so we need to work around this | |
| 1218 # for now, using the following hack (see platform/time.cc): | |
| 1219 'target_conditions': [ | |
| 1220 ['_toolset=="host"', { | |
| 1221 'defines': [ | |
| 1222 'V8_LIBRT_NOT_AVAILABLE=1', | |
| 1223 ], | |
| 1224 }], | |
| 1225 ], | |
| 1226 'sources': [ | |
| 1227 '../../src/base/platform/platform-linux.cc' | |
| 1228 ] | |
| 1229 }], | |
| 1230 ], | |
| 1231 }, | |
| 1232 ], | |
| 1233 ['OS=="qnx"', { | |
| 1234 'link_settings': { | |
| 1235 'target_conditions': [ | |
| 1236 ['_toolset=="host" and host_os=="linux"', { | |
| 1237 'libraries': [ | |
| 1238 '-lrt' | |
| 1239 ], | |
| 1240 }], | |
| 1241 ['_toolset=="target"', { | |
| 1242 'libraries': [ | |
| 1243 '-lbacktrace' | |
| 1244 ], | |
| 1245 }], | |
| 1246 ], | |
| 1247 }, | |
| 1248 'sources': [ | |
| 1249 '../../src/base/platform/platform-posix.cc', | |
| 1250 '../../src/base/qnx-math.h', | |
| 1251 ], | |
| 1252 'target_conditions': [ | |
| 1253 ['_toolset=="host" and host_os=="linux"', { | |
| 1254 'sources': [ | |
| 1255 '../../src/base/platform/platform-linux.cc' | |
| 1256 ], | |
| 1257 }], | |
| 1258 ['_toolset=="host" and host_os=="mac"', { | |
| 1259 'sources': [ | |
| 1260 '../../src/base/platform/platform-macos.cc' | |
| 1261 ], | |
| 1262 }], | |
| 1263 ['_toolset=="target"', { | |
| 1264 'sources': [ | |
| 1265 '../../src/base/platform/platform-qnx.cc' | |
| 1266 ], | |
| 1267 }], | |
| 1268 ], | |
| 1269 }, | |
| 1270 ], | |
| 1271 ['OS=="freebsd"', { | |
| 1272 'link_settings': { | |
| 1273 'libraries': [ | |
| 1274 '-L/usr/local/lib -lexecinfo', | |
| 1275 ]}, | |
| 1276 'sources': [ | |
| 1277 '../../src/base/platform/platform-freebsd.cc', | |
| 1278 '../../src/base/platform/platform-posix.cc' | |
| 1279 ], | |
| 1280 } | |
| 1281 ], | |
| 1282 ['OS=="openbsd"', { | |
| 1283 'link_settings': { | |
| 1284 'libraries': [ | |
| 1285 '-L/usr/local/lib -lexecinfo', | |
| 1286 ]}, | |
| 1287 'sources': [ | |
| 1288 '../../src/base/platform/platform-openbsd.cc', | |
| 1289 '../../src/base/platform/platform-posix.cc' | |
| 1290 ], | |
| 1291 } | |
| 1292 ], | |
| 1293 ['OS=="netbsd"', { | |
| 1294 'link_settings': { | |
| 1295 'libraries': [ | |
| 1296 '-L/usr/pkg/lib -Wl,-R/usr/pkg/lib -lexecinfo', | |
| 1297 ]}, | |
| 1298 'sources': [ | |
| 1299 '../../src/base/platform/platform-openbsd.cc', | |
| 1300 '../../src/base/platform/platform-posix.cc' | |
| 1301 ], | |
| 1302 } | |
| 1303 ], | |
| 1304 ['OS=="solaris"', { | |
| 1305 'link_settings': { | |
| 1306 'libraries': [ | |
| 1307 '-lnsl', | |
| 1308 ]}, | |
| 1309 'sources': [ | |
| 1310 '../../src/base/platform/platform-solaris.cc', | |
| 1311 '../../src/base/platform/platform-posix.cc' | |
| 1312 ], | |
| 1313 } | |
| 1314 ], | |
| 1315 ['OS=="mac"', { | |
| 1316 'sources': [ | |
| 1317 '../../src/base/platform/platform-macos.cc', | |
| 1318 '../../src/base/platform/platform-posix.cc' | |
| 1319 ]}, | |
| 1320 ], | |
| 1321 ['OS=="win"', { | |
| 1322 'defines': [ | |
| 1323 '_CRT_RAND_S' # for rand_s() | |
| 1324 ], | |
| 1325 'variables': { | |
| 1326 'gyp_generators': '<!(echo $GYP_GENERATORS)', | |
| 1327 }, | |
| 1328 'conditions': [ | |
| 1329 ['gyp_generators=="make"', { | |
| 1330 'variables': { | |
| 1331 'build_env': '<!(uname -o)', | |
| 1332 }, | |
| 1333 'conditions': [ | |
| 1334 ['build_env=="Cygwin"', { | |
| 1335 'sources': [ | |
| 1336 '../../src/base/platform/platform-cygwin.cc', | |
| 1337 '../../src/base/platform/platform-posix.cc' | |
| 1338 ], | |
| 1339 }, { | |
| 1340 'sources': [ | |
| 1341 '../../src/base/platform/platform-win32.cc', | |
| 1342 '../../src/base/win32-headers.h', | |
| 1343 '../../src/base/win32-math.cc', | |
| 1344 '../../src/base/win32-math.h' | |
| 1345 ], | |
| 1346 }], | |
| 1347 ], | |
| 1348 'link_settings': { | |
| 1349 'libraries': [ '-lwinmm', '-lws2_32' ], | |
| 1350 }, | |
| 1351 }, { | |
| 1352 'sources': [ | |
| 1353 '../../src/base/platform/platform-win32.cc', | |
| 1354 '../../src/base/win32-headers.h', | |
| 1355 '../../src/base/win32-math.cc', | |
| 1356 '../../src/base/win32-math.h' | |
| 1357 ], | |
| 1358 'msvs_disabled_warnings': [4351, 4355, 4800], | |
| 1359 'link_settings': { | |
| 1360 'libraries': [ '-lwinmm.lib', '-lws2_32.lib' ], | |
| 1361 }, | |
| 1362 }], | |
| 1363 ], | |
| 1364 }], | |
| 1365 ], | |
| 1366 }, | |
| 1367 { | |
| 1368 'target_name': 'v8_libplatform', | 1119 'target_name': 'v8_libplatform', |
| 1369 'type': 'static_library', | 1120 'type': 'static_library', |
| 1370 'variables': { | 1121 'variables': { |
| 1371 'optimize': 'max', | 1122 'optimize': 'max', |
| 1372 }, | 1123 }, |
| 1373 'dependencies': [ | 1124 'dependencies': [ |
| 1374 'v8_libbase', | 1125 '../../src/base/base.gyp:base', |
| 1375 ], | 1126 ], |
| 1376 'include_dirs+': [ | 1127 'include_dirs+': [ |
| 1377 '../..', | 1128 '../..', |
| 1378 ], | 1129 ], |
| 1379 'sources': [ | 1130 'sources': [ |
| 1380 '../../include/libplatform/libplatform.h', | 1131 '../../include/libplatform/libplatform.h', |
| 1381 '../../src/libplatform/default-platform.cc', | 1132 '../../src/libplatform/default-platform.cc', |
| 1382 '../../src/libplatform/default-platform.h', | 1133 '../../src/libplatform/default-platform.h', |
| 1383 '../../src/libplatform/task-queue.cc', | 1134 '../../src/libplatform/task-queue.cc', |
| 1384 '../../src/libplatform/task-queue.h', | 1135 '../../src/libplatform/task-queue.h', |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1583 }], | 1334 }], |
| 1584 ['v8_compress_startup_data=="bz2"', { | 1335 ['v8_compress_startup_data=="bz2"', { |
| 1585 'libraries': [ | 1336 'libraries': [ |
| 1586 '-lbz2', | 1337 '-lbz2', |
| 1587 ] | 1338 ] |
| 1588 }], | 1339 }], |
| 1589 ], | 1340 ], |
| 1590 }, | 1341 }, |
| 1591 ], | 1342 ], |
| 1592 } | 1343 } |
| OLD | NEW |