Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 { | 5 { |
| 6 'variables': { | 6 'variables': { |
| 7 'variables': { | 7 'variables': { |
| 8 # Enable -Werror by default, but put it in a variable so it can | 8 # Enable -Werror by default, but put it in a variable so it can |
| 9 # be optionally disabled. | 9 # be optionally disabled. |
| 10 'werror%': '-Werror', | 10 'werror%': '-Werror', |
| (...skipping 1264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1275 '--defines=^(defines) >(_defines)', | 1275 '--defines=^(defines) >(_defines)', |
| 1276 '--link_flags=-m32 -B>(tc_lib_dir_glibc32) ^(link_flags) >(_l ink_flags)', | 1276 '--link_flags=-m32 -B>(tc_lib_dir_glibc32) ^(link_flags) >(_l ink_flags)', |
| 1277 '--source-list=^(source_list_glibc32)', | 1277 '--source-list=^(source_list_glibc32)', |
| 1278 ], | 1278 ], |
| 1279 }, | 1279 }, |
| 1280 ], | 1280 ], |
| 1281 }], | 1281 }], |
| 1282 ], # end target_conditions for glibc (nexe/nlib/nso, x86-32/64) | 1282 ], # end target_conditions for glibc (nexe/nlib/nso, x86-32/64) |
| 1283 }, | 1283 }, |
| 1284 }], # end target_arch == ia32 or x64 | 1284 }], # end target_arch == ia32 or x64 |
| 1285 ], | 1285 ['1==1', { # Always true condition to match the nesting level of the |
|
Mark Seaborn
2014/10/30 18:25:07
"True" rather than "1==1"?
Can you add some expla
bradn
2014/12/01 19:15:46
I've expanded the comment.
I'd file an issue but I
Mark Seaborn
2014/12/01 19:18:46
I meant link to the issue you're fixing: https://c
bradn
2014/12/04 22:09:28
Ah, ok. done.
| |
| 1286 'target_defaults': { | 1286 # non-pnacl stanzas. |
| 1287 'gcc_compile_flags': [], | 1287 'target_defaults': { |
| 1288 'pnacl_compile_flags': [], | 1288 'gcc_compile_flags': [], |
| 1289 'variables': { | 1289 'pnacl_compile_flags': [], |
| 1290 'disable_pnacl%': 0, | 1290 'variables': { |
| 1291 'build_pnacl_newlib': 0, | 1291 'disable_pnacl%': 0, |
| 1292 # Flag to translate pexes into nexes at build time (vs in the browser). | 1292 'build_pnacl_newlib': 0, |
| 1293 'translate_pexe_with_build': 0, | 1293 # Flag to translate pexes into nexes at build time (vs in the browser) . |
|
Mark Seaborn
2014/10/30 18:25:07
Wrap comments for lines >80 chars?
bradn
2014/12/01 19:15:46
Done.
| |
| 1294 # Flag to indicate that PNaCl should compile with the native ABI | 1294 'translate_pexe_with_build': 0, |
| 1295 # instead of the le32 ABI. | 1295 # Flag to indicate that PNaCl should compile with the native ABI |
| 1296 'pnacl_native_biased': 0, | 1296 # instead of the le32 ABI. |
| 1297 'nexe_target': '', | 1297 'pnacl_native_biased': 0, |
| 1298 'nlib_target': '', | 1298 'nexe_target': '', |
| 1299 'extra_deps_pnacl_newlib': [], | 1299 'nlib_target': '', |
| 1300 'tc_lib_dir_pnacl_newlib': '<(SHARED_INTERMEDIATE_DIR)/tc_pnacl_newlib/lib ', | 1300 'extra_deps_pnacl_newlib': [], |
| 1301 'tc_lib_dir_pnacl_translate' :'<(SHARED_INTERMEDIATE_DIR)/tc_pnacl_transla te', | 1301 'tc_lib_dir_pnacl_newlib': '<(SHARED_INTERMEDIATE_DIR)/tc_pnacl_newlib /lib', |
| 1302 'tc_include_dir_pnacl_newlib': '<(SHARED_INTERMEDIATE_DIR)/tc_pnacl_newlib /include', | 1302 'tc_lib_dir_pnacl_translate' :'<(SHARED_INTERMEDIATE_DIR)/tc_pnacl_tra nslate', |
| 1303 'compile_flags': [ | 1303 'tc_include_dir_pnacl_newlib': '<(SHARED_INTERMEDIATE_DIR)/tc_pnacl_ne wlib/include', |
| 1304 '<@(nacl_default_compile_flags)', | 1304 'compile_flags': [ |
| 1305 ], | 1305 '<@(nacl_default_compile_flags)', |
| 1306 'gcc_compile_flags': [ | 1306 ], |
| 1307 '-fomit-frame-pointer', | 1307 'gcc_compile_flags': [ |
| 1308 # A debugger should be able to unwind IRT call frames. As the IRT is | 1308 '-fomit-frame-pointer', |
| 1309 # compiled with high level of optimizations and without debug info, | 1309 # A debugger should be able to unwind IRT call frames. As the IRT is |
| 1310 # compiler is requested to generate unwind tables explicitly. This | 1310 # compiled with high level of optimizations and without debug info, |
| 1311 # is the default behavior on x86-64 and when compiling C++ with | 1311 # compiler is requested to generate unwind tables explicitly. This |
| 1312 # exceptions enabled, the change is for the benefit of x86-32 C. | 1312 # is the default behavior on x86-64 and when compiling C++ with |
| 1313 # These are only required for the IRT but are here for all | 1313 # exceptions enabled, the change is for the benefit of x86-32 C. |
| 1314 # nacl-gcc-compiled binaries because the IRT depends on other libs | 1314 # These are only required for the IRT but are here for all |
| 1315 '-fasynchronous-unwind-tables', | 1315 # nacl-gcc-compiled binaries because the IRT depends on other libs |
| 1316 ], | 1316 '-fasynchronous-unwind-tables', |
| 1317 'pnacl_compile_flags': [ | 1317 ], |
| 1318 '-Wno-extra-semi', | 1318 'pnacl_compile_flags': [ |
| 1319 '-Wno-unused-private-field', | 1319 '-Wno-extra-semi', |
| 1320 '-Wno-char-subscripts', | 1320 '-Wno-unused-private-field', |
| 1321 '-Wno-unused-function', | 1321 '-Wno-char-subscripts', |
| 1322 ], | 1322 '-Wno-unused-function', |
| 1323 # IRT compile/link flags to make the binary smaller. | 1323 ], |
| 1324 # Omitted from non-IRT libraries to keep the libraries themselves small. | 1324 # IRT compile/link flags to make the binary smaller. |
| 1325 'gcc_irt_compile_flags': [ | 1325 # Omitted from non-IRT libraries to keep the libraries themselves smal l. |
|
Mark Seaborn
2014/10/30 18:25:07
Wrap
bradn
2014/12/01 19:15:46
Done.
| |
| 1326 '-ffunction-sections', | 1326 'gcc_irt_compile_flags': [ |
| 1327 '-fdata-sections', | 1327 '-ffunction-sections', |
| 1328 ], | 1328 '-fdata-sections', |
| 1329 'gcc_irt_link_flags': [ | 1329 ], |
| 1330 '-Wl,--gc-sections', | 1330 'gcc_irt_link_flags': [ |
| 1331 ], | 1331 '-Wl,--gc-sections', |
| 1332 'pnacl_irt_link_flags': [ | 1332 ], |
| 1333 '-Wt,-ffunction-sections', | 1333 'pnacl_irt_link_flags': [ |
| 1334 '-Wt,-fdata-sections', | 1334 '-Wt,-ffunction-sections', |
| 1335 '-Wn,--gc-sections', | 1335 '-Wt,-fdata-sections', |
| 1336 ], | 1336 '-Wn,--gc-sections', |
| 1337 }, | 1337 ], |
| 1338 'target_conditions': [ | 1338 }, |
| 1339 # pnacl actions for building pexes and translating them | 1339 'target_conditions': [ |
| 1340 ['nexe_target!="" and disable_pnacl==0 and build_pnacl_newlib!=0 ' | 1340 # pnacl actions for building pexes and translating them |
| 1341 'and pnacl_native_biased==0', { | 1341 ['nexe_target!="" and disable_pnacl==0 and build_pnacl_newlib!=0 ' |
| 1342 'variables': { | 1342 'and pnacl_native_biased==0', { |
| 1343 'out_pnacl_newlib_x86_32_nexe%': '<(PRODUCT_DIR)/>(nexe_target)_pnacl _newlib_x32.nexe', | |
| 1344 'out_pnacl_newlib_x86_64_nexe%': '<(PRODUCT_DIR)/>(nexe_target)_pnacl _newlib_x64.nexe', | |
| 1345 'out_pnacl_newlib_arm_nexe%': '<(PRODUCT_DIR)/>(nexe_target)_pnacl_ne wlib_arm.nexe', | |
| 1346 'out_pnacl_newlib_mips_nexe%': '<(PRODUCT_DIR)/>(nexe_target)_pnacl_n ewlib_mips32.nexe', | |
| 1347 'out_pnacl_newlib_x86_32_nonsfi_nexe%': '<(PRODUCT_DIR)/>(nexe_target )_pnacl_newlib_x32_nonsfi.nexe', | |
| 1348 'tool_name': 'pnacl_newlib', | |
| 1349 'inst_dir': '<(SHARED_INTERMEDIATE_DIR)/tc_pnacl_newlib', | |
| 1350 'out_pnacl_newlib%': '<(PRODUCT_DIR)/>(nexe_target)_newlib.pexe', | |
| 1351 'objdir_pnacl_newlib%': '>(INTERMEDIATE_DIR)/<(tool_name)/>(_target_n ame)', | |
| 1352 'link_flags': [ | |
| 1353 '-O3', | |
| 1354 ], | |
| 1355 'translate_flags': [], | |
| 1356 }, | |
| 1357 'actions': [ | |
| 1358 { | |
| 1359 'action_name': 'build newlib pexe', | |
| 1360 'variables': { | 1343 'variables': { |
| 1361 'source_list_pnacl_newlib%': '^|(<(tool_name).>(_target_name).sou rce_list.gypcmd ^(_sources) ^(sources))', | 1344 'out_pnacl_newlib_x86_32_nexe%': '<(PRODUCT_DIR)/>(nexe_target)_p nacl_newlib_x32.nexe', |
| 1362 }, | 1345 'out_pnacl_newlib_x86_64_nexe%': '<(PRODUCT_DIR)/>(nexe_target)_p nacl_newlib_x64.nexe', |
| 1363 'msvs_cygwin_shell': 0, | 1346 'out_pnacl_newlib_arm_nexe%': '<(PRODUCT_DIR)/>(nexe_target)_pnac l_newlib_arm.nexe', |
| 1364 'description': 'building >(out_pnacl_newlib)', | 1347 'out_pnacl_newlib_mips_nexe%': '<(PRODUCT_DIR)/>(nexe_target)_pna cl_newlib_mips32.nexe', |
| 1365 'inputs': [ | 1348 'out_pnacl_newlib_x86_32_nonsfi_nexe%': '<(PRODUCT_DIR)/>(nexe_ta rget)_pnacl_newlib_x32_nonsfi.nexe', |
| 1366 '<(DEPTH)/native_client/build/build_nexe.py', | 1349 'tool_name': 'pnacl_newlib', |
| 1367 '>!@pymod_do_main(scan_sources -I . >(include_dirs) >(_include_di rs) -S >(sources) >(_sources))', | 1350 'inst_dir': '<(SHARED_INTERMEDIATE_DIR)/tc_pnacl_newlib', |
| 1368 '>@(extra_deps)', | 1351 'out_pnacl_newlib%': '<(PRODUCT_DIR)/>(nexe_target)_newlib.pexe', |
| 1369 '>@(extra_deps_pnacl_newlib)', | 1352 'objdir_pnacl_newlib%': '>(INTERMEDIATE_DIR)/<(tool_name)/>(_targ et_name)', |
| 1370 '^(source_list_pnacl_newlib)', | 1353 'link_flags': [ |
| 1371 '<(SHARED_INTERMEDIATE_DIR)/sdk/<(TOOLCHAIN_OS)_x86/pnacl_newlib/ stamp.prep', | 1354 '-O3', |
| 1372 ], | |
| 1373 'outputs': ['>(out_pnacl_newlib)'], | |
| 1374 'action': [ | |
| 1375 '<@(common_args)', | |
| 1376 '>@(extra_args)', | |
| 1377 '--arch', 'pnacl', | |
| 1378 '--build', 'newlib_pexe', | |
| 1379 '--name', '>(out_pnacl_newlib)', | |
| 1380 '--objdir', '>(objdir_pnacl_newlib)', | |
| 1381 '--include-dirs=>(tc_include_dir_pnacl_newlib) ^(include_dirs) >( _include_dirs)', | |
| 1382 # TODO(dschuff): try removing gline-tables-only after 3.5 merge | |
| 1383 # when debug metadata is less memory-intensive | |
| 1384 '--compile_flags=^(compile_flags) >(_compile_flags) -gline-tables -only ^(pnacl_compile_flags) >(_pnacl_compile_flags)', | |
| 1385 '--gomadir', '<(gomadir)', | |
| 1386 '--defines=^(defines) >(_defines)', | |
| 1387 '--link_flags=-B<(SHARED_INTERMEDIATE_DIR)/tc_pnacl_newlib/lib ^( link_flags) >(_link_flags)', | |
| 1388 '--source-list=^(source_list_pnacl_newlib)', | |
| 1389 ], | |
| 1390 }], | |
| 1391 'target_conditions': [ | |
| 1392 [ 'enable_x86_32!=0 and translate_pexe_with_build!=0', { | |
| 1393 'actions': [{ | |
| 1394 'action_name': 'translate newlib pexe to x86-32 nexe', | |
| 1395 'msvs_cygwin_shell': 0, | |
| 1396 'description': 'translating >(out_pnacl_newlib_x86_32_nexe)', | |
| 1397 'inputs': [ | |
| 1398 # Having this in the input somehow causes devenv warnings | |
| 1399 # when building pnacl browser tests. | |
| 1400 # '<(DEPTH)/native_client/build/build_nexe.py', | |
| 1401 '>(out_pnacl_newlib)', | |
| 1402 ], | 1355 ], |
| 1403 'outputs': [ '>(out_pnacl_newlib_x86_32_nexe)' ], | 1356 'translate_flags': [], |
| 1404 'action' : [ | |
| 1405 '<@(common_args)', | |
| 1406 '--arch', 'x86-32', | |
| 1407 '--build', 'newlib_translate', | |
| 1408 '--name', '>(out_pnacl_newlib_x86_32_nexe)', | |
| 1409 '--link_flags=^(translate_flags) >(translate_flags) -Wl,-L>(tc_ lib_dir_pnacl_translate)/lib-x86-32', | |
| 1410 '>(out_pnacl_newlib)', | |
| 1411 ], | |
| 1412 }], | |
| 1413 }], | |
| 1414 [ 'enable_x86_32_nonsfi!=0 and translate_pexe_with_build!=0', { | |
| 1415 'actions': [{ | |
| 1416 'action_name': 'translate newlib pexe to x86-32-nonsfi nexe', | |
| 1417 'msvs_cygwin_shell': 0, | |
| 1418 'description': 'translating >(out_pnacl_newlib_x86_32_nonsfi_nexe )', | |
| 1419 'inputs': [ | |
| 1420 # Having this in the input somehow causes devenv warnings | |
| 1421 # when building pnacl browser tests. | |
| 1422 # '<(DEPTH)/native_client/build/build_nexe.py', | |
| 1423 '>(out_pnacl_newlib)', | |
| 1424 ], | |
| 1425 'outputs': [ '>(out_pnacl_newlib_x86_32_nonsfi_nexe)' ], | |
| 1426 'action' : [ | |
| 1427 '<@(common_args)', | |
| 1428 '--arch', 'x86-32-nonsfi', | |
| 1429 '--build', 'newlib_translate', | |
| 1430 '--name', '>(out_pnacl_newlib_x86_32_nonsfi_nexe)', | |
| 1431 '--link_flags=^(translate_flags) >(translate_flags) -Wl,-L>(tc_ lib_dir_pnacl_translate)/lib-x86-32-nonsfi', | |
| 1432 '>(out_pnacl_newlib)', | |
| 1433 ], | |
| 1434 }], | |
| 1435 }], | |
| 1436 [ 'enable_x86_64!=0 and translate_pexe_with_build!=0', { | |
| 1437 'actions': [{ | |
| 1438 'action_name': 'translate newlib pexe to x86-64 nexe', | |
| 1439 'msvs_cygwin_shell': 0, | |
| 1440 'description': 'translating >(out_pnacl_newlib_x86_64_nexe)', | |
| 1441 'inputs': [ | |
| 1442 # Having this in the input somehow causes devenv warnings | |
| 1443 # when building pnacl browser tests. | |
| 1444 # '<(DEPTH)/native_client/build/build_nexe.py', | |
| 1445 '>(out_pnacl_newlib)', | |
| 1446 ], | |
| 1447 'outputs': [ '>(out_pnacl_newlib_x86_64_nexe)' ], | |
| 1448 'action' : [ | |
| 1449 '<@(common_args)', | |
| 1450 '--arch', 'x86-64', | |
| 1451 '--build', 'newlib_translate', | |
| 1452 '--name', '>(out_pnacl_newlib_x86_64_nexe)', | |
| 1453 '--link_flags=^(translate_flags) >(translate_flags) -Wl,-L>(tc_ lib_dir_pnacl_translate)/lib-x86-64', | |
| 1454 '>(out_pnacl_newlib)', | |
| 1455 ], | |
| 1456 }], | |
| 1457 }], | |
| 1458 [ 'enable_arm!=0 and translate_pexe_with_build!=0', { | |
| 1459 'actions': [{ | |
| 1460 'action_name': 'translate newlib pexe to ARM nexe', | |
| 1461 'msvs_cygwin_shell': 0, | |
| 1462 'description': 'translating >(out_pnacl_newlib_arm_nexe)', | |
| 1463 'inputs': [ | |
| 1464 # Having this in the input somehow causes devenv warnings | |
| 1465 # when building pnacl browser tests. | |
| 1466 # '<(DEPTH)/native_client/build/build_nexe.py', | |
| 1467 '>(out_pnacl_newlib)', | |
| 1468 ], | |
| 1469 'outputs': [ '>(out_pnacl_newlib_arm_nexe)' ], | |
| 1470 'action' : [ | |
| 1471 '<@(common_args)', | |
| 1472 '--arch', 'arm', | |
| 1473 '--build', 'newlib_translate', | |
| 1474 '--name', '>(out_pnacl_newlib_arm_nexe)', | |
| 1475 '--link_flags=^(translate_flags) >(translate_flags) -Wl,-L>(tc_ lib_dir_pnacl_translate)/lib-arm', | |
| 1476 '>(out_pnacl_newlib)', | |
| 1477 ], | |
| 1478 }], | |
| 1479 }], | |
| 1480 [ 'enable_mips!=0 and translate_pexe_with_build!=0', { | |
| 1481 'actions': [{ | |
| 1482 'action_name': 'translate newlib pexe to MIPS nexe', | |
| 1483 'msvs_cygwin_shell': 0, | |
| 1484 'description': 'translating >(out_pnacl_newlib_mips_nexe)', | |
| 1485 'inputs': [ | |
| 1486 # Having this in the input somehow causes devenv warnings | |
| 1487 # when building pnacl browser tests. | |
| 1488 # '<(DEPTH)/native_client/build/build_nexe.py', | |
| 1489 '>(out_pnacl_newlib)', | |
| 1490 ], | |
| 1491 'outputs': [ '>(out_pnacl_newlib_mips_nexe)' ], | |
| 1492 'action' : [ | |
| 1493 '<@(common_args)', | |
| 1494 '--arch', 'mips', | |
| 1495 '--build', 'newlib_translate', | |
| 1496 '--name', '>(out_pnacl_newlib_mips_nexe)', | |
| 1497 '--link_flags=^(translate_flags) >(translate_flags) -Wl,-L>(tc_ lib_dir_pnacl_translate)/lib-mips32', | |
| 1498 '>(out_pnacl_newlib)', | |
| 1499 ], | |
| 1500 }], | |
| 1501 }], | |
| 1502 ], | |
| 1503 }], # end pnacl actions for building pexes and translating to nexes | |
| 1504 # pnacl action for building portable bitcode libraries | |
| 1505 ['nlib_target!="" and disable_pnacl==0 and build_pnacl_newlib!=0' | |
| 1506 'and pnacl_native_biased==0', { | |
| 1507 'variables': { | |
| 1508 'tool_name': 'pnacl_newlib', | |
| 1509 'objdir_pnacl_newlib%': '>(INTERMEDIATE_DIR)/<(tool_name)-pnacl/>(_ta rget_name)', | |
| 1510 'out_pnacl_newlib%': '<(SHARED_INTERMEDIATE_DIR)/tc_<(tool_name)/lib/ >(nlib_target)', | |
| 1511 }, | |
| 1512 'actions': [ | |
| 1513 { | |
| 1514 'action_name': 'build newlib plib', | |
| 1515 'variables': { | |
| 1516 'source_list_pnacl_newlib%': '^|(<(tool_name).>(_target_name).sou rce_list.gypcmd ^(_sources) ^(sources))', | |
| 1517 }, | |
| 1518 'msvs_cygwin_shell': 0, | |
| 1519 'description': 'building >(out_pnacl_newlib)', | |
| 1520 'inputs': [ | |
| 1521 '<(DEPTH)/native_client/build/build_nexe.py', | |
| 1522 '>!@pymod_do_main(scan_sources -I . >(include_dirs) >(_include_di rs) -S >(sources) >(_sources))', | |
| 1523 '>@(extra_deps)', | |
| 1524 '>@(extra_deps_pnacl_newlib)', | |
| 1525 '^(source_list_pnacl_newlib)', | |
| 1526 '<(SHARED_INTERMEDIATE_DIR)/sdk/<(TOOLCHAIN_OS)_x86/pnacl_newlib/ stamp.prep', | |
| 1527 ], | |
| 1528 'outputs': ['>(out_pnacl_newlib)'], | |
| 1529 'action': [ | |
| 1530 '<@(common_args)', | |
| 1531 '>@(extra_args)', | |
| 1532 '--arch', 'pnacl', | |
| 1533 '--build', 'newlib_plib', | |
| 1534 '--name', '>(out_pnacl_newlib)', | |
| 1535 '--objdir', '>(objdir_pnacl_newlib)', | |
| 1536 '--include-dirs=>(tc_include_dir_pnacl_newlib) ^(include_dirs) >( _include_dirs)', | |
| 1537 # TODO(dschuff): try removing gline-tables-only after 3.5 merge | |
| 1538 # when debug metadata is less memory-intensive | |
| 1539 '--compile_flags=^(compile_flags) >(_compile_flags) -gline-tables -only ^(pnacl_compile_flags) >(_pnacl_compile_flags)', | |
| 1540 '--gomadir', '<(gomadir)', | |
| 1541 '--defines=^(defines) >(_defines)', | |
| 1542 '--link_flags=-B>(tc_lib_dir_pnacl_newlib) ^(link_flags) >(_link_ flags)', | |
| 1543 '--source-list=^(source_list_pnacl_newlib)', | |
| 1544 ], | |
| 1545 }, | |
| 1546 ], | |
| 1547 }], # end pnacl actions for bitcode libraries | |
| 1548 ], # end target conditions for pnacl pexe/plib | |
| 1549 # pnacl actions for building ABI-biased native libraries | |
| 1550 'conditions': [ | |
| 1551 # ARM | |
| 1552 ['target_arch=="arm"', { | |
| 1553 'target_conditions': [ | |
| 1554 ['disable_pnacl==0 and pnacl_native_biased==1 and nlib_target!="" and build_pnacl_newlib!=0', { | |
| 1555 'variables': { | |
| 1556 'tool_name': 'pnacl_newlib_arm', | |
| 1557 'out_pnacl_newlib_arm%': '<(SHARED_INTERMEDIATE_DIR)/tc_<(tool_na me)/libarm/>(nlib_target)', | |
| 1558 'objdir_pnacl_newlib_arm%': '>(INTERMEDIATE_DIR)/<(tool_name)/>(_ target_name)', | |
| 1559 }, | |
| 1560 'actions': [ | |
| 1561 { | |
| 1562 'action_name': 'build newlib arm nlib (via pnacl)', | |
| 1563 'variables': { | |
| 1564 'source_list_pnacl_newlib_arm%': '^|(<(tool_name).>(_target_na me).source_list.gypcmd ^(_sources) ^(sources))', | |
| 1565 }, | |
| 1566 'msvs_cygwin_shell': 0, | |
| 1567 'description': 'building >(out_pnacl_newlib_arm)', | |
| 1568 'inputs': [ | |
| 1569 '<(DEPTH)/native_client/build/build_nexe.py', | |
| 1570 '>!@pymod_do_main(scan_sources -I . >(include_dirs) >(_include _dirs) -S >(sources) >(_sources))', | |
| 1571 '>@(extra_deps)', | |
| 1572 '>@(extra_deps_pnacl_newlib)', | |
| 1573 '^(source_list_pnacl_newlib_arm)', | |
| 1574 '<(SHARED_INTERMEDIATE_DIR)/sdk/<(TOOLCHAIN_OS)_x86/pnacl_newl ib/stamp.prep' | |
| 1575 ], | |
| 1576 'outputs': ['>(out_pnacl_newlib_arm)'], | |
| 1577 'action': [ | |
| 1578 '<@(common_args)', | |
| 1579 '>@(extra_args)', | |
| 1580 '--arch', 'arm', | |
| 1581 '--build', 'newlib_nlib_pnacl', | |
| 1582 '--name', '>(out_pnacl_newlib_arm)', | |
| 1583 '--objdir', '>(objdir_pnacl_newlib_arm)', | |
| 1584 '--include-dirs=>(tc_include_dir_pnacl_newlib) ^(include_dirs) >(_include_dirs)', | |
| 1585 '--compile_flags=--target=armv7-unknown-nacl-gnueabi -mfloat-a bi=hard --pnacl-allow-translate -arch arm ^(compile_flags) >(_compile_flags) ^(p nacl_compile_flags) >(_pnacl_compile_flags)', | |
| 1586 '--gomadir', '<(gomadir)', | |
| 1587 '--defines=^(defines) >(_defines)', | |
| 1588 '--link_flags=-B>(tc_lib_dir_pnacl_newlib) ^(link_flags) >(_li nk_flags)', | |
| 1589 '--source-list=^(source_list_pnacl_newlib_arm)', | |
| 1590 ], | |
| 1591 }, | |
| 1592 ], | |
| 1593 }], | |
| 1594 ], | |
| 1595 }], # end ARM | |
| 1596 # ia32 or x64 (want to build both for Windows) | |
| 1597 ['target_arch=="ia32" or target_arch=="x64"', { | |
| 1598 'target_conditions': [ | |
| 1599 # x64 | |
| 1600 ['enable_x86_64!=0 and disable_pnacl==0 and pnacl_native_biased==1 ' | |
| 1601 'and nlib_target!="" and build_pnacl_newlib!=0', { | |
| 1602 'variables': { | |
| 1603 'tool_name': 'pnacl_newlib_x86_64', | |
| 1604 'out_pnacl_newlib_x86_64%': '<(SHARED_INTERMEDIATE_DIR)/tc_<(tool _name)/lib-x86-64/>(nlib_target)', | |
| 1605 'objdir_pnacl_newlib_x86_64%': '>(INTERMEDIATE_DIR)/<(tool_name)/ >(_target_name)', | |
| 1606 }, | 1357 }, |
| 1607 'actions': [ | 1358 'actions': [ |
| 1608 { | 1359 { |
| 1609 'action_name': 'build newlib x86-64 nlib (via pnacl)', | 1360 'action_name': 'build newlib pexe', |
| 1610 'variables': { | 1361 'variables': { |
| 1611 'source_list_pnacl_newlib_x86_64%': '^|(<(tool_name).>(_targe t_name).source_list.gypcmd ^(_sources) ^(sources))', | 1362 'source_list_pnacl_newlib%': '^|(<(tool_name).>(_target_name) .source_list.gypcmd ^(_sources) ^(sources))', |
| 1612 }, | 1363 }, |
| 1613 'msvs_cygwin_shell': 0, | 1364 'msvs_cygwin_shell': 0, |
| 1614 'description': 'building >(out_pnacl_newlib_x86_64)', | 1365 'description': 'building >(out_pnacl_newlib)', |
| 1615 'inputs': [ | 1366 'inputs': [ |
| 1616 '<(DEPTH)/native_client/build/build_nexe.py', | 1367 '<(DEPTH)/native_client/build/build_nexe.py', |
| 1617 '>!@pymod_do_main(scan_sources -I . >(include_dirs) >(_includ e_dirs) -S >(sources) >(_sources))', | 1368 '>!@pymod_do_main(scan_sources -I . >(include_dirs) >(_includ e_dirs) -S >(sources) >(_sources))', |
| 1618 '>@(extra_deps)', | 1369 '>@(extra_deps)', |
| 1619 '>@(extra_deps_pnacl_newlib)', | 1370 '>@(extra_deps_pnacl_newlib)', |
| 1620 '^(source_list_pnacl_newlib_x86_64)', | 1371 '^(source_list_pnacl_newlib)', |
| 1621 '<(SHARED_INTERMEDIATE_DIR)/sdk/<(TOOLCHAIN_OS)_x86/pnacl_new lib/stamp.prep' | 1372 '<(SHARED_INTERMEDIATE_DIR)/sdk/<(TOOLCHAIN_OS)_x86/pnacl_new lib/stamp.prep', |
| 1622 ], | 1373 ], |
| 1623 'outputs': ['>(out_pnacl_newlib_x86_64)'], | 1374 'outputs': ['>(out_pnacl_newlib)'], |
| 1624 'action': [ | 1375 'action': [ |
| 1625 '<@(common_args)', | 1376 '<@(common_args)', |
| 1626 '>@(extra_args)', | 1377 '>@(extra_args)', |
| 1627 '--arch', 'x86-64', | 1378 '--arch', 'pnacl', |
| 1628 '--build', 'newlib_nlib_pnacl', | 1379 '--build', 'newlib_pexe', |
| 1629 '--name', '>(out_pnacl_newlib_x86_64)', | 1380 '--name', '>(out_pnacl_newlib)', |
| 1630 '--objdir', '>(objdir_pnacl_newlib_x86_64)', | 1381 '--objdir', '>(objdir_pnacl_newlib)', |
| 1631 '--include-dirs=>(tc_include_dir_pnacl_newlib) ^(include_dirs ) >(_include_dirs)', | 1382 '--include-dirs=>(tc_include_dir_pnacl_newlib) ^(include_dirs ) >(_include_dirs)', |
| 1632 '--compile_flags=--target=x86_64-unknown-nacl --pnacl-allow-t ranslate -arch x86-64 ^(compile_flags) >(_compile_flags) ^(pnacl_compile_flags) >(_pnacl_compile_flags)', | 1383 # TODO(dschuff): try removing gline-tables-only after 3.5 mer ge |
|
Mark Seaborn
2014/10/30 18:25:07
Wrap
Same for others below...
bradn
2014/12/01 19:15:46
Done.
| |
| 1384 # when debug metadata is less memory-intensive | |
| 1385 '--compile_flags=^(compile_flags) >(_compile_flags) -gline-ta bles-only ^(pnacl_compile_flags) >(_pnacl_compile_flags)', | |
| 1633 '--gomadir', '<(gomadir)', | 1386 '--gomadir', '<(gomadir)', |
| 1634 '--defines=^(defines) >(_defines)', | 1387 '--defines=^(defines) >(_defines)', |
| 1635 '--link_flags=-B>(tc_lib_dir_pnacl_newlib) ^(link_flags) >(_l ink_flags)', | 1388 '--link_flags=-B<(SHARED_INTERMEDIATE_DIR)/tc_pnacl_newlib/li b ^(link_flags) >(_link_flags)', |
| 1636 '--source-list=^(source_list_pnacl_newlib_x86_64)', | 1389 '--source-list=^(source_list_pnacl_newlib)', |
| 1637 ], | 1390 ], |
| 1638 }, | 1391 }], |
| 1392 'target_conditions': [ | |
| 1393 [ 'enable_x86_32!=0 and translate_pexe_with_build!=0', { | |
| 1394 'actions': [{ | |
| 1395 'action_name': 'translate newlib pexe to x86-32 nexe', | |
| 1396 'msvs_cygwin_shell': 0, | |
| 1397 'description': 'translating >(out_pnacl_newlib_x86_32_nexe)', | |
| 1398 'inputs': [ | |
| 1399 # Having this in the input somehow causes devenv warnings | |
| 1400 # when building pnacl browser tests. | |
| 1401 # '<(DEPTH)/native_client/build/build_nexe.py', | |
| 1402 '>(out_pnacl_newlib)', | |
| 1403 ], | |
| 1404 'outputs': [ '>(out_pnacl_newlib_x86_32_nexe)' ], | |
| 1405 'action' : [ | |
| 1406 '<@(common_args)', | |
| 1407 '--arch', 'x86-32', | |
| 1408 '--build', 'newlib_translate', | |
| 1409 '--name', '>(out_pnacl_newlib_x86_32_nexe)', | |
| 1410 '--link_flags=^(translate_flags) >(translate_flags) -Wl,-L> (tc_lib_dir_pnacl_translate)/lib-x86-32', | |
| 1411 '>(out_pnacl_newlib)', | |
| 1412 ], | |
| 1413 }], | |
| 1414 }], | |
| 1415 [ 'enable_x86_32_nonsfi!=0 and translate_pexe_with_build!=0', { | |
| 1416 'actions': [{ | |
| 1417 'action_name': 'translate newlib pexe to x86-32-nonsfi nexe', | |
| 1418 'msvs_cygwin_shell': 0, | |
| 1419 'description': 'translating >(out_pnacl_newlib_x86_32_nonsfi_ nexe)', | |
| 1420 'inputs': [ | |
| 1421 # Having this in the input somehow causes devenv warnings | |
| 1422 # when building pnacl browser tests. | |
| 1423 # '<(DEPTH)/native_client/build/build_nexe.py', | |
| 1424 '>(out_pnacl_newlib)', | |
| 1425 ], | |
| 1426 'outputs': [ '>(out_pnacl_newlib_x86_32_nonsfi_nexe)' ], | |
| 1427 'action' : [ | |
| 1428 '<@(common_args)', | |
| 1429 '--arch', 'x86-32-nonsfi', | |
| 1430 '--build', 'newlib_translate', | |
| 1431 '--name', '>(out_pnacl_newlib_x86_32_nonsfi_nexe)', | |
| 1432 '--link_flags=^(translate_flags) >(translate_flags) -Wl,-L> (tc_lib_dir_pnacl_translate)/lib-x86-32-nonsfi', | |
| 1433 '>(out_pnacl_newlib)', | |
| 1434 ], | |
| 1435 }], | |
| 1436 }], | |
| 1437 [ 'enable_x86_64!=0 and translate_pexe_with_build!=0', { | |
| 1438 'actions': [{ | |
| 1439 'action_name': 'translate newlib pexe to x86-64 nexe', | |
| 1440 'msvs_cygwin_shell': 0, | |
| 1441 'description': 'translating >(out_pnacl_newlib_x86_64_nexe)', | |
| 1442 'inputs': [ | |
| 1443 # Having this in the input somehow causes devenv warnings | |
| 1444 # when building pnacl browser tests. | |
| 1445 # '<(DEPTH)/native_client/build/build_nexe.py', | |
| 1446 '>(out_pnacl_newlib)', | |
| 1447 ], | |
| 1448 'outputs': [ '>(out_pnacl_newlib_x86_64_nexe)' ], | |
| 1449 'action' : [ | |
| 1450 '<@(common_args)', | |
| 1451 '--arch', 'x86-64', | |
| 1452 '--build', 'newlib_translate', | |
| 1453 '--name', '>(out_pnacl_newlib_x86_64_nexe)', | |
| 1454 '--link_flags=^(translate_flags) >(translate_flags) -Wl,-L> (tc_lib_dir_pnacl_translate)/lib-x86-64', | |
| 1455 '>(out_pnacl_newlib)', | |
| 1456 ], | |
| 1457 }], | |
| 1458 }], | |
| 1459 [ 'enable_arm!=0 and translate_pexe_with_build!=0', { | |
| 1460 'actions': [{ | |
| 1461 'action_name': 'translate newlib pexe to ARM nexe', | |
| 1462 'msvs_cygwin_shell': 0, | |
| 1463 'description': 'translating >(out_pnacl_newlib_arm_nexe)', | |
| 1464 'inputs': [ | |
| 1465 # Having this in the input somehow causes devenv warnings | |
| 1466 # when building pnacl browser tests. | |
| 1467 # '<(DEPTH)/native_client/build/build_nexe.py', | |
| 1468 '>(out_pnacl_newlib)', | |
| 1469 ], | |
| 1470 'outputs': [ '>(out_pnacl_newlib_arm_nexe)' ], | |
| 1471 'action' : [ | |
| 1472 '<@(common_args)', | |
| 1473 '--arch', 'arm', | |
| 1474 '--build', 'newlib_translate', | |
| 1475 '--name', '>(out_pnacl_newlib_arm_nexe)', | |
| 1476 '--link_flags=^(translate_flags) >(translate_flags) -Wl,-L> (tc_lib_dir_pnacl_translate)/lib-arm', | |
| 1477 '>(out_pnacl_newlib)', | |
| 1478 ], | |
| 1479 }], | |
| 1480 }], | |
| 1481 [ 'enable_mips!=0 and translate_pexe_with_build!=0', { | |
| 1482 'actions': [{ | |
| 1483 'action_name': 'translate newlib pexe to MIPS nexe', | |
| 1484 'msvs_cygwin_shell': 0, | |
| 1485 'description': 'translating >(out_pnacl_newlib_mips_nexe)', | |
| 1486 'inputs': [ | |
| 1487 # Having this in the input somehow causes devenv warnings | |
| 1488 # when building pnacl browser tests. | |
| 1489 # '<(DEPTH)/native_client/build/build_nexe.py', | |
| 1490 '>(out_pnacl_newlib)', | |
| 1491 ], | |
| 1492 'outputs': [ '>(out_pnacl_newlib_mips_nexe)' ], | |
| 1493 'action' : [ | |
| 1494 '<@(common_args)', | |
| 1495 '--arch', 'mips', | |
| 1496 '--build', 'newlib_translate', | |
| 1497 '--name', '>(out_pnacl_newlib_mips_nexe)', | |
| 1498 '--link_flags=^(translate_flags) >(translate_flags) -Wl,-L> (tc_lib_dir_pnacl_translate)/lib-mips32', | |
| 1499 '>(out_pnacl_newlib)', | |
| 1500 ], | |
| 1501 }], | |
| 1502 }], | |
| 1639 ], | 1503 ], |
| 1640 }], # end x64 | 1504 }], # end pnacl actions for building pexes and translating to nexes |
| 1641 # ia32 | 1505 # pnacl action for building portable bitcode libraries |
| 1642 ['enable_x86_32!=0 and disable_pnacl==0 and pnacl_native_biased==1 ' | 1506 ['nlib_target!="" and disable_pnacl==0 and build_pnacl_newlib!=0' |
| 1643 'and nlib_target!="" and build_pnacl_newlib!=0', { | 1507 'and pnacl_native_biased==0', { |
| 1644 'variables': { | 1508 'variables': { |
| 1645 'tool_name': 'pnacl_newlib_x86_32', | 1509 'tool_name': 'pnacl_newlib', |
| 1646 'out_pnacl_newlib_x86_32%': '<(SHARED_INTERMEDIATE_DIR)/tc_<(tool _name)/lib-x86-32/>(nlib_target)', | 1510 'objdir_pnacl_newlib%': '>(INTERMEDIATE_DIR)/<(tool_name)-pnacl/> (_target_name)', |
| 1647 'objdir_pnacl_newlib_x86_32%': '>(INTERMEDIATE_DIR)/<(tool_name)/ >(_target_name)', | 1511 'out_pnacl_newlib%': '<(SHARED_INTERMEDIATE_DIR)/tc_<(tool_name)/ lib/>(nlib_target)', |
| 1648 }, | 1512 }, |
| 1649 'actions': [ | 1513 'actions': [ |
| 1650 { | 1514 { |
| 1651 'action_name': 'build newlib x86-32 nlib (via pnacl)', | 1515 'action_name': 'build newlib plib', |
| 1652 'variables': { | 1516 'variables': { |
| 1653 'source_list_pnacl_newlib_x86_32%': '^|(<(tool_name).>(_targe t_name).source_list.gypcmd ^(_sources) ^(sources))', | 1517 'source_list_pnacl_newlib%': '^|(<(tool_name).>(_target_name) .source_list.gypcmd ^(_sources) ^(sources))', |
| 1654 }, | 1518 }, |
| 1655 'msvs_cygwin_shell': 0, | 1519 'msvs_cygwin_shell': 0, |
| 1656 'description': 'building >(out_pnacl_newlib_x86_32)', | 1520 'description': 'building >(out_pnacl_newlib)', |
| 1657 'inputs': [ | 1521 'inputs': [ |
| 1658 '<(DEPTH)/native_client/build/build_nexe.py', | 1522 '<(DEPTH)/native_client/build/build_nexe.py', |
| 1659 '>!@pymod_do_main(scan_sources -I . >(include_dirs) >(_includ e_dirs) -S >(sources) >(_sources))', | 1523 '>!@pymod_do_main(scan_sources -I . >(include_dirs) >(_includ e_dirs) -S >(sources) >(_sources))', |
| 1660 '>@(extra_deps)', | 1524 '>@(extra_deps)', |
| 1661 '>@(extra_deps_pnacl_newlib)', | 1525 '>@(extra_deps_pnacl_newlib)', |
| 1662 '^(source_list_pnacl_newlib_x86_32)', | 1526 '^(source_list_pnacl_newlib)', |
| 1663 '<(SHARED_INTERMEDIATE_DIR)/sdk/<(TOOLCHAIN_OS)_x86/pnacl_new lib/stamp.prep' | 1527 '<(SHARED_INTERMEDIATE_DIR)/sdk/<(TOOLCHAIN_OS)_x86/pnacl_new lib/stamp.prep', |
| 1664 ], | 1528 ], |
| 1665 'outputs': ['>(out_pnacl_newlib_x86_32)'], | 1529 'outputs': ['>(out_pnacl_newlib)'], |
| 1666 'action': [ | 1530 'action': [ |
| 1667 '<@(common_args)', | 1531 '<@(common_args)', |
| 1668 '>@(extra_args)', | 1532 '>@(extra_args)', |
| 1669 '--arch', 'x86-32', | 1533 '--arch', 'pnacl', |
| 1670 '--build', 'newlib_nlib_pnacl', | 1534 '--build', 'newlib_plib', |
| 1671 '--name', '>(out_pnacl_newlib_x86_32)', | 1535 '--name', '>(out_pnacl_newlib)', |
| 1672 '--objdir', '>(objdir_pnacl_newlib_x86_32)', | 1536 '--objdir', '>(objdir_pnacl_newlib)', |
| 1673 '--include-dirs=>(tc_include_dir_pnacl_newlib) ^(include_dirs ) >(_include_dirs)', | 1537 '--include-dirs=>(tc_include_dir_pnacl_newlib) ^(include_dirs ) >(_include_dirs)', |
| 1674 '--compile_flags=--target=i686-unknown-nacl --pnacl-allow-tra nslate -arch x86-32 ^(compile_flags) >(_compile_flags) ^(pnacl_compile_flags) >( _pnacl_compile_flags)', | 1538 # TODO(dschuff): try removing gline-tables-only after 3.5 mer ge |
| 1539 # when debug metadata is less memory-intensive | |
| 1540 '--compile_flags=^(compile_flags) >(_compile_flags) -gline-ta bles-only ^(pnacl_compile_flags) >(_pnacl_compile_flags)', | |
| 1675 '--gomadir', '<(gomadir)', | 1541 '--gomadir', '<(gomadir)', |
| 1676 '--defines=^(defines) >(_defines)', | 1542 '--defines=^(defines) >(_defines)', |
| 1677 '--link_flags=-B>(tc_lib_dir_pnacl_newlib) ^(link_flags) >(_l ink_flags)', | 1543 '--link_flags=-B>(tc_lib_dir_pnacl_newlib) ^(link_flags) >(_l ink_flags)', |
| 1678 '--source-list=^(source_list_pnacl_newlib_x86_32)', | 1544 '--source-list=^(source_list_pnacl_newlib)', |
| 1679 ], | 1545 ], |
| 1680 }, | 1546 }, |
| 1681 ], | 1547 ], |
| 1682 }], # end ia32 | 1548 }], # end pnacl actions for bitcode libraries |
| 1683 ], # end ia32 or x64 | 1549 ], # end target conditions for pnacl pexe/plib |
| 1684 }], | 1550 # pnacl actions for building ABI-biased native libraries |
| 1685 # MIPS | 1551 'conditions': [ |
| 1686 # The shim is not biased since the IRT itself is not biased. | 1552 # ARM |
| 1687 ['target_arch=="mipsel"', { | 1553 ['target_arch=="arm"', { |
| 1688 'target_conditions': [ | 1554 'target_conditions': [ |
| 1689 ['disable_pnacl==0 and pnacl_native_biased==1 and nlib_target!="" and build_pnacl_newlib!=0', { | 1555 ['disable_pnacl==0 and pnacl_native_biased==1 and nlib_target!="" and build_pnacl_newlib!=0', { |
| 1690 'variables': { | |
| 1691 'tool_name': 'pnacl_newlib_mips', | |
| 1692 'out_pnacl_newlib_mips%': '<(SHARED_INTERMEDIATE_DIR)/tc_<(tool_n ame)/libmips/>(nlib_target)', | |
| 1693 'objdir_pnacl_newlib_mips%': '>(INTERMEDIATE_DIR)/<(tool_name)/>( _target_name)', | |
| 1694 }, | |
| 1695 'actions': [ | |
| 1696 { | |
| 1697 'action_name': 'build newlib mips nlib (via pnacl)', | |
| 1698 'variables': { | 1556 'variables': { |
| 1699 'source_list_pnacl_newlib_mips%': '^|(<(tool_name).>(_target_n ame).source_list.gypcmd ^(_sources) ^(sources))', | 1557 'tool_name': 'pnacl_newlib_arm', |
| 1700 }, | 1558 'out_pnacl_newlib_arm%': '<(SHARED_INTERMEDIATE_DIR)/tc_<(too l_name)/libarm/>(nlib_target)', |
| 1701 'msvs_cygwin_shell': 0, | 1559 'objdir_pnacl_newlib_arm%': '>(INTERMEDIATE_DIR)/<(tool_name) />(_target_name)', |
| 1702 'description': 'building >(out_pnacl_newlib_mips)', | 1560 }, |
| 1703 'inputs': [ | 1561 'actions': [ |
| 1704 '<(DEPTH)/native_client/build/build_nexe.py', | 1562 { |
| 1705 '>!@pymod_do_main(scan_sources -I . >(include_dirs) >(_include _dirs) -S >(sources) >(_sources))', | 1563 'action_name': 'build newlib arm nlib (via pnacl)', |
| 1706 '>@(extra_deps)', | 1564 'variables': { |
| 1707 '>@(extra_deps_pnacl_newlib)', | 1565 'source_list_pnacl_newlib_arm%': '^|(<(tool_name).>(_targe t_name).source_list.gypcmd ^(_sources) ^(sources))', |
| 1708 '^(source_list_pnacl_newlib_mips)', | 1566 }, |
| 1709 '<(SHARED_INTERMEDIATE_DIR)/sdk/<(TOOLCHAIN_OS)_x86/pnacl_newl ib/stamp.prep' | 1567 'msvs_cygwin_shell': 0, |
| 1568 'description': 'building >(out_pnacl_newlib_arm)', | |
| 1569 'inputs': [ | |
| 1570 '<(DEPTH)/native_client/build/build_nexe.py', | |
| 1571 '>!@pymod_do_main(scan_sources -I . >(include_dirs) >(_inc lude_dirs) -S >(sources) >(_sources))', | |
| 1572 '>@(extra_deps)', | |
| 1573 '>@(extra_deps_pnacl_newlib)', | |
| 1574 '^(source_list_pnacl_newlib_arm)', | |
| 1575 '<(SHARED_INTERMEDIATE_DIR)/sdk/<(TOOLCHAIN_OS)_x86/pnacl_ newlib/stamp.prep' | |
| 1576 ], | |
| 1577 'outputs': ['>(out_pnacl_newlib_arm)'], | |
| 1578 'action': [ | |
| 1579 '<@(common_args)', | |
| 1580 '>@(extra_args)', | |
| 1581 '--arch', 'arm', | |
| 1582 '--build', 'newlib_nlib_pnacl', | |
| 1583 '--name', '>(out_pnacl_newlib_arm)', | |
| 1584 '--objdir', '>(objdir_pnacl_newlib_arm)', | |
| 1585 '--include-dirs=>(tc_include_dir_pnacl_newlib) ^(include_d irs) >(_include_dirs)', | |
| 1586 '--compile_flags=--target=armv7-unknown-nacl-gnueabi -mflo at-abi=hard --pnacl-allow-translate -arch arm ^(compile_flags) >(_compile_flags) ^(pnacl_compile_flags) >(_pnacl_compile_flags)', | |
| 1587 '--gomadir', '<(gomadir)', | |
| 1588 '--defines=^(defines) >(_defines)', | |
| 1589 '--link_flags=-B>(tc_lib_dir_pnacl_newlib) ^(link_flags) > (_link_flags)', | |
| 1590 '--source-list=^(source_list_pnacl_newlib_arm)', | |
| 1591 ], | |
| 1592 }, | |
| 1710 ], | 1593 ], |
| 1711 'outputs': ['>(out_pnacl_newlib_mips)'], | 1594 }], |
| 1712 'action': [ | 1595 ], |
| 1713 '<@(common_args)', | 1596 }], # end ARM |
| 1714 '>@(extra_args)', | 1597 # ia32 or x64 (want to build both for Windows) |
| 1715 '--arch', 'mips', | 1598 ['target_arch=="ia32" or target_arch=="x64"', { |
| 1716 '--build', 'newlib_nlib_pnacl', | 1599 'target_conditions': [ |
| 1717 '--name', '>(out_pnacl_newlib_mips)', | 1600 # x64 |
| 1718 '--objdir', '>(objdir_pnacl_newlib_mips)', | 1601 ['enable_x86_64!=0 and disable_pnacl==0 and pnacl_native_biased==1 ' |
| 1719 '--include-dirs=>(tc_include_dir_pnacl_newlib) ^(include_dirs) >(_include_dirs)', | 1602 'and nlib_target!="" and build_pnacl_newlib!=0', { |
| 1720 '--compile_flags=--pnacl-allow-translate -arch mips ^(compile_ flags) >(_compile_flags) ^(pnacl_compile_flags) >(_pnacl_compile_flags)', | 1603 'variables': { |
| 1721 '--gomadir', '<(gomadir)', | 1604 'tool_name': 'pnacl_newlib_x86_64', |
| 1722 '--defines=^(defines) >(_defines)', | 1605 'out_pnacl_newlib_x86_64%': '<(SHARED_INTERMEDIATE_DIR)/tc_<( tool_name)/lib-x86-64/>(nlib_target)', |
| 1723 '--link_flags=-B>(tc_lib_dir_pnacl_newlib) ^(link_flags) >(_li nk_flags)', | 1606 'objdir_pnacl_newlib_x86_64%': '>(INTERMEDIATE_DIR)/<(tool_na me)/>(_target_name)', |
| 1724 '--source-list=^(source_list_pnacl_newlib_mips)', | 1607 }, |
| 1608 'actions': [ | |
| 1609 { | |
| 1610 'action_name': 'build newlib x86-64 nlib (via pnacl)', | |
| 1611 'variables': { | |
| 1612 'source_list_pnacl_newlib_x86_64%': '^|(<(tool_name).>(_t arget_name).source_list.gypcmd ^(_sources) ^(sources))', | |
| 1613 }, | |
| 1614 'msvs_cygwin_shell': 0, | |
| 1615 'description': 'building >(out_pnacl_newlib_x86_64)', | |
| 1616 'inputs': [ | |
| 1617 '<(DEPTH)/native_client/build/build_nexe.py', | |
| 1618 '>!@pymod_do_main(scan_sources -I . >(include_dirs) >(_in clude_dirs) -S >(sources) >(_sources))', | |
| 1619 '>@(extra_deps)', | |
| 1620 '>@(extra_deps_pnacl_newlib)', | |
| 1621 '^(source_list_pnacl_newlib_x86_64)', | |
| 1622 '<(SHARED_INTERMEDIATE_DIR)/sdk/<(TOOLCHAIN_OS)_x86/pnacl _newlib/stamp.prep' | |
| 1623 ], | |
| 1624 'outputs': ['>(out_pnacl_newlib_x86_64)'], | |
| 1625 'action': [ | |
| 1626 '<@(common_args)', | |
| 1627 '>@(extra_args)', | |
| 1628 '--arch', 'x86-64', | |
| 1629 '--build', 'newlib_nlib_pnacl', | |
| 1630 '--name', '>(out_pnacl_newlib_x86_64)', | |
| 1631 '--objdir', '>(objdir_pnacl_newlib_x86_64)', | |
| 1632 '--include-dirs=>(tc_include_dir_pnacl_newlib) ^(include_ dirs) >(_include_dirs)', | |
| 1633 '--compile_flags=--target=x86_64-unknown-nacl --pnacl-all ow-translate -arch x86-64 ^(compile_flags) >(_compile_flags) ^(pnacl_compile_fla gs) >(_pnacl_compile_flags)', | |
| 1634 '--gomadir', '<(gomadir)', | |
| 1635 '--defines=^(defines) >(_defines)', | |
| 1636 '--link_flags=-B>(tc_lib_dir_pnacl_newlib) ^(link_flags) >(_link_flags)', | |
| 1637 '--source-list=^(source_list_pnacl_newlib_x86_64)', | |
| 1638 ], | |
| 1639 }, | |
| 1640 ], | |
| 1641 }], # end x64 | |
| 1642 # ia32 | |
| 1643 ['enable_x86_32!=0 and disable_pnacl==0 and pnacl_native_biased==1 ' | |
| 1644 'and nlib_target!="" and build_pnacl_newlib!=0', { | |
| 1645 'variables': { | |
| 1646 'tool_name': 'pnacl_newlib_x86_32', | |
| 1647 'out_pnacl_newlib_x86_32%': '<(SHARED_INTERMEDIATE_DIR)/tc_<( tool_name)/lib-x86-32/>(nlib_target)', | |
| 1648 'objdir_pnacl_newlib_x86_32%': '>(INTERMEDIATE_DIR)/<(tool_na me)/>(_target_name)', | |
| 1649 }, | |
| 1650 'actions': [ | |
| 1651 { | |
| 1652 'action_name': 'build newlib x86-32 nlib (via pnacl)', | |
| 1653 'variables': { | |
| 1654 'source_list_pnacl_newlib_x86_32%': '^|(<(tool_name).>(_t arget_name).source_list.gypcmd ^(_sources) ^(sources))', | |
| 1655 }, | |
| 1656 'msvs_cygwin_shell': 0, | |
| 1657 'description': 'building >(out_pnacl_newlib_x86_32)', | |
| 1658 'inputs': [ | |
| 1659 '<(DEPTH)/native_client/build/build_nexe.py', | |
| 1660 '>!@pymod_do_main(scan_sources -I . >(include_dirs) >(_in clude_dirs) -S >(sources) >(_sources))', | |
| 1661 '>@(extra_deps)', | |
| 1662 '>@(extra_deps_pnacl_newlib)', | |
| 1663 '^(source_list_pnacl_newlib_x86_32)', | |
| 1664 '<(SHARED_INTERMEDIATE_DIR)/sdk/<(TOOLCHAIN_OS)_x86/pnacl _newlib/stamp.prep' | |
| 1665 ], | |
| 1666 'outputs': ['>(out_pnacl_newlib_x86_32)'], | |
| 1667 'action': [ | |
| 1668 '<@(common_args)', | |
| 1669 '>@(extra_args)', | |
| 1670 '--arch', 'x86-32', | |
| 1671 '--build', 'newlib_nlib_pnacl', | |
| 1672 '--name', '>(out_pnacl_newlib_x86_32)', | |
| 1673 '--objdir', '>(objdir_pnacl_newlib_x86_32)', | |
| 1674 '--include-dirs=>(tc_include_dir_pnacl_newlib) ^(include_ dirs) >(_include_dirs)', | |
| 1675 '--compile_flags=--target=i686-unknown-nacl --pnacl-allow -translate -arch x86-32 ^(compile_flags) >(_compile_flags) ^(pnacl_compile_flags ) >(_pnacl_compile_flags)', | |
| 1676 '--gomadir', '<(gomadir)', | |
| 1677 '--defines=^(defines) >(_defines)', | |
| 1678 '--link_flags=-B>(tc_lib_dir_pnacl_newlib) ^(link_flags) >(_link_flags)', | |
| 1679 '--source-list=^(source_list_pnacl_newlib_x86_32)', | |
| 1680 ], | |
| 1681 }, | |
| 1682 ], | |
| 1683 }], # end ia32 | |
| 1684 ], # end ia32 or x64 | |
| 1685 }], | |
| 1686 # MIPS | |
| 1687 # The shim is not biased since the IRT itself is not biased. | |
| 1688 ['target_arch=="mipsel"', { | |
| 1689 'target_conditions': [ | |
| 1690 ['disable_pnacl==0 and pnacl_native_biased==1 and nlib_target!="" and build_pnacl_newlib!=0', { | |
| 1691 'variables': { | |
| 1692 'tool_name': 'pnacl_newlib_mips', | |
| 1693 'out_pnacl_newlib_mips%': '<(SHARED_INTERMEDIATE_DIR)/tc_<(to ol_name)/libmips/>(nlib_target)', | |
| 1694 'objdir_pnacl_newlib_mips%': '>(INTERMEDIATE_DIR)/<(tool_name )/>(_target_name)', | |
| 1695 }, | |
| 1696 'actions': [ | |
| 1697 { | |
| 1698 'action_name': 'build newlib mips nlib (via pnacl)', | |
| 1699 'variables': { | |
| 1700 'source_list_pnacl_newlib_mips%': '^|(<(tool_name).>(_targ et_name).source_list.gypcmd ^(_sources) ^(sources))', | |
| 1701 }, | |
| 1702 'msvs_cygwin_shell': 0, | |
| 1703 'description': 'building >(out_pnacl_newlib_mips)', | |
| 1704 'inputs': [ | |
| 1705 '<(DEPTH)/native_client/build/build_nexe.py', | |
| 1706 '>!@pymod_do_main(scan_sources -I . >(include_dirs) >(_inc lude_dirs) -S >(sources) >(_sources))', | |
| 1707 '>@(extra_deps)', | |
| 1708 '>@(extra_deps_pnacl_newlib)', | |
| 1709 '^(source_list_pnacl_newlib_mips)', | |
| 1710 '<(SHARED_INTERMEDIATE_DIR)/sdk/<(TOOLCHAIN_OS)_x86/pnacl_ newlib/stamp.prep' | |
| 1711 ], | |
| 1712 'outputs': ['>(out_pnacl_newlib_mips)'], | |
| 1713 'action': [ | |
| 1714 '<@(common_args)', | |
| 1715 '>@(extra_args)', | |
| 1716 '--arch', 'mips', | |
| 1717 '--build', 'newlib_nlib_pnacl', | |
| 1718 '--name', '>(out_pnacl_newlib_mips)', | |
| 1719 '--objdir', '>(objdir_pnacl_newlib_mips)', | |
| 1720 '--include-dirs=>(tc_include_dir_pnacl_newlib) ^(include_d irs) >(_include_dirs)', | |
| 1721 '--compile_flags=--pnacl-allow-translate -arch mips ^(comp ile_flags) >(_compile_flags) ^(pnacl_compile_flags) >(_pnacl_compile_flags)', | |
| 1722 '--gomadir', '<(gomadir)', | |
| 1723 '--defines=^(defines) >(_defines)', | |
| 1724 '--link_flags=-B>(tc_lib_dir_pnacl_newlib) ^(link_flags) > (_link_flags)', | |
| 1725 '--source-list=^(source_list_pnacl_newlib_mips)', | |
| 1726 ], | |
| 1727 }, | |
| 1725 ], | 1728 ], |
| 1726 }, | 1729 }], |
| 1727 ], | 1730 ], |
| 1728 }], | 1731 }], # end MIPS |
| 1729 ], | 1732 # end pnacl actions for building ABI-biased native libraries |
| 1730 }], # end MIPS | 1733 ], # end conditions for pnacl biased nlib |
| 1731 # end pnacl actions for building ABI-biased native libraries | 1734 }, |
| 1732 ], # end conditions for pnacl biased nlib | 1735 }], |
| 1733 }, | 1736 ], |
| 1734 } | 1737 } |
| OLD | NEW |