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 848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
859 '--include-dirs=>(tc_include_dir_newlib) ^(include_dirs) >(_in clude_dirs)', | 859 '--include-dirs=>(tc_include_dir_newlib) ^(include_dirs) >(_in clude_dirs)', |
860 '--compile_flags=-Wno-unused-local-typedefs -Wno-psabi ^(gcc_i rt_compile_flags) ^(gcc_compile_flags) >(_gcc_compile_flags) ^(compile_flags) >( _compile_flags)', | 860 '--compile_flags=-Wno-unused-local-typedefs -Wno-psabi ^(gcc_i rt_compile_flags) ^(gcc_compile_flags) >(_gcc_compile_flags) ^(compile_flags) >( _compile_flags)', |
861 '--gomadir', '<(gomadir)', | 861 '--gomadir', '<(gomadir)', |
862 '--defines=^(defines) >(_defines)', | 862 '--defines=^(defines) >(_defines)', |
863 '--link_flags=-B>(tc_lib_dir_irt_arm) ^(gcc_irt_link_flags) ^( link_flags) >(_link_flags)', | 863 '--link_flags=-B>(tc_lib_dir_irt_arm) ^(gcc_irt_link_flags) ^( link_flags) >(_link_flags)', |
864 '--source-list=^(source_list_newlib_arm)', | 864 '--source-list=^(source_list_newlib_arm)', |
865 ], | 865 ], |
866 }, | 866 }, |
867 ], | 867 ], |
868 }], | 868 }], |
869 # PNaCl PPAPI shim for nonsfi build. | 869 # ARM non-SFI helper nexe build. |
870 ['nlib_target!="" and pnacl_native_biased!=0 and enable_arm_nonsfi==1' , { | 870 ['nexe_target!="" and build_nonsfi_helper!=0', { |
871 'variables': { | |
872 'tool_name': 'nonsfi_helper', | |
873 'out_newlib_arm_nonsfi%': '<(PRODUCT_DIR)/>(nexe_target)_newlib_ar m_nonsfi.nexe', | |
874 'objdir_newlib_arm_nonsfi%': '>(INTERMEDIATE_DIR)/<(tool_name)-arm -nonsfi/>(_target_name)', | |
875 }, | |
876 'actions': [ | |
877 { | |
878 'action_name': 'build non-SFI helper ARM nexe', | |
879 'variables': { | |
880 'source_list_newlib_arm_nonsfi%': '^|(<(tool_name)-arm-nonsfi. >(_target_name).source_list.gypcmd ^(_sources) ^(sources))', | |
881 'stdlibs': ['-lc++', '-lm', '-lnacl', '-lc', '-lpnaclmm'], | |
882 }, | |
883 'msvs_cygwin_shell': 0, | |
884 'description': 'building >(out_newlib_arm_nonsfi)', | |
885 'inputs': [ | |
886 '<@(common_inputs)', | |
887 '>!@pymod_do_main(scan_sources -I . >(include_dirs) >(_include _dirs) -S >(sources) >(_sources))', | |
888 '>@(extra_deps)', | |
889 '>@(extra_deps_newlib_arm_nonsfi)', | |
890 '^(source_list_newlib_arm_nonsfi)', | |
891 '<(SHARED_INTERMEDIATE_DIR)/sdk/<(TOOLCHAIN_OS)_x86/nacl_arm_n ewlib/stamp.prep', | |
892 '>(tc_lib_dir_nonsfi_helper_arm)/libnacl_sys_private.a', | |
893 ], | |
894 'outputs': ['>(out_newlib_arm_nonsfi)'], | |
895 'action': [ | |
896 '<@(common_args)', | |
897 '>@(extra_args)', | |
898 '--arch', 'arm-nonsfi', | |
899 '--build', 'newlib_nexe_pnacl', | |
900 '--name', '>(out_newlib_arm_nonsfi)', | |
901 '--objdir', '>(objdir_newlib_arm_nonsfi)', | |
902 '--include-dirs=>(tc_include_dir_newlib) <(DEPTH)/native_clien t/src/public/linux_syscalls ^(include_dirs) >(_include_dirs)', | |
903 '--compile_flags=--target=armv7-unknown-nacl-gnueabihf --pnacl -bias=arm-nonsfi ^(compile_flags) >(_compile_flags) ^(pnacl_compile_flags) >(_pn acl_compile_flags)', | |
904 '--gomadir', '<(gomadir)', | |
905 '--defines=^(defines) >(_defines)', | |
906 # Both -Wl,--noirt and -Wt,--noirt are needed here. The | |
907 # former is to prevent linking to irt. The latter controls | |
908 # the entry point for Non-SFI NaCl in pnacl-translate. | |
909 # "-nodefaultlibs -Wl,--starg-group, ... -Wl,--end-group" | |
Mark Seaborn
2014/12/15 03:16:32
Copied typo: "--start-group". (You might as well
mazda
2014/12/17 17:11:27
Done.
| |
910 # is the flags to exclude -lpthread, otherwise it causes | |
911 # library not found error. Note that pthread related code | |
912 # is contained in libnacl_sys_private.a, which is | |
913 # automatically linked. | |
914 '--link_flags=--target=armv7-unknown-nacl-gnueabihf -arch arm- nonsfi --pnacl-allow-translate --pnacl-allow-native -Wl,--noirt -Wt,--noirt -Wt, --noirtshim -B>(tc_lib_dir_nonsfi_helper_arm) ^(link_flags) >(_link_flags) -node faultlibs -Wl,--start-group >@(stdlibs) -Wl,--end-group', | |
915 '--source-list=^(source_list_newlib_arm_nonsfi)', | |
916 ], | |
917 }, | |
918 ], | |
919 }], | |
920 # ARM non-SFI helper library and PNaCl PPAPI shim for nonsfi build. | |
921 ['nlib_target!="" and (build_nonsfi_helper!=0 or (pnacl_native_biased! =0 and enable_arm_nonsfi==1))', { | |
871 'variables': { | 922 'variables': { |
872 'tool_name': 'nonsfi_helper', | 923 'tool_name': 'nonsfi_helper', |
873 'out_newlib_arm_nonsfi%': '<(SHARED_INTERMEDIATE_DIR)/tc_<(tool_na me)/libarm/>(nlib_target)', | 924 'out_newlib_arm_nonsfi%': '<(SHARED_INTERMEDIATE_DIR)/tc_<(tool_na me)/libarm/>(nlib_target)', |
874 'objdir_newlib_arm_nonsfi%': '>(INTERMEDIATE_DIR)/<(tool_name)-arm -nonsfi/>(_target_name)', | 925 'objdir_newlib_arm_nonsfi%': '>(INTERMEDIATE_DIR)/<(tool_name)-arm -nonsfi/>(_target_name)', |
875 }, | 926 }, |
876 'actions': [ | 927 'actions': [ |
877 { | 928 { |
878 'action_name': 'build nonsfi_helper arm nlib', | 929 'action_name': 'build nonsfi_helper arm nlib', |
879 'variables': { | 930 'variables': { |
880 'source_list_newlib_arm_nonsfi%': '^|(<(tool_name)-arm-nonsfi. >(_target_name).source_list.gypcmd ^(_sources) ^(sources))', | 931 'source_list_newlib_arm_nonsfi%': '^|(<(tool_name)-arm-nonsfi. >(_target_name).source_list.gypcmd ^(_sources) ^(sources))', |
(...skipping 10 matching lines...) Expand all Loading... | |
891 ], | 942 ], |
892 'outputs': ['>(out_newlib_arm_nonsfi)'], | 943 'outputs': ['>(out_newlib_arm_nonsfi)'], |
893 'action': [ | 944 'action': [ |
894 '<@(common_args)', | 945 '<@(common_args)', |
895 '>@(extra_args)', | 946 '>@(extra_args)', |
896 '--arch', 'arm-nonsfi', | 947 '--arch', 'arm-nonsfi', |
897 '--build', 'newlib_nlib_pnacl', | 948 '--build', 'newlib_nlib_pnacl', |
898 '--name', '>(out_newlib_arm_nonsfi)', | 949 '--name', '>(out_newlib_arm_nonsfi)', |
899 '--objdir', '>(objdir_newlib_arm_nonsfi)', | 950 '--objdir', '>(objdir_newlib_arm_nonsfi)', |
900 '--include-dirs=>(tc_include_dir_newlib) <(DEPTH)/native_clien t/src/public/linux_syscalls ^(include_dirs) >(_include_dirs)', | 951 '--include-dirs=>(tc_include_dir_newlib) <(DEPTH)/native_clien t/src/public/linux_syscalls ^(include_dirs) >(_include_dirs)', |
901 '--compile_flags=--target=armv7-unknown-nacl-gnueabi --pnacl-b ias=arm-nonsfi --pnacl-allow-translate --pnacl-allow-native -arch arm-nonsfi -mf loat-abi=hard ^(compile_flags) >(_compile_flags) ^(pnacl_compile_flags) >(_pnacl _compile_flags)', | 952 '--compile_flags=--target=armv7-unknown-nacl-gnueabihf --pnacl -bias=arm-nonsfi --pnacl-allow-translate --pnacl-allow-native -arch arm-nonsfi - mfloat-abi=hard ^(compile_flags) >(_compile_flags) ^(pnacl_compile_flags) >(_pna cl_compile_flags)', |
902 '--gomadir', '<(gomadir)', | 953 '--gomadir', '<(gomadir)', |
903 '--defines=^(defines) >(_defines)', | 954 '--defines=^(defines) >(_defines)', |
904 '--link_flags=-B>(tc_lib_dir_nonsfi_helper_arm) ^(link_flags) >(_link_flags)', | 955 '--link_flags=-B>(tc_lib_dir_nonsfi_helper_arm) ^(link_flags) >(_link_flags)', |
905 '--source-list=^(source_list_newlib_arm_nonsfi)', | 956 '--source-list=^(source_list_newlib_arm_nonsfi)', |
906 ], | 957 ], |
907 }, | 958 }, |
908 ], | 959 ], |
909 }], | 960 }], |
910 ], # end target_conditions for arm newlib (nexe/nlib) | 961 ], # end target_conditions for arm newlib (nexe/nlib) |
911 }, | 962 }, |
(...skipping 878 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1790 ], | 1841 ], |
1791 }, | 1842 }, |
1792 ], | 1843 ], |
1793 }], | 1844 }], |
1794 ], | 1845 ], |
1795 }], # end MIPS | 1846 }], # end MIPS |
1796 # end pnacl actions for building ABI-biased native libraries | 1847 # end pnacl actions for building ABI-biased native libraries |
1797 ], # end conditions for pnacl biased nlib | 1848 ], # end conditions for pnacl biased nlib |
1798 }, | 1849 }, |
1799 } | 1850 } |
OLD | NEW |