| 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 '../build/common_untrusted.gypi', | 7 '../build/common_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 27 matching lines...) Expand all Loading... |
| 38 'out_pnacl_newlib_x86_32_nonsfi_nexe': '>(nacl_pnacl_newlib_nonsfi_out
_dir)/>(nexe_target)_pnacl_newlib_x32_nonsfi.nexe', | 38 'out_pnacl_newlib_x86_32_nonsfi_nexe': '>(nacl_pnacl_newlib_nonsfi_out
_dir)/>(nexe_target)_pnacl_newlib_x32_nonsfi.nexe', |
| 39 'out_pnacl_newlib_arm_nonsfi_nexe': '>(nacl_pnacl_newlib_nonsfi_out_di
r)/>(nexe_target)_pnacl_newlib_arm_nonsfi.nexe', | 39 'out_pnacl_newlib_arm_nonsfi_nexe': '>(nacl_pnacl_newlib_nonsfi_out_di
r)/>(nexe_target)_pnacl_newlib_arm_nonsfi.nexe', |
| 40 'nmf_pnacl_newlib_nonsfi%': '>(nacl_pnacl_newlib_nonsfi_out_dir)/>(nex
e_target).nmf', | 40 'nmf_pnacl_newlib_nonsfi%': '>(nacl_pnacl_newlib_nonsfi_out_dir)/>(nex
e_target).nmf', |
| 41 }], | 41 }], |
| 42 ], | 42 ], |
| 43 }, | 43 }, |
| 44 'dependencies': [ | 44 'dependencies': [ |
| 45 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib', | 45 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib', |
| 46 '<(DEPTH)/native_client/src/untrusted/pthread/pthread.gyp:pthread_lib', | 46 '<(DEPTH)/native_client/src/untrusted/pthread/pthread.gyp:pthread_lib', |
| 47 '<(DEPTH)/ppapi/ppapi_nacl.gyp:ppapi_cpp_lib', | 47 '<(DEPTH)/ppapi/ppapi_nacl.gyp:ppapi_cpp_lib', |
| 48 '<(DEPTH)/ppapi/ppapi_nacl.gyp:nacl_elf_loader', |
| 48 '<(DEPTH)/ppapi/native_client/native_client.gyp:ppapi_lib', | 49 '<(DEPTH)/ppapi/native_client/native_client.gyp:ppapi_lib', |
| 49 ], | 50 ], |
| 50 'target_conditions': [ | 51 'target_conditions': [ |
| 51 ['test_files!=[] and build_newlib==1', { | 52 ['test_files!=[] and build_newlib==1', { |
| 52 'copies': [ | 53 'copies': [ |
| 53 { | 54 { |
| 54 'destination': '>(nacl_newlib_out_dir)', | 55 'destination': '>(nacl_newlib_out_dir)', |
| 55 'files': [ | 56 'files': [ |
| 56 '>@(test_files)', | 57 '>@(test_files)', |
| 57 ], | 58 ], |
| 58 }, | 59 }, |
| 59 ], | 60 ], |
| 60 }], | 61 }], |
| 61 ['test_files!=[] and "<(target_arch)"!="arm" and "<(target_arch)"!="mipsel
" and disable_glibc==0 and build_glibc==1', { | 62 ['test_files!=[] and "<(target_arch)"!="mipsel" and disable_glibc==0 and b
uild_glibc==1', { |
| 62 'copies': [ | 63 'copies': [ |
| 63 { | 64 { |
| 64 'destination': '>(nacl_glibc_out_dir)', | 65 'destination': '>(nacl_glibc_out_dir)', |
| 65 'files': [ | 66 'files': [ |
| 66 '>@(test_files)', | 67 '>@(test_files)', |
| 67 ], | 68 ], |
| 68 }, | 69 }, |
| 69 ], | 70 ], |
| 70 }], | 71 }], |
| 71 # Nonsfi pnacl copy is covered below. | 72 # Nonsfi pnacl copy is covered below. |
| (...skipping 29 matching lines...) Expand all Loading... |
| 101 '<(DEPTH)', | 102 '<(DEPTH)', |
| 102 ], | 103 ], |
| 103 'link_flags': [ | 104 'link_flags': [ |
| 104 '-lppapi_cpp', | 105 '-lppapi_cpp', |
| 105 '-lppapi', | 106 '-lppapi', |
| 106 '-pthread', | 107 '-pthread', |
| 107 ], | 108 ], |
| 108 'extra_args': [ | 109 'extra_args': [ |
| 109 '--strip-all', | 110 '--strip-all', |
| 110 ], | 111 ], |
| 112 'variables': { |
| 113 'conditions': [ |
| 114 ['target_arch=="arm"', { |
| 115 'objdump': '>(nacl_glibc_tc_root)/bin/arm-nacl-objdump' |
| 116 }, { |
| 117 'objdump': '>(nacl_glibc_tc_root)/bin/x86_64-nacl-objdump' |
| 118 }], |
| 119 ] |
| 120 }, |
| 111 'create_nmf': '<(DEPTH)/native_client_sdk/src/tools/create_nmf.py', | 121 'create_nmf': '<(DEPTH)/native_client_sdk/src/tools/create_nmf.py', |
| 112 'create_nmf_args_portable%': [], | 122 'create_nmf_args_portable%': [], |
| 113 'create_nonsfi_test_nmf': '<(DEPTH)/ppapi/tests/create_nonsfi_test_nmf
.py', | 123 'create_nonsfi_test_nmf': '<(DEPTH)/ppapi/tests/create_nonsfi_test_nmf
.py', |
| 114 'create_nmf_args': [ | 124 'create_nmf_args': [ |
| 115 '--no-default-libpath', | 125 '--no-default-libpath', |
| 116 '--objdump=>(nacl_glibc_tc_root)/bin/x86_64-nacl-objdump', | 126 '--objdump=<(objdump)', |
| 117 ], | 127 ], |
| 118 }, | 128 }, |
| 119 'target_conditions': [ | 129 'target_conditions': [ |
| 120 ['generate_nmf==1 and build_newlib==1 and disable_newlib==0', { | 130 ['generate_nmf==1 and build_newlib==1 and disable_newlib==0', { |
| 121 'actions': [ | 131 'actions': [ |
| 122 { | 132 { |
| 123 'action_name': 'Generate NEWLIB NMF', | 133 'action_name': 'Generate NEWLIB NMF', |
| 124 'inputs': ['>(create_nmf)'], | 134 'inputs': ['>(create_nmf)'], |
| 125 'outputs': ['>(nmf_newlib)'], | 135 'outputs': ['>(nmf_newlib)'], |
| 126 'action': [ | 136 'action': [ |
| (...skipping 17 matching lines...) Expand all Loading... |
| 144 'action': ['>(out_newlib_arm)'], | 154 'action': ['>(out_newlib_arm)'], |
| 145 }], | 155 }], |
| 146 ['enable_mips==1', { | 156 ['enable_mips==1', { |
| 147 'inputs': ['>(out_newlib_mips)'], | 157 'inputs': ['>(out_newlib_mips)'], |
| 148 'action': ['>(out_newlib_mips)'], | 158 'action': ['>(out_newlib_mips)'], |
| 149 }], | 159 }], |
| 150 ], | 160 ], |
| 151 }, | 161 }, |
| 152 ], | 162 ], |
| 153 }], | 163 }], |
| 154 ['"<(target_arch)"!="arm" and "<(target_arch)"!="mipsel" and generate_
nmf==1 and disable_glibc==0 and build_glibc==1', { | 164 ['"<(target_arch)"!="mipsel" and generate_nmf==1 and disable_glibc==0
and build_glibc==1', { |
| 155 'variables': { | 165 'variables': { |
| 156 # NOTE: Use /lib, not /lib64 here; it is a symbolic link which | 166 # NOTE: Use /lib, not /lib64 here; it is a symbolic link which |
| 157 # doesn't work on Windows. | 167 # doesn't work on Windows. |
| 158 'libdir_glibc64': '>(nacl_glibc_tc_root)/x86_64-nacl/lib', | 168 'libdir_glibc64': '>(nacl_glibc_tc_root)/x86_64-nacl/lib', |
| 159 'libdir_glibc32': '>(nacl_glibc_tc_root)/x86_64-nacl/lib32', | 169 'libdir_glibc32': '>(nacl_glibc_tc_root)/x86_64-nacl/lib32', |
| 170 'libdir_glibc_arm': '>(nacl_glibc_tc_root)/arm-nacl/lib', |
| 160 }, | 171 }, |
| 161 'actions': [ | 172 'actions': [ |
| 162 { | 173 { |
| 163 'action_name': 'Generate GLIBC NMF and copy libs', | 174 'action_name': 'Generate GLIBC NMF and copy libs', |
| 164 'inputs': ['>(create_nmf)'], | 175 'inputs': ['>(create_nmf)'], |
| 165 # NOTE: There is no explicit dependency for the lib32 | 176 # NOTE: There is no explicit dependency for the lib32 |
| 166 # and lib64 directories created in the PRODUCT_DIR. | 177 # and lib64 directories created in the PRODUCT_DIR. |
| 167 # They are created as a side-effect of NMF creation. | 178 # They are created as a side-effect of NMF creation. |
| 168 'outputs': ['>(nmf_glibc)'], | 179 'outputs': ['>(nmf_glibc)'], |
| 169 'action': [ | 180 'action': [ |
| (...skipping 13 matching lines...) Expand all Loading... |
| 183 '--library-path=>(tc_lib_dir_glibc64)', | 194 '--library-path=>(tc_lib_dir_glibc64)', |
| 184 ], | 195 ], |
| 185 }], | 196 }], |
| 186 ['enable_x86_32==1', { | 197 ['enable_x86_32==1', { |
| 187 'inputs': ['>(out_glibc32)'], | 198 'inputs': ['>(out_glibc32)'], |
| 188 'action': [ | 199 'action': [ |
| 189 '--library-path=>(libdir_glibc32)', | 200 '--library-path=>(libdir_glibc32)', |
| 190 '--library-path=>(tc_lib_dir_glibc32)', | 201 '--library-path=>(tc_lib_dir_glibc32)', |
| 191 ], | 202 ], |
| 192 }], | 203 }], |
| 193 # TODO(ncbray) handle arm case. We don't have ARM glibc yet. | 204 ['enable_arm==1', { |
| 205 'inputs': ['>(out_glibc_arm)'], |
| 206 'action': [ |
| 207 '--library-path=>(libdir_glibc_arm)', |
| 208 '--library-path=>(tc_lib_dir_glibc_arm)', |
| 209 ], |
| 210 }], |
| 194 ], | 211 ], |
| 195 }, | 212 }, |
| 196 ], | 213 ], |
| 197 }], | 214 }], |
| 198 ['generate_nmf==1 and build_pnacl_newlib==1 and disable_pnacl==0', { | 215 ['generate_nmf==1 and build_pnacl_newlib==1 and disable_pnacl==0', { |
| 199 'actions': [ | 216 'actions': [ |
| 200 { | 217 { |
| 201 'action_name': 'Generate PNACL NEWLIB NMF', | 218 'action_name': 'Generate PNACL NEWLIB NMF', |
| 202 # NOTE: create_nmf must be first, it is the script python | 219 # NOTE: create_nmf must be first, it is the script python |
| 203 # executes below. | 220 # executes below. |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 }], | 276 }], |
| 260 ], | 277 ], |
| 261 }, | 278 }, |
| 262 ], | 279 ], |
| 263 }], | 280 }], |
| 264 ], | 281 ], |
| 265 }], | 282 }], |
| 266 ], | 283 ], |
| 267 }, | 284 }, |
| 268 } | 285 } |
| OLD | NEW |