Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 'includes': [ | 6 'includes': [ |
| 7 '../native_client/build/untrusted.gypi', | 7 '../native_client/build/untrusted.gypi', |
| 8 ], | 8 ], |
| 9 'target_defaults': { | 9 'target_defaults': { |
| 10 # We need to override the variables in untrusted.gypi outside of a | 10 # We need to override the variables in untrusted.gypi outside of a |
| (...skipping 17 matching lines...) Expand all Loading... | |
| 28 'out_newlib_arm%': '>(nacl_newlib_out_dir)/>(nexe_target)_newlib_arm.n exe', | 28 'out_newlib_arm%': '>(nacl_newlib_out_dir)/>(nexe_target)_newlib_arm.n exe', |
| 29 'out_newlib_mips%': '>(nacl_newlib_out_dir)/>(nexe_target)_newlib_mips 32.nexe', | 29 'out_newlib_mips%': '>(nacl_newlib_out_dir)/>(nexe_target)_newlib_mips 32.nexe', |
| 30 'nmf_newlib%': '>(nacl_newlib_out_dir)/>(nexe_target).nmf', | 30 'nmf_newlib%': '>(nacl_newlib_out_dir)/>(nexe_target).nmf', |
| 31 'out_glibc32%': '>(nacl_glibc_out_dir)/>(nexe_target)_glibc_x86_32.nex e', | 31 'out_glibc32%': '>(nacl_glibc_out_dir)/>(nexe_target)_glibc_x86_32.nex e', |
| 32 'out_glibc64%': '>(nacl_glibc_out_dir)/>(nexe_target)_glibc_x86_64.nex e', | 32 'out_glibc64%': '>(nacl_glibc_out_dir)/>(nexe_target)_glibc_x86_64.nex e', |
| 33 'out_glibc_arm%': '>(nacl_glibc_out_dir)/>(nexe_target)_glibc_arm.nexe ', | 33 'out_glibc_arm%': '>(nacl_glibc_out_dir)/>(nexe_target)_glibc_arm.nexe ', |
| 34 'nmf_glibc%': '>(nacl_glibc_out_dir)/>(nexe_target).nmf', | 34 'nmf_glibc%': '>(nacl_glibc_out_dir)/>(nexe_target).nmf', |
| 35 'out_pnacl_newlib%': '>(nacl_pnacl_newlib_out_dir)/>(nexe_target)_newl ib_pnacl.pexe', | 35 'out_pnacl_newlib%': '>(nacl_pnacl_newlib_out_dir)/>(nexe_target)_newl ib_pnacl.pexe', |
| 36 'nmf_pnacl_newlib%': '>(nacl_pnacl_newlib_out_dir)/>(nexe_target).nmf' , | 36 'nmf_pnacl_newlib%': '>(nacl_pnacl_newlib_out_dir)/>(nexe_target).nmf' , |
| 37 'out_pnacl_newlib_x86_32_nonsfi_nexe': '>(nacl_pnacl_newlib_nonsfi_out _dir)/>(nexe_target)_pnacl_newlib_x32_nonsfi.nexe', | 37 'out_pnacl_newlib_x86_32_nonsfi_nexe': '>(nacl_pnacl_newlib_nonsfi_out _dir)/>(nexe_target)_pnacl_newlib_x32_nonsfi.nexe', |
| 38 'nmf_pnacl_newlib_nonsfi%': '>(nacl_pnacl_newlib_nonsfi_out_dir)/>(nex e_target).nmf', | |
| 38 }], | 39 }], |
| 39 ], | 40 ], |
| 40 }, | 41 }, |
| 41 'dependencies': [ | 42 'dependencies': [ |
| 42 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib', | 43 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib', |
| 43 '<(DEPTH)/ppapi/ppapi_nacl.gyp:ppapi_cpp_lib', | 44 '<(DEPTH)/ppapi/ppapi_nacl.gyp:ppapi_cpp_lib', |
| 44 '<(DEPTH)/ppapi/native_client/native_client.gyp:ppapi_lib', | 45 '<(DEPTH)/ppapi/native_client/native_client.gyp:ppapi_lib', |
| 45 ], | 46 ], |
| 46 'target_conditions': [ | 47 'target_conditions': [ |
| 47 ['test_files!=[] and build_newlib==1', { | 48 ['test_files!=[] and build_newlib==1', { |
| 48 'copies': [ | 49 'copies': [ |
| 49 { | 50 { |
| 50 'destination': '>(nacl_newlib_out_dir)', | 51 'destination': '>(nacl_newlib_out_dir)', |
| 51 'files': [ | 52 'files': [ |
| 52 '>@(test_files)', | 53 '>@(test_files)', |
| 53 ], | 54 ], |
| 54 }, | 55 }, |
| 55 ], | 56 ], |
| 56 }], | 57 }], |
| 57 ['test_files!=[] and "<(target_arch)"!="arm" and "<(target_arch)"!="mipsel " and disable_glibc==0 and build_glibc==1', { | 58 ['test_files!=[] and "<(target_arch)"!="arm" and "<(target_arch)"!="mipsel " and disable_glibc==0 and build_glibc==1', { |
| 58 'copies': [ | 59 'copies': [ |
| 59 { | 60 { |
| 60 'destination': '>(nacl_glibc_out_dir)', | 61 'destination': '>(nacl_glibc_out_dir)', |
| 61 'files': [ | 62 'files': [ |
| 62 '>@(test_files)', | 63 '>@(test_files)', |
| 63 ], | 64 ], |
| 64 }, | 65 }, |
| 65 ], | 66 ], |
| 66 }], | 67 }], |
| 67 # Nonsfi pnacl copy is covered below. Currently, these are exclusive. | 68 # Nonsfi pnacl copy is covered below. |
| 68 ['test_files!=[] and build_pnacl_newlib==1 and disable_pnacl==0 and enable _x86_32_nonsfi==0', { | 69 ['test_files!=[] and build_pnacl_newlib==1 and disable_pnacl==0 and (enabl e_x86_32==1 or enable_x86_64==1 or enable_arm==1 or enable_mips==1)', { |
|
Mark Seaborn
2014/05/19 18:55:29
Can you assume that "enable_x86_32==1 or enable_x8
hidehiko
2014/05/20 05:51:47
Acknowledged.
| |
| 69 'copies': [ | 70 'copies': [ |
| 70 { | 71 { |
| 71 'destination': '>(nacl_pnacl_newlib_out_dir)', | 72 'destination': '>(nacl_pnacl_newlib_out_dir)', |
| 72 'files': [ | 73 'files': [ |
| 73 '>@(test_files)', | 74 '>@(test_files)', |
| 74 ], | 75 ], |
| 75 }, | 76 }, |
| 76 ], | 77 ], |
| 77 }], | 78 }], |
| 78 ['test_files!=[] and build_pnacl_newlib==1 and enable_x86_32_nonsfi==1', { | 79 ['test_files!=[] and build_pnacl_newlib==1 and enable_x86_32_nonsfi==1', { |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 99 'link_flags': [ | 100 'link_flags': [ |
| 100 '-lppapi_cpp', | 101 '-lppapi_cpp', |
| 101 '-lppapi', | 102 '-lppapi', |
| 102 '-pthread', | 103 '-pthread', |
| 103 ], | 104 ], |
| 104 'extra_args': [ | 105 'extra_args': [ |
| 105 '--strip-all', | 106 '--strip-all', |
| 106 ], | 107 ], |
| 107 'create_nmf': '<(DEPTH)/native_client_sdk/src/tools/create_nmf.py', | 108 'create_nmf': '<(DEPTH)/native_client_sdk/src/tools/create_nmf.py', |
| 108 'create_nmf_args_portable%': [], | 109 'create_nmf_args_portable%': [], |
| 110 'create_nonsfi_test_nmf': '<(DEPTH)/ppapi/tests/create_nonsfi_test_nmf .py', | |
| 109 }, | 111 }, |
| 110 'target_conditions': [ | 112 'target_conditions': [ |
| 111 ['generate_nmf==1 and build_newlib==1', { | 113 ['generate_nmf==1 and build_newlib==1', { |
| 112 'actions': [ | 114 'actions': [ |
| 113 { | 115 { |
| 114 'action_name': 'Generate NEWLIB NMF', | 116 'action_name': 'Generate NEWLIB NMF', |
| 115 'inputs': ['>(create_nmf)'], | 117 'inputs': ['>(create_nmf)'], |
| 116 'outputs': ['>(nmf_newlib)'], | 118 'outputs': ['>(nmf_newlib)'], |
| 117 'action': [ | 119 'action': [ |
| 118 'python', | 120 'python', |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 181 '>(out_glibc32)', | 183 '>(out_glibc32)', |
| 182 '--library-path=>(libdir_glibc32)', | 184 '--library-path=>(libdir_glibc32)', |
| 183 '--library-path=>(tc_lib_dir_glibc32)', | 185 '--library-path=>(tc_lib_dir_glibc32)', |
| 184 ], | 186 ], |
| 185 }], | 187 }], |
| 186 # TODO(ncbray) handle arm case. We don't have ARM glibc yet. | 188 # TODO(ncbray) handle arm case. We don't have ARM glibc yet. |
| 187 ], | 189 ], |
| 188 }, | 190 }, |
| 189 ], | 191 ], |
| 190 }], | 192 }], |
| 191 ['generate_nmf==1 and build_pnacl_newlib==1 and disable_pnacl==0', { | 193 ['generate_nmf==1 and build_pnacl_newlib==1 and disable_pnacl==0 and ( enable_x86_32==1 or enable_x86_64==1 or enable_arm==1 or enable_mips==1)', { |
|
Mark Seaborn
2014/05/19 18:55:29
I don't understand the reason for changing this.
hidehiko
2014/05/20 05:51:47
Conceptually, we should, for irt_manifest_file, if
Mark Seaborn
2014/05/21 00:08:39
...
hidehiko
2014/05/21 13:25:32
Seems like we want to control sfi glibc and sfi ne
| |
| 192 'actions': [ | 194 'actions': [ |
| 193 { | 195 { |
| 194 'action_name': 'Generate PNACL NEWLIB NMF', | 196 'action_name': 'Generate PNACL NEWLIB NMF', |
| 195 # NOTE: create_nmf must be first, it is the script python | 197 # NOTE: create_nmf must be first, it is the script python |
| 196 # executes below. | 198 # executes below. |
| 197 'inputs': ['>(create_nmf)', '>(out_pnacl_newlib)'], | 199 'inputs': ['>(create_nmf)', '>(out_pnacl_newlib)'], |
| 198 'outputs': ['>(nmf_pnacl_newlib)'], | 200 'outputs': ['>(nmf_pnacl_newlib)'], |
| 199 'action': [ | 201 'action': [ |
| 200 'python', | 202 'python', |
| 201 '>(create_nmf)', | 203 '>(create_nmf)', |
| 202 '--output=>(nmf_pnacl_newlib)', | 204 '--output=>(nmf_pnacl_newlib)', |
| 203 '>(out_pnacl_newlib)', | 205 '>(out_pnacl_newlib)', |
| 204 '>@(create_nmf_args_portable)', | 206 '>@(create_nmf_args_portable)', |
| 205 ], | 207 ], |
| 206 }, | 208 }, |
| 207 ], | 209 ], |
| 208 }], | 210 }], |
| 211 ['generate_nmf==1 and build_pnacl_newlib==1 and disable_pnacl==0 and e nable_x86_32_nonsfi', { | |
|
Mark Seaborn
2014/05/19 18:55:29
Should this have "enable_x86_32_nonsfi==1" (add "=
hidehiko
2014/05/20 05:51:47
Done.
| |
| 212 'actions': [ | |
| 213 { | |
| 214 'action_name': 'Generate PNACL NEWLIB nonsfi NMF', | |
| 215 # If we support arm, we should split the dependency to | |
|
Mark Seaborn
2014/05/19 18:55:29
Nit: "If we add support for ARM"? "dependency on"
hidehiko
2014/05/20 05:51:47
Done.
| |
| 216 # out_pnacl_newlib_x86_32_nonsfi_nexe to 'target_conditions', | |
| 217 # similar to build_newlib=1 config declared above. | |
| 218 'inputs': ['>(create_nonsfi_test_nmf)', | |
| 219 '>(out_pnacl_newlib_x86_32_nonsfi_nexe)'], | |
| 220 'outputs': ['>(nmf_pnacl_newlib_nonsfi)'], | |
| 221 'action': [ | |
| 222 'python', | |
| 223 '>(create_nonsfi_test_nmf)', | |
| 224 '--output=>(nmf_pnacl_newlib_nonsfi)', | |
| 225 '--program=>(out_pnacl_newlib_x86_32_nonsfi_nexe)', | |
| 226 '>@(create_nmf_args_portable)' | |
| 227 ], | |
| 228 }, | |
| 229 ], | |
| 230 }], | |
| 209 ], | 231 ], |
| 210 }], | 232 }], |
| 211 ], | 233 ], |
| 212 }, | 234 }, |
| 213 } | 235 } |
| OLD | NEW |