| 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)','<(DEPTH)/ppapi'], | 128 'include_dirs': ['<(DEPTH)','<(DEPTH)/ppapi'], |
| 127 'defines': [ | 129 'defines': [ |
| 128 '<@(nacl_default_defines)', | 130 '<@(nacl_default_defines)', |
| (...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 553 '--include-dirs=<(inst_dir)/include ^(include_dirs) >(_includ
e_dirs)', | 555 '--include-dirs=<(inst_dir)/include ^(include_dirs) >(_includ
e_dirs)', |
| 554 '--lib-dirs=>(lib_dirs_glibc32)', | 556 '--lib-dirs=>(lib_dirs_glibc32)', |
| 555 '--compile_flags=-m32 ^(compile_flags) >(_compile_flags)', | 557 '--compile_flags=-m32 ^(compile_flags) >(_compile_flags)', |
| 556 '--defines=^(defines) >(_defines)', | 558 '--defines=^(defines) >(_defines)', |
| 557 '--link_flags=-m32 -B<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib3
2 ^(link_flags) >(_link_flags)', | 559 '--link_flags=-m32 -B<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib3
2 ^(link_flags) >(_link_flags)', |
| 558 '--source-list=^|(<(source_list_glibc32) ^(_sources) ^(source
s))', | 560 '--source-list=^|(<(source_list_glibc32) ^(_sources) ^(source
s))', |
| 559 ], | 561 ], |
| 560 }, | 562 }, |
| 561 ], | 563 ], |
| 562 }], | 564 }], |
| 565 ['nso_target!="" and build_glibc!=0 and enable_x86_64!=0 and disable_
glibc==0', { |
| 566 'variables': { |
| 567 'tool_name': 'glibc', |
| 568 'inst_dir': '<(SHARED_INTERMEDIATE_DIR)/tc_glibc', |
| 569 'objdir_glibc64%': '>(INTERMEDIATE_DIR)/<(tool_name)-x86-64-so/>
(_target_name)', |
| 570 'source_list_glibc64%': '<(tool_name)-x86-64-so.>(_target_name).
source_list.gypcmd', |
| 571 'out_glibc64%': '<(SHARED_INTERMEDIATE_DIR)/tc_<(tool_name)/lib6
4/>(nso_target)', |
| 572 }, |
| 573 'actions': [ |
| 574 { |
| 575 'action_name': 'build glibc x86-64 nso', |
| 576 'msvs_cygwin_shell': 0, |
| 577 'description': 'building >(out_glibc64)', |
| 578 'inputs': [ |
| 579 '<(DEPTH)/native_client/build/build_nexe.py', |
| 580 '<(DEPTH)/ppapi/ppapi_cpp.gypi', |
| 581 '>!@pymod_do_main(>(get_sources) >(sources) >(_sources))', |
| 582 '>@(extra_deps_glibc64)', |
| 583 '>(source_list_glibc64)', |
| 584 ], |
| 585 'outputs': ['>(out_glibc64)'], |
| 586 'action': [ |
| 587 '>(python_exe)', |
| 588 '<(DEPTH)/native_client/build/build_nexe.py', |
| 589 '>@(extra_args)', |
| 590 '--arch', 'x86-64', |
| 591 '--build', 'glibc_nso', |
| 592 '--root', '<(DEPTH)', |
| 593 '--name', '>(out_glibc64)', |
| 594 '--objdir', '>(objdir_glibc64)', |
| 595 '--include-dirs=<(inst_dir)/include ^(include_dirs) >(_includ
e_dirs)', |
| 596 '--lib-dirs=>(lib_dirs_glibc64) ', |
| 597 '--compile_flags=-m64 -fPIC ^(compile_flags) >(_compile_flags
)', |
| 598 '--defines=^(defines) >(_defines)', |
| 599 '--link_flags=-B<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64 ^(l
ink_flags) >(_link_flags)', |
| 600 '--source-list=^|(<(source_list_glibc64) ^(_sources) ^(source
s))', |
| 601 ], |
| 602 }, |
| 603 ], |
| 604 }], |
| 605 ['nso_target!="" and build_glibc!=0 and enable_x86_32!=0 and disable_
glibc==0', { |
| 606 'variables': { |
| 607 'tool_name': 'glibc', |
| 608 'inst_dir': '<(SHARED_INTERMEDIATE_DIR)/tc_glibc', |
| 609 'out_glibc32%': '<(SHARED_INTERMEDIATE_DIR)/tc_<(tool_name)/lib3
2/>(nso_target)', |
| 610 'objdir_glibc32%': '>(INTERMEDIATE_DIR)/<(tool_name)-x86-32-so/>
(_target_name)', |
| 611 'source_list_glibc32%': '<(tool_name)-x86-32-so.>(_target_name).
source_list.gypcmd', |
| 612 }, |
| 613 'actions': [ |
| 614 { |
| 615 'action_name': 'build glibc x86-32 nso', |
| 616 'msvs_cygwin_shell': 0, |
| 617 'description': 'building >(out_glibc32)', |
| 618 'inputs': [ |
| 619 '<(DEPTH)/native_client/build/build_nexe.py', |
| 620 '<(DEPTH)/ppapi/ppapi_cpp.gypi', |
| 621 '>!@pymod_do_main(>(get_sources) >(sources) >(_sources))', |
| 622 '>@(extra_deps_glibc32)', |
| 623 '>(source_list_glibc32)', |
| 624 ], |
| 625 'outputs': ['>(out_glibc32)'], |
| 626 'action': [ |
| 627 '>(python_exe)', |
| 628 '<(DEPTH)/native_client/build/build_nexe.py', |
| 629 '>@(extra_args)', |
| 630 '--arch', 'x86-32', |
| 631 '--build', 'glibc_nso', |
| 632 '--root', '<(DEPTH)', |
| 633 '--name', '>(out_glibc32)', |
| 634 '--objdir', '>(objdir_glibc32)', |
| 635 '--include-dirs=<(inst_dir)/include ^(include_dirs) >(_includ
e_dirs)', |
| 636 '--lib-dirs=>(lib_dirs_glibc32)', |
| 637 '--compile_flags=-m32 -fPIC ^(compile_flags) >(_compile_flags
)', |
| 638 '--defines=^(defines) >(_defines)', |
| 639 '--link_flags=-m32 -B<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib3
2 ^(link_flags) >(_link_flags)', |
| 640 '--source-list=^|(<(source_list_glibc32) ^(_sources) ^(source
s))', |
| 641 ], |
| 642 }, |
| 643 ], |
| 644 }], |
| 563 ], | 645 ], |
| 564 }, | 646 }, |
| 565 }], | 647 }], |
| 566 ], | 648 ], |
| 567 } | 649 } |
| OLD | NEW |