| 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 # See native_client/Sconstruct for more details. | 7 # See native_client/Sconstruct for more details. |
| 8 # Expected address for beginning of data in for the IRT. | 8 # Expected address for beginning of data in for the IRT. |
| 9 'NACL_IRT_DATA_START': '0x3ef00000', | 9 'NACL_IRT_DATA_START': '0x3ef00000', |
| 10 # Expected address for beginning of code in for the IRT. | 10 # Expected address for beginning of code in for the IRT. |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 }], | 54 }], |
| 55 ], | 55 ], |
| 56 'defines': [], | 56 'defines': [], |
| 57 'sources': [], | 57 'sources': [], |
| 58 'compile_flags': [], | 58 'compile_flags': [], |
| 59 'link_flags': [], | 59 'link_flags': [], |
| 60 'include_dirs': [], | 60 'include_dirs': [], |
| 61 'variables': { | 61 'variables': { |
| 62 'nexe_target': '', | 62 'nexe_target': '', |
| 63 'nlib_target': '', | 63 'nlib_target': '', |
| 64 'nso_target': '', |
| 64 'build_newlib': 0, | 65 'build_newlib': 0, |
| 65 'build_glibc': 0, | 66 'build_glibc': 0, |
| 66 'disable_glibc%': 0, | 67 'disable_glibc%': 0, |
| 67 'extra_args': [], | 68 'extra_args': [], |
| 68 'enable_x86_32': 1, | 69 'enable_x86_32': 1, |
| 69 'enable_x86_64': 1, | 70 'enable_x86_64': 1, |
| 70 'extra_deps_newlib64': [], | 71 'extra_deps_newlib64': [], |
| 71 'extra_deps_newlib32': [], | 72 'extra_deps_newlib32': [], |
| 72 'extra_deps_glibc64': [], | 73 'extra_deps_glibc64': [], |
| 73 'extra_deps_glibc32': [], | 74 'extra_deps_glibc32': [], |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 'target_defaults': { | 110 'target_defaults': { |
| 110 'defines': [], | 111 'defines': [], |
| 111 'sources': [], | 112 'sources': [], |
| 112 'compile_flags': [], | 113 'compile_flags': [], |
| 113 'link_flags': [], | 114 'link_flags': [], |
| 114 'include_dirs': [], | 115 'include_dirs': [], |
| 115 'variables': { | 116 'variables': { |
| 116 'python_exe': 'python', | 117 'python_exe': 'python', |
| 117 'nexe_target': '', | 118 'nexe_target': '', |
| 118 'nlib_target': '', | 119 'nlib_target': '', |
| 120 'nso_target': '', |
| 119 'build_newlib': 0, | 121 'build_newlib': 0, |
| 120 'build_glibc': 0, | 122 'build_glibc': 0, |
| 121 'disable_glibc%': 1, | 123 'disable_glibc%': 1, |
| 122 'extra_args': [], | 124 'extra_args': [], |
| 123 'enable_arm': 1, | 125 'enable_arm': 1, |
| 124 'extra_deps_newlib_arm': [], | 126 'extra_deps_newlib_arm': [], |
| 125 'lib_dirs_newlib_arm': [], | 127 'lib_dirs_newlib_arm': [], |
| 126 'include_dirs': ['<(DEPTH)'], | 128 'include_dirs': ['<(DEPTH)'], |
| 127 'defines': [ | 129 'defines': [ |
| 128 '<@(nacl_default_defines)', | 130 '<@(nacl_default_defines)', |
| (...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 561 '--include-dirs=<(inst_dir)/include ^(include_dirs) >(_includ
e_dirs)', | 563 '--include-dirs=<(inst_dir)/include ^(include_dirs) >(_includ
e_dirs)', |
| 562 '--lib-dirs=>(lib_dirs_glibc32)', | 564 '--lib-dirs=>(lib_dirs_glibc32)', |
| 563 '--compile_flags=-m32 ^(compile_flags) >(_compile_flags)', | 565 '--compile_flags=-m32 ^(compile_flags) >(_compile_flags)', |
| 564 '--defines=^(defines) >(_defines)', | 566 '--defines=^(defines) >(_defines)', |
| 565 '--link_flags=-m32 -B<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib3
2 ^(link_flags) >(_link_flags)', | 567 '--link_flags=-m32 -B<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib3
2 ^(link_flags) >(_link_flags)', |
| 566 '--source-list=^|(<(source_list_glibc32) ^(_sources) ^(source
s))', | 568 '--source-list=^|(<(source_list_glibc32) ^(_sources) ^(source
s))', |
| 567 ], | 569 ], |
| 568 }, | 570 }, |
| 569 ], | 571 ], |
| 570 }], | 572 }], |
| 573 ['nso_target!="" and build_glibc!=0 and enable_x86_64!=0 and disable_
glibc==0', { |
| 574 'variables': { |
| 575 'tool_name': 'glibc', |
| 576 'inst_dir': '<(SHARED_INTERMEDIATE_DIR)/tc_glibc', |
| 577 'objdir_glibc64%': '>(INTERMEDIATE_DIR)/<(tool_name)-x86-64-so/>
(_target_name)', |
| 578 'source_list_glibc64%': '<(tool_name)-x86-64-so.>(_target_name).
source_list.gypcmd', |
| 579 'out_glibc64%': '<(SHARED_INTERMEDIATE_DIR)/tc_<(tool_name)/lib6
4/>(nso_target)', |
| 580 }, |
| 581 'actions': [ |
| 582 { |
| 583 'action_name': 'build glibc x86-64 nso', |
| 584 'msvs_cygwin_shell': 0, |
| 585 'description': 'building >(out_glibc64)', |
| 586 'inputs': [ |
| 587 '<(DEPTH)/native_client/build/build_nexe.py', |
| 588 '>!@pymod_do_main(>(get_sources) >(sources) >(_sources))', |
| 589 '>@(extra_deps_glibc64)', |
| 590 '>(source_list_glibc64)', |
| 591 '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/<(OS)_x86_newlib/s
tamp.untar', |
| 592 ], |
| 593 'outputs': ['>(out_glibc64)'], |
| 594 'action': [ |
| 595 '>(python_exe)', |
| 596 '<(DEPTH)/native_client/build/build_nexe.py', |
| 597 '>@(extra_args)', |
| 598 '-t', '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/', |
| 599 '--arch', 'x86-64', |
| 600 '--build', 'glibc_nso', |
| 601 '--root', '<(DEPTH)', |
| 602 '--name', '>(out_glibc64)', |
| 603 '--objdir', '>(objdir_glibc64)', |
| 604 '--include-dirs=<(inst_dir)/include ^(include_dirs) >(_includ
e_dirs)', |
| 605 '--lib-dirs=>(lib_dirs_glibc64) ', |
| 606 '--compile_flags=-m64 -fPIC ^(compile_flags) >(_compile_flags
)', |
| 607 '--defines=^(defines) >(_defines)', |
| 608 '--link_flags=-B<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64 ^(l
ink_flags) >(_link_flags)', |
| 609 '--source-list=^|(<(source_list_glibc64) ^(_sources) ^(source
s))', |
| 610 ], |
| 611 }, |
| 612 ], |
| 613 }], |
| 614 ['nso_target!="" and build_glibc!=0 and enable_x86_32!=0 and disable_
glibc==0', { |
| 615 'variables': { |
| 616 'tool_name': 'glibc', |
| 617 'inst_dir': '<(SHARED_INTERMEDIATE_DIR)/tc_glibc', |
| 618 'out_glibc32%': '<(SHARED_INTERMEDIATE_DIR)/tc_<(tool_name)/lib3
2/>(nso_target)', |
| 619 'objdir_glibc32%': '>(INTERMEDIATE_DIR)/<(tool_name)-x86-32-so/>
(_target_name)', |
| 620 'source_list_glibc32%': '<(tool_name)-x86-32-so.>(_target_name).
source_list.gypcmd', |
| 621 }, |
| 622 'actions': [ |
| 623 { |
| 624 'action_name': 'build glibc x86-32 nso', |
| 625 'msvs_cygwin_shell': 0, |
| 626 'description': 'building >(out_glibc32)', |
| 627 'inputs': [ |
| 628 '<(DEPTH)/native_client/build/build_nexe.py', |
| 629 '>!@pymod_do_main(>(get_sources) >(sources) >(_sources))', |
| 630 '>@(extra_deps_glibc32)', |
| 631 '>(source_list_glibc32)', |
| 632 '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/<(OS)_x86_newlib/s
tamp.untar', |
| 633 ], |
| 634 'outputs': ['>(out_glibc32)'], |
| 635 'action': [ |
| 636 '>(python_exe)', |
| 637 '<(DEPTH)/native_client/build/build_nexe.py', |
| 638 '>@(extra_args)', |
| 639 '-t', '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/', |
| 640 '--arch', 'x86-32', |
| 641 '--build', 'glibc_nso', |
| 642 '--root', '<(DEPTH)', |
| 643 '--name', '>(out_glibc32)', |
| 644 '--objdir', '>(objdir_glibc32)', |
| 645 '--include-dirs=<(inst_dir)/include ^(include_dirs) >(_includ
e_dirs)', |
| 646 '--lib-dirs=>(lib_dirs_glibc32)', |
| 647 '--compile_flags=-m32 -fPIC ^(compile_flags) >(_compile_flags
)', |
| 648 '--defines=^(defines) >(_defines)', |
| 649 '--link_flags=-m32 -B<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib3
2 ^(link_flags) >(_link_flags)', |
| 650 '--source-list=^|(<(source_list_glibc32) ^(_sources) ^(source
s))', |
| 651 ], |
| 652 }, |
| 653 ], |
| 654 }], |
| 571 ], | 655 ], |
| 572 }, | 656 }, |
| 573 }], | 657 }], |
| 574 ], | 658 ], |
| 575 } | 659 } |
| OLD | NEW |