Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1545)

Side by Side Diff: build/untrusted.gypi

Issue 366763003: Only build the x86 arches we actually need. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: fix Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « build/nacl_core_sdk.gyp ('k') | tools.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 'include_dirs': ['<(DEPTH)'], 171 'include_dirs': ['<(DEPTH)'],
172 'defines': [ 172 'defines': [
173 '<@(nacl_default_defines)', 173 '<@(nacl_default_defines)',
174 'NACL_BUILD_ARCH=mips', 174 'NACL_BUILD_ARCH=mips',
175 ], 175 ],
176 'sources': [], 176 'sources': [],
177 'link_flags': [], 177 'link_flags': [],
178 }, 178 },
179 }, 179 },
180 }], 180 }],
181 ['target_arch=="ia32" or target_arch=="x64"', { 181 ['target_arch=="x64" or (target_arch=="ia32" and OS=="win")', {
182 'target_defaults': { 182 'target_defaults': {
183 # x86-64 newlib nexe action 183 # x86-64 newlib nexe action
184 'target_conditions': [ 184 'target_conditions': [
185 ['nexe_target!="" and build_newlib!=0 and enable_x86_64!=0', { 185 ['nexe_target!="" and build_newlib!=0 and enable_x86_64!=0', {
186 'variables': { 186 'variables': {
187 'tool_name': 'newlib', 187 'tool_name': 'newlib',
188 'out_newlib64%': '<(PRODUCT_DIR)/>(nexe_target)_newlib_x64.nexe' , 188 'out_newlib64%': '<(PRODUCT_DIR)/>(nexe_target)_newlib_x64.nexe' ,
189 'objdir_newlib64%': '>(INTERMEDIATE_DIR)/<(tool_name)-x86-64/>(_ target_name)', 189 'objdir_newlib64%': '>(INTERMEDIATE_DIR)/<(tool_name)-x86-64/>(_ target_name)',
190 }, 190 },
191 'actions': [ 191 'actions': [
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 '--include-dirs=>(tc_include_dir_newlib) ^(include_dirs) >(_i nclude_dirs)', 355 '--include-dirs=>(tc_include_dir_newlib) ^(include_dirs) >(_i nclude_dirs)',
356 '--compile_flags=--target=x86_64-unknown-nacl -stdlib=libstdc ++ ^(compile_flags) >(_compile_flags) -gline-tables-only ^(pnacl_compile_flags) >(_pnacl_compile_flags)', 356 '--compile_flags=--target=x86_64-unknown-nacl -stdlib=libstdc ++ ^(compile_flags) >(_compile_flags) -gline-tables-only ^(pnacl_compile_flags) >(_pnacl_compile_flags)',
357 '--gomadir', '<(gomadir)', 357 '--gomadir', '<(gomadir)',
358 '--defines=^(defines) >(_defines)', 358 '--defines=^(defines) >(_defines)',
359 '--link_flags=--target=x86_64-unknown-nacl -stdlib=libstdc++ -B>(tc_lib_dir_irt64) ^(pnacl_irt_link_flags) ^(link_flags) >(_link_flags)', 359 '--link_flags=--target=x86_64-unknown-nacl -stdlib=libstdc++ -B>(tc_lib_dir_irt64) ^(pnacl_irt_link_flags) ^(link_flags) >(_link_flags)',
360 '--source-list=^(source_list_newlib64)', 360 '--source-list=^(source_list_newlib64)',
361 ], 361 ],
362 }, 362 },
363 ], 363 ],
364 }], 364 }],
365 ],
366 },
367 }],
368 ['target_arch=="ia32"', {
369 'target_defaults': {
370 'target_conditions': [
365 # x86-32 newlib nexe action 371 # x86-32 newlib nexe action
366 ['nexe_target!="" and build_newlib!=0 and enable_x86_32!=0', { 372 ['nexe_target!="" and build_newlib!=0 and enable_x86_32!=0', {
367 'variables': { 373 'variables': {
368 'tool_name': 'newlib', 374 'tool_name': 'newlib',
369 'out_newlib32%': '<(PRODUCT_DIR)/>(nexe_target)_newlib_x32.nexe' , 375 'out_newlib32%': '<(PRODUCT_DIR)/>(nexe_target)_newlib_x32.nexe' ,
370 'objdir_newlib32%': '>(INTERMEDIATE_DIR)/<(tool_name)-x86-32/>(_ target_name)', 376 'objdir_newlib32%': '>(INTERMEDIATE_DIR)/<(tool_name)-x86-32/>(_ target_name)',
371 }, 377 },
372 'actions': [ 378 'actions': [
373 { 379 {
374 'action_name': 'build newlib x86-32 nexe', 380 'action_name': 'build newlib x86-32 nexe',
(...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after
950 '--defines=^(defines) >(_defines)', 956 '--defines=^(defines) >(_defines)',
951 '--link_flags=-stdlib=libstdc++ -B>(tc_lib_dir_irt_mips) ^(pna cl_irt_link_flags) ^(link_flags) >(_link_flags)', 957 '--link_flags=-stdlib=libstdc++ -B>(tc_lib_dir_irt_mips) ^(pna cl_irt_link_flags) ^(link_flags) >(_link_flags)',
952 '--source-list=^(source_list_newlib_mips)', 958 '--source-list=^(source_list_newlib_mips)',
953 ], 959 ],
954 }, 960 },
955 ], 961 ],
956 }], 962 }],
957 ], # end target_conditions for mips newlib 963 ], # end target_conditions for mips newlib
958 }, 964 },
959 }], # end target_arch = mips 965 }], # end target_arch = mips
960 ['target_arch=="ia32" or target_arch=="x64"', { 966 ['target_arch=="x64" or (OS=="win" and target_arch=="ia32")', {
961 'target_defaults': { 967 'target_defaults': {
962 # x86-64 glibc nexe action 968 # x86-64 glibc nexe action
963 'target_conditions': [ 969 'target_conditions': [
964 ['nexe_target!="" and build_glibc!=0 and enable_x86_64!=0 and disable _glibc==0', { 970 ['nexe_target!="" and build_glibc!=0 and enable_x86_64!=0 and disable _glibc==0', {
965 'variables': { 971 'variables': {
966 'tool_name': 'glibc', 972 'tool_name': 'glibc',
967 'out_glibc64%': '<(PRODUCT_DIR)/>(nexe_target)_glibc_x64.nexe', 973 'out_glibc64%': '<(PRODUCT_DIR)/>(nexe_target)_glibc_x64.nexe',
968 'objdir_glibc64%': '>(INTERMEDIATE_DIR)/<(tool_name)-x86-64/>(_t arget_name)', 974 'objdir_glibc64%': '>(INTERMEDIATE_DIR)/<(tool_name)-x86-64/>(_t arget_name)',
969 }, 975 },
970 'actions': [ 976 'actions': [
(...skipping 26 matching lines...) Expand all
997 '--include-dirs=>(tc_include_dir_glibc) ^(include_dirs) >(_in clude_dirs)', 1003 '--include-dirs=>(tc_include_dir_glibc) ^(include_dirs) >(_in clude_dirs)',
998 '--compile_flags=-m64 ^(gcc_compile_flags) >(_gcc_compile_fla gs) ^(compile_flags) >(_compile_flags)', 1004 '--compile_flags=-m64 ^(gcc_compile_flags) >(_gcc_compile_fla gs) ^(compile_flags) >(_compile_flags)',
999 '--gomadir', '<(gomadir)', 1005 '--gomadir', '<(gomadir)',
1000 '--defines=^(defines) >(_defines)', 1006 '--defines=^(defines) >(_defines)',
1001 '--link_flags=-B>(tc_lib_dir_glibc64) ^(link_flags) >(_link_f lags)', 1007 '--link_flags=-B>(tc_lib_dir_glibc64) ^(link_flags) >(_link_f lags)',
1002 '--source-list=^(source_list_glibc64)', 1008 '--source-list=^(source_list_glibc64)',
1003 ], 1009 ],
1004 }, 1010 },
1005 ], 1011 ],
1006 }], 1012 }],
1007 # x86-32 glibc nexe action
1008 ['nexe_target!="" and build_glibc!=0 and enable_x86_32!=0 and disable _glibc==0', {
1009 'variables': {
1010 'tool_name': 'glibc',
1011 'out_glibc32%': '<(PRODUCT_DIR)/>(nexe_target)_glibc_x32.nexe',
1012 'objdir_glibc32%': '>(INTERMEDIATE_DIR)/<(tool_name)-x86-32/>(_t arget_name)',
1013 },
1014 'actions': [
1015 {
1016 'action_name': 'build glibc x86-32 nexe',
1017 'variables': {
1018 'source_list_glibc32%': '^|(<(tool_name)-x86-32.>(_target_nam e).source_list.gypcmd ^(_sources) ^(sources))',
1019 },
1020 'msvs_cygwin_shell': 0,
1021 'description': 'building >(out_glibc32)',
1022 'inputs': [
1023 '<(DEPTH)/native_client/build/build_nexe.py',
1024 '>!@pymod_do_main(scan_sources -I . >(include_dirs) >(_inclu de_dirs) -S >(sources) >(_sources))',
1025 '>@(extra_deps)',
1026 '>@(extra_deps_glibc32)',
1027 '^(source_list_glibc32)',
1028 '<(SHARED_INTERMEDIATE_DIR)/sdk/<(TOOLCHAIN_OS)_x86/nacl_x86 _glibc/stamp.prep',
1029 ],
1030 'outputs': ['>(out_glibc32)'],
1031 'action': [
1032 'python',
1033 '<(DEPTH)/native_client/build/build_nexe.py',
1034 '-t', '<(SHARED_INTERMEDIATE_DIR)/sdk/',
1035 '>@(extra_args)',
1036 '--arch', 'x86-32',
1037 '--build', 'glibc_nexe',
1038 '--root', '<(DEPTH)',
1039 '--name', '>(out_glibc32)',
1040 '--objdir', '>(objdir_glibc32)',
1041 '--include-dirs=>(tc_include_dir_glibc) ^(include_dirs) >(_in clude_dirs)',
1042 '--compile_flags=-m32 ^(gcc_compile_flags) >(_gcc_compile_fla gs) ^(compile_flags) >(_compile_flags)',
1043 '--gomadir', '<(gomadir)',
1044 '--defines=^(defines) >(_defines)',
1045 '--link_flags=-m32 -B>(tc_lib_dir_glibc32) ^(link_flags) >(_l ink_flags)',
1046 '--source-list=^(source_list_glibc32)',
1047 ],
1048 },
1049 ],
1050 }],
1051 # x86-64 glibc static library action 1013 # x86-64 glibc static library action
1052 ['nlib_target!="" and build_glibc!=0 and enable_x86_64!=0 and disable _glibc==0', { 1014 ['nlib_target!="" and build_glibc!=0 and enable_x86_64!=0 and disable _glibc==0', {
1053 'variables': { 1015 'variables': {
1054 'tool_name': 'glibc', 1016 'tool_name': 'glibc',
1055 'objdir_glibc64%': '>(INTERMEDIATE_DIR)/<(tool_name)-x86-64/>(_t arget_name)', 1017 'objdir_glibc64%': '>(INTERMEDIATE_DIR)/<(tool_name)-x86-64/>(_t arget_name)',
1056 'out_glibc64%': '<(SHARED_INTERMEDIATE_DIR)/tc_<(tool_name)/lib6 4/>(nlib_target)', 1018 'out_glibc64%': '<(SHARED_INTERMEDIATE_DIR)/tc_<(tool_name)/lib6 4/>(nlib_target)',
1057 }, 1019 },
1058 'actions': [ 1020 'actions': [
1059 { 1021 {
1060 'action_name': 'build glibc x86-64 nlib', 1022 'action_name': 'build glibc x86-64 nlib',
1061 'variables': { 1023 'variables': {
1062 'source_list_glibc64%': '^|(<(tool_name)-x86-64.>(_target_nam e).source_list.gypcmd ^(_sources) ^(sources))', 1024 'source_list_glibc64%': '^|(<(tool_name)-x86-64.>(_target_nam e).source_list.gypcmd ^(_sources) ^(sources))',
1063 }, 1025 },
1064 'msvs_cygwin_shell': 0, 1026 'msvs_cygwin_shell': 0,
1065 'description': 'building >(out_glibc64)', 1027 'description': 'building >(out_glibc64)',
1028 'inputs': [
1029 '<(DEPTH)/native_client/build/build_nexe.py',
1030 '>!@pymod_do_main(scan_sources -I . >(include_dirs) >(_inclu de_dirs) -S >(sources) >(_sources))',
1031 '>@(extra_deps)',
1032 '>@(extra_deps_glibc64)',
1033 '^(source_list_glibc64)',
1034 '<(SHARED_INTERMEDIATE_DIR)/sdk/<(TOOLCHAIN_OS)_x86/nacl_x86 _glibc/stamp.prep',
1035 ],
1036 'outputs': ['>(out_glibc64)'],
1037 'action': [
1038 'python',
1039 '<(DEPTH)/native_client/build/build_nexe.py',
1040 '-t', '<(SHARED_INTERMEDIATE_DIR)/sdk/',
1041 '>@(extra_args)',
1042 '--arch', 'x86-64',
1043 '--build', 'glibc_nlib',
1044 '--root', '<(DEPTH)',
1045 '--name', '>(out_glibc64)',
1046 '--objdir', '>(objdir_glibc64)',
1047 '--include-dirs=>(tc_include_dir_glibc) ^(include_dirs) >(_in clude_dirs)',
1048 '--compile_flags=-m64 ^(gcc_compile_flags) >(_gcc_compile_fla gs) ^(compile_flags) >(_compile_flags)',
1049 '--gomadir', '<(gomadir)',
1050 '--defines=^(defines) >(_defines)',
1051 '--link_flags=-B>(tc_lib_dir_glibc64) ^(link_flags) >(_link_f lags)',
1052 '--source-list=^(source_list_glibc64)',
1053 ],
1054 },
1055 ],
1056 }],
1057 # x86-64 glibc shared library action
1058 ['nso_target!="" and build_glibc!=0 and enable_x86_64!=0 and disable_ glibc==0', {
1059 'variables': {
1060 'tool_name': 'glibc',
1061 'objdir_glibc64%': '>(INTERMEDIATE_DIR)/<(tool_name)-x86-64-so/> (_target_name)',
1062 'out_glibc64%': '<(SHARED_INTERMEDIATE_DIR)/tc_<(tool_name)/lib6 4/>(nso_target)',
1063 },
1064 'actions': [
1065 {
1066 'action_name': 'build glibc x86-64 nso',
1067 'variables': {
1068 'source_list_glibc64%': '^|(<(tool_name)-x86-64-so.>(_target_ name).source_list.gypcmd ^(_sources) ^(sources))',
1069 },
1070 'msvs_cygwin_shell': 0,
1071 'description': 'building >(out_glibc64)',
1066 'inputs': [ 1072 'inputs': [
1067 '<(DEPTH)/native_client/build/build_nexe.py', 1073 '<(DEPTH)/native_client/build/build_nexe.py',
1068 '>!@pymod_do_main(scan_sources -I . >(include_dirs) >(_inclu de_dirs) -S >(sources) >(_sources))', 1074 '>!@pymod_do_main(scan_sources -I . >(include_dirs) >(_inclu de_dirs) -S >(sources) >(_sources))',
1069 '>@(extra_deps)', 1075 '>@(extra_deps)',
1070 '>@(extra_deps_glibc64)', 1076 '>@(extra_deps_glibc64)',
1071 '^(source_list_glibc64)', 1077 '^(source_list_glibc64)',
1072 '<(SHARED_INTERMEDIATE_DIR)/sdk/<(TOOLCHAIN_OS)_x86/nacl_x86 _glibc/stamp.prep', 1078 '<(SHARED_INTERMEDIATE_DIR)/sdk/<(TOOLCHAIN_OS)_x86/nacl_x86 _glibc/stamp.prep',
1073 ], 1079 ],
1074 'outputs': ['>(out_glibc64)'], 1080 'outputs': ['>(out_glibc64)'],
1075 'action': [ 1081 'action': [
1076 'python', 1082 'python',
1077 '<(DEPTH)/native_client/build/build_nexe.py', 1083 '<(DEPTH)/native_client/build/build_nexe.py',
1084 '>@(extra_args)',
1078 '-t', '<(SHARED_INTERMEDIATE_DIR)/sdk/', 1085 '-t', '<(SHARED_INTERMEDIATE_DIR)/sdk/',
1079 '>@(extra_args)',
1080 '--arch', 'x86-64', 1086 '--arch', 'x86-64',
1081 '--build', 'glibc_nlib', 1087 '--build', 'glibc_nso',
1082 '--root', '<(DEPTH)', 1088 '--root', '<(DEPTH)',
1083 '--name', '>(out_glibc64)', 1089 '--name', '>(out_glibc64)',
1084 '--objdir', '>(objdir_glibc64)', 1090 '--objdir', '>(objdir_glibc64)',
1085 '--include-dirs=>(tc_include_dir_glibc) ^(include_dirs) >(_in clude_dirs)', 1091 '--include-dirs=>(tc_include_dir_glibc) ^(include_dirs) >(_in clude_dirs)',
1086 '--compile_flags=-m64 ^(gcc_compile_flags) >(_gcc_compile_fla gs) ^(compile_flags) >(_compile_flags)', 1092 '--compile_flags=-m64 -fPIC ^(gcc_compile_flags) >(_gcc_compi le_flags) ^(compile_flags) >(_compile_flags)',
1087 '--gomadir', '<(gomadir)', 1093 '--gomadir', '<(gomadir)',
1088 '--defines=^(defines) >(_defines)', 1094 '--defines=^(defines) >(_defines)',
1089 '--link_flags=-B>(tc_lib_dir_glibc64) ^(link_flags) >(_link_f lags)', 1095 '--link_flags=-B>(tc_lib_dir_glibc64) ^(link_flags) >(_link_f lags)',
1090 '--source-list=^(source_list_glibc64)', 1096 '--source-list=^(source_list_glibc64)',
1091 ], 1097 ],
1092 }, 1098 },
1093 ], 1099 ],
1094 }], 1100 }],
1095 # x86-32 glibc static library action 1101 ],
1096 ['nlib_target!="" and build_glibc!=0 and enable_x86_32!=0 and disable _glibc==0', { 1102 },
1103 }],
1104 ['target_arch=="ia32"', {
1105 'target_defaults': {
1106 'target_conditions': [
1107 # x86-32 glibc nexe action
1108 ['nexe_target!="" and build_glibc!=0 and enable_x86_32!=0 and disable _glibc==0', {
1097 'variables': { 1109 'variables': {
1098 'tool_name': 'glibc', 1110 'tool_name': 'glibc',
1099 'out_glibc32%': '<(SHARED_INTERMEDIATE_DIR)/tc_<(tool_name)/lib3 2/>(nlib_target)', 1111 'out_glibc32%': '<(PRODUCT_DIR)/>(nexe_target)_glibc_x32.nexe',
1100 'objdir_glibc32%': '>(INTERMEDIATE_DIR)/<(tool_name)-x86-32/>(_t arget_name)', 1112 'objdir_glibc32%': '>(INTERMEDIATE_DIR)/<(tool_name)-x86-32/>(_t arget_name)',
1101 }, 1113 },
1102 'actions': [ 1114 'actions': [
1103 { 1115 {
1104 'action_name': 'build glibc x86-32 nlib', 1116 'action_name': 'build glibc x86-32 nexe',
1105 'variables': { 1117 'variables': {
1106 'source_list_glibc32%': '^|(<(tool_name)-x86-32.>(_target_nam e).source_list.gypcmd ^(_sources) ^(sources))', 1118 'source_list_glibc32%': '^|(<(tool_name)-x86-32.>(_target_nam e).source_list.gypcmd ^(_sources) ^(sources))',
1107 }, 1119 },
1108 'msvs_cygwin_shell': 0, 1120 'msvs_cygwin_shell': 0,
1109 'description': 'building >(out_glibc32)', 1121 'description': 'building >(out_glibc32)',
1110 'inputs': [ 1122 'inputs': [
1111 '<(DEPTH)/native_client/build/build_nexe.py', 1123 '<(DEPTH)/native_client/build/build_nexe.py',
1112 '>!@pymod_do_main(scan_sources -I . >(include_dirs) >(_inclu de_dirs) -S >(sources) >(_sources))', 1124 '>!@pymod_do_main(scan_sources -I . >(include_dirs) >(_inclu de_dirs) -S >(sources) >(_sources))',
1113 '>@(extra_deps)', 1125 '>@(extra_deps)',
1114 '>@(extra_deps_glibc32)', 1126 '>@(extra_deps_glibc32)',
1115 '^(source_list_glibc32)', 1127 '^(source_list_glibc32)',
1116 '<(SHARED_INTERMEDIATE_DIR)/sdk/<(TOOLCHAIN_OS)_x86/nacl_x86 _glibc/stamp.prep', 1128 '<(SHARED_INTERMEDIATE_DIR)/sdk/<(TOOLCHAIN_OS)_x86/nacl_x86 _glibc/stamp.prep',
1117 ], 1129 ],
1118 'outputs': ['>(out_glibc32)'], 1130 'outputs': ['>(out_glibc32)'],
1119 'action': [ 1131 'action': [
1120 'python', 1132 'python',
1121 '<(DEPTH)/native_client/build/build_nexe.py', 1133 '<(DEPTH)/native_client/build/build_nexe.py',
1122 '-t', '<(SHARED_INTERMEDIATE_DIR)/sdk/', 1134 '-t', '<(SHARED_INTERMEDIATE_DIR)/sdk/',
1123 '>@(extra_args)', 1135 '>@(extra_args)',
1124 '--arch', 'x86-32', 1136 '--arch', 'x86-32',
1125 '--build', 'glibc_nlib', 1137 '--build', 'glibc_nexe',
1126 '--root', '<(DEPTH)', 1138 '--root', '<(DEPTH)',
1127 '--name', '>(out_glibc32)', 1139 '--name', '>(out_glibc32)',
1128 '--objdir', '>(objdir_glibc32)', 1140 '--objdir', '>(objdir_glibc32)',
1129 '--include-dirs=>(tc_include_dir_glibc) ^(include_dirs) >(_in clude_dirs)', 1141 '--include-dirs=>(tc_include_dir_glibc) ^(include_dirs) >(_in clude_dirs)',
1130 '--compile_flags=-m32 ^(gcc_compile_flags) >(_gcc_compile_fla gs) ^(compile_flags) >(_compile_flags)', 1142 '--compile_flags=-m32 ^(gcc_compile_flags) >(_gcc_compile_fla gs) ^(compile_flags) >(_compile_flags)',
1131 '--gomadir', '<(gomadir)', 1143 '--gomadir', '<(gomadir)',
1132 '--defines=^(defines) >(_defines)', 1144 '--defines=^(defines) >(_defines)',
1133 '--link_flags=-m32 -B>(tc_lib_dir_glibc32) ^(link_flags) >(_l ink_flags)', 1145 '--link_flags=-m32 -B>(tc_lib_dir_glibc32) ^(link_flags) >(_l ink_flags)',
1134 '--source-list=^(source_list_glibc32)', 1146 '--source-list=^(source_list_glibc32)',
1135 ], 1147 ],
1136 }, 1148 },
1137 ], 1149 ],
1138 }], 1150 }],
1139 # x86-64 glibc shared library action 1151 # x86-32 glibc static library action
1140 ['nso_target!="" and build_glibc!=0 and enable_x86_64!=0 and disable_ glibc==0', { 1152 ['nlib_target!="" and build_glibc!=0 and enable_x86_32!=0 and disable _glibc==0', {
1141 'variables': { 1153 'variables': {
1142 'tool_name': 'glibc', 1154 'tool_name': 'glibc',
1143 'objdir_glibc64%': '>(INTERMEDIATE_DIR)/<(tool_name)-x86-64-so/> (_target_name)', 1155 'out_glibc32%': '<(SHARED_INTERMEDIATE_DIR)/tc_<(tool_name)/lib3 2/>(nlib_target)',
1144 'out_glibc64%': '<(SHARED_INTERMEDIATE_DIR)/tc_<(tool_name)/lib6 4/>(nso_target)', 1156 'objdir_glibc32%': '>(INTERMEDIATE_DIR)/<(tool_name)-x86-32/>(_t arget_name)',
1145 }, 1157 },
1146 'actions': [ 1158 'actions': [
1147 { 1159 {
1148 'action_name': 'build glibc x86-64 nso', 1160 'action_name': 'build glibc x86-32 nlib',
1149 'variables': { 1161 'variables': {
1150 'source_list_glibc64%': '^|(<(tool_name)-x86-64-so.>(_target_ name).source_list.gypcmd ^(_sources) ^(sources))', 1162 'source_list_glibc32%': '^|(<(tool_name)-x86-32.>(_target_nam e).source_list.gypcmd ^(_sources) ^(sources))',
1151 }, 1163 },
1152 'msvs_cygwin_shell': 0, 1164 'msvs_cygwin_shell': 0,
1153 'description': 'building >(out_glibc64)', 1165 'description': 'building >(out_glibc32)',
1154 'inputs': [ 1166 'inputs': [
1155 '<(DEPTH)/native_client/build/build_nexe.py', 1167 '<(DEPTH)/native_client/build/build_nexe.py',
1156 '>!@pymod_do_main(scan_sources -I . >(include_dirs) >(_inclu de_dirs) -S >(sources) >(_sources))', 1168 '>!@pymod_do_main(scan_sources -I . >(include_dirs) >(_inclu de_dirs) -S >(sources) >(_sources))',
1157 '>@(extra_deps)', 1169 '>@(extra_deps)',
1158 '>@(extra_deps_glibc64)', 1170 '>@(extra_deps_glibc32)',
1159 '^(source_list_glibc64)', 1171 '^(source_list_glibc32)',
1160 '<(SHARED_INTERMEDIATE_DIR)/sdk/<(TOOLCHAIN_OS)_x86/nacl_x86 _glibc/stamp.prep', 1172 '<(SHARED_INTERMEDIATE_DIR)/sdk/<(TOOLCHAIN_OS)_x86/nacl_x86 _glibc/stamp.prep',
1161 ], 1173 ],
1162 'outputs': ['>(out_glibc64)'], 1174 'outputs': ['>(out_glibc32)'],
1163 'action': [ 1175 'action': [
1164 'python', 1176 'python',
1165 '<(DEPTH)/native_client/build/build_nexe.py', 1177 '<(DEPTH)/native_client/build/build_nexe.py',
1178 '-t', '<(SHARED_INTERMEDIATE_DIR)/sdk/',
1166 '>@(extra_args)', 1179 '>@(extra_args)',
1167 '-t', '<(SHARED_INTERMEDIATE_DIR)/sdk/', 1180 '--arch', 'x86-32',
1168 '--arch', 'x86-64', 1181 '--build', 'glibc_nlib',
1169 '--build', 'glibc_nso',
1170 '--root', '<(DEPTH)', 1182 '--root', '<(DEPTH)',
1171 '--name', '>(out_glibc64)', 1183 '--name', '>(out_glibc32)',
1172 '--objdir', '>(objdir_glibc64)', 1184 '--objdir', '>(objdir_glibc32)',
1173 '--include-dirs=>(tc_include_dir_glibc) ^(include_dirs) >(_in clude_dirs)', 1185 '--include-dirs=>(tc_include_dir_glibc) ^(include_dirs) >(_in clude_dirs)',
1174 '--compile_flags=-m64 -fPIC ^(gcc_compile_flags) >(_gcc_compi le_flags) ^(compile_flags) >(_compile_flags)', 1186 '--compile_flags=-m32 ^(gcc_compile_flags) >(_gcc_compile_fla gs) ^(compile_flags) >(_compile_flags)',
1175 '--gomadir', '<(gomadir)', 1187 '--gomadir', '<(gomadir)',
1176 '--defines=^(defines) >(_defines)', 1188 '--defines=^(defines) >(_defines)',
1177 '--link_flags=-B>(tc_lib_dir_glibc64) ^(link_flags) >(_link_f lags)', 1189 '--link_flags=-m32 -B>(tc_lib_dir_glibc32) ^(link_flags) >(_l ink_flags)',
1178 '--source-list=^(source_list_glibc64)', 1190 '--source-list=^(source_list_glibc32)',
1179 ], 1191 ],
1180 }, 1192 },
1181 ], 1193 ],
1182 }], 1194 }],
1183 # x86-32 glibc shared library action 1195 # x86-32 glibc shared library action
1184 ['nso_target!="" and build_glibc!=0 and enable_x86_32!=0 and disable_ glibc==0', { 1196 ['nso_target!="" and build_glibc!=0 and enable_x86_32!=0 and disable_ glibc==0', {
1185 'variables': { 1197 'variables': {
1186 'tool_name': 'glibc', 1198 'tool_name': 'glibc',
1187 'out_glibc32%': '<(SHARED_INTERMEDIATE_DIR)/tc_<(tool_name)/lib3 2/>(nso_target)', 1199 'out_glibc32%': '<(SHARED_INTERMEDIATE_DIR)/tc_<(tool_name)/lib3 2/>(nso_target)',
1188 'objdir_glibc32%': '>(INTERMEDIATE_DIR)/<(tool_name)-x86-32-so/> (_target_name)', 1200 'objdir_glibc32%': '>(INTERMEDIATE_DIR)/<(tool_name)-x86-32-so/> (_target_name)',
(...skipping 30 matching lines...) Expand all
1219 '--gomadir', '<(gomadir)', 1231 '--gomadir', '<(gomadir)',
1220 '--defines=^(defines) >(_defines)', 1232 '--defines=^(defines) >(_defines)',
1221 '--link_flags=-m32 -B>(tc_lib_dir_glibc32) ^(link_flags) >(_l ink_flags)', 1233 '--link_flags=-m32 -B>(tc_lib_dir_glibc32) ^(link_flags) >(_l ink_flags)',
1222 '--source-list=^(source_list_glibc32)', 1234 '--source-list=^(source_list_glibc32)',
1223 ], 1235 ],
1224 }, 1236 },
1225 ], 1237 ],
1226 }], 1238 }],
1227 ], # end target_conditions for glibc (nexe/nlib/nso, x86-32/64) 1239 ], # end target_conditions for glibc (nexe/nlib/nso, x86-32/64)
1228 }, 1240 },
1229 }], # end target_arch == ia32 or x64 1241 }],
1230 ], 1242 ],
1231 'target_defaults': { 1243 'target_defaults': {
1232 'gcc_compile_flags': [], 1244 'gcc_compile_flags': [],
1233 'pnacl_compile_flags': [], 1245 'pnacl_compile_flags': [],
1234 'variables': { 1246 'variables': {
1235 'disable_pnacl%': 0, 1247 'disable_pnacl%': 0,
1236 'build_pnacl_newlib': 0, 1248 'build_pnacl_newlib': 0,
1237 'pnacl_native_biased': 0, 1249 'pnacl_native_biased': 0,
1238 'nexe_target': '', 1250 'nexe_target': '',
1239 'nlib_target': '', 1251 'nlib_target': '',
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
1552 '--defines=^(defines) >(_defines)', 1564 '--defines=^(defines) >(_defines)',
1553 '--link_flags=-B>(tc_lib_dir_pnacl_newlib) ^(link_flags) >(_li nk_flags)', 1565 '--link_flags=-B>(tc_lib_dir_pnacl_newlib) ^(link_flags) >(_li nk_flags)',
1554 '--source-list=^(source_list_pnacl_newlib_arm)', 1566 '--source-list=^(source_list_pnacl_newlib_arm)',
1555 ], 1567 ],
1556 }, 1568 },
1557 ], 1569 ],
1558 }], 1570 }],
1559 ], 1571 ],
1560 }], # end ARM 1572 }], # end ARM
1561 # ia32 or x64 (want to build both for Windows) 1573 # ia32 or x64 (want to build both for Windows)
1562 ['target_arch=="ia32" or target_arch=="x64"', { 1574 ['target_arch=="x64" or (OS=="win" and target_arch=="ia32")', {
1563 'target_conditions': [ 1575 'target_conditions': [
1564 # x64 1576 # x64
1565 ['enable_x86_64!=0 and disable_pnacl==0 and pnacl_native_biased==1 ' 1577 ['enable_x86_64!=0 and disable_pnacl==0 and pnacl_native_biased==1 '
1566 'and nlib_target!="" and build_pnacl_newlib!=0', { 1578 'and nlib_target!="" and build_pnacl_newlib!=0', {
1567 'variables': { 1579 'variables': {
1568 'tool_name': 'pnacl_newlib_x86_64', 1580 'tool_name': 'pnacl_newlib_x86_64',
1569 'out_pnacl_newlib_x86_64%': '<(SHARED_INTERMEDIATE_DIR)/tc_<(tool _name)/lib-x86-64/>(nlib_target)', 1581 'out_pnacl_newlib_x86_64%': '<(SHARED_INTERMEDIATE_DIR)/tc_<(tool _name)/lib-x86-64/>(nlib_target)',
1570 'objdir_pnacl_newlib_x86_64%': '>(INTERMEDIATE_DIR)/<(tool_name)/ >(_target_name)', 1582 'objdir_pnacl_newlib_x86_64%': '>(INTERMEDIATE_DIR)/<(tool_name)/ >(_target_name)',
1571 }, 1583 },
1572 'actions': [ 1584 'actions': [
(...skipping 26 matching lines...) Expand all
1599 '--include-dirs=>(tc_include_dir_pnacl_newlib) ^(include_dirs ) >(_include_dirs)', 1611 '--include-dirs=>(tc_include_dir_pnacl_newlib) ^(include_dirs ) >(_include_dirs)',
1600 '--compile_flags=--target=x86_64-unknown-nacl --pnacl-allow-t ranslate -arch x86-64 ^(compile_flags) >(_compile_flags) ^(pnacl_compile_flags) >(_pnacl_compile_flags)', 1612 '--compile_flags=--target=x86_64-unknown-nacl --pnacl-allow-t ranslate -arch x86-64 ^(compile_flags) >(_compile_flags) ^(pnacl_compile_flags) >(_pnacl_compile_flags)',
1601 '--gomadir', '<(gomadir)', 1613 '--gomadir', '<(gomadir)',
1602 '--defines=^(defines) >(_defines)', 1614 '--defines=^(defines) >(_defines)',
1603 '--link_flags=-B>(tc_lib_dir_pnacl_newlib) ^(link_flags) >(_l ink_flags)', 1615 '--link_flags=-B>(tc_lib_dir_pnacl_newlib) ^(link_flags) >(_l ink_flags)',
1604 '--source-list=^(source_list_pnacl_newlib_x86_64)', 1616 '--source-list=^(source_list_pnacl_newlib_x86_64)',
1605 ], 1617 ],
1606 }, 1618 },
1607 ], 1619 ],
1608 }], # end x64 1620 }], # end x64
1621 ],
1622 }],
1623 ['target_arch=="ia32"', {
1624 'target_conditions': [
1609 # ia32 1625 # ia32
1610 ['enable_x86_32!=0 and disable_pnacl==0 and pnacl_native_biased==1 ' 1626 ['enable_x86_32!=0 and disable_pnacl==0 and pnacl_native_biased==1 '
1611 'and nlib_target!="" and build_pnacl_newlib!=0', { 1627 'and nlib_target!="" and build_pnacl_newlib!=0', {
1612 'variables': { 1628 'variables': {
1613 'tool_name': 'pnacl_newlib_x86_32', 1629 'tool_name': 'pnacl_newlib_x86_32',
1614 'out_pnacl_newlib_x86_32%': '<(SHARED_INTERMEDIATE_DIR)/tc_<(tool _name)/lib-x86-32/>(nlib_target)', 1630 'out_pnacl_newlib_x86_32%': '<(SHARED_INTERMEDIATE_DIR)/tc_<(tool _name)/lib-x86-32/>(nlib_target)',
1615 'objdir_pnacl_newlib_x86_32%': '>(INTERMEDIATE_DIR)/<(tool_name)/ >(_target_name)', 1631 'objdir_pnacl_newlib_x86_32%': '>(INTERMEDIATE_DIR)/<(tool_name)/ >(_target_name)',
1616 }, 1632 },
1617 'actions': [ 1633 'actions': [
1618 { 1634 {
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
1748 ], 1764 ],
1749 }, 1765 },
1750 ], 1766 ],
1751 }], 1767 }],
1752 ], 1768 ],
1753 }], # end MIPS 1769 }], # end MIPS
1754 # end pnacl actions for building ABI-biased native libraries 1770 # end pnacl actions for building ABI-biased native libraries
1755 ], # end conditions for pnacl biased nlib 1771 ], # end conditions for pnacl biased nlib
1756 }, 1772 },
1757 } 1773 }
OLDNEW
« no previous file with comments | « build/nacl_core_sdk.gyp ('k') | tools.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698