| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 # This GYP file defines untrusted (NaCl) targets. All targets in this | 5 # This GYP file defines untrusted (NaCl) targets. All targets in this |
| 6 # file should be conditionally depended upon via 'disable_nacl!=1' to avoid | 6 # file should be conditionally depended upon via 'disable_nacl!=1' to avoid |
| 7 # requiring NaCl sources for building. | 7 # requiring NaCl sources for building. |
| 8 | 8 |
| 9 { | 9 { |
| 10 'includes': [ | 10 'includes': [ |
| 11 '../build/common_untrusted.gypi', | 11 '../build/common_untrusted.gypi', |
| 12 'ppapi_sources.gypi', | 12 'ppapi_sources.gypi', |
| 13 ], | 13 ], |
| 14 'targets': [ | 14 'targets': [ |
| 15 { | 15 { |
| 16 'target_name': 'nacl_elf_loader', |
| 17 'type': 'none', |
| 18 'conditions': [ |
| 19 ['target_arch=="arm" and disable_glibc==0', { |
| 20 'dependencies': [ |
| 21 '<(DEPTH)/native_client/src/untrusted/elf_loader/elf_loader.gyp:elf_
loader_nexe', |
| 22 ], |
| 23 'actions': [ |
| 24 { |
| 25 'action_name': 'copy_arm_elf_loader', |
| 26 'message': 'Copying elf_loader_arm.nexe', |
| 27 'inputs': [ |
| 28 '<(PRODUCT_DIR)/elf_loader_newlib_arm.nexe', |
| 29 ], |
| 30 'outputs': [ |
| 31 '>(tc_lib_dir_glibc_arm)/elf_loader_arm.nexe', |
| 32 ], |
| 33 'action': [ |
| 34 'python', '<(DEPTH)/build/cp.py', '>@(_inputs)', '>@(_outputs)' |
| 35 ], |
| 36 }], |
| 37 }], |
| 38 ], |
| 39 }, |
| 40 { |
| 16 'target_name': 'ppapi_cpp_lib', | 41 'target_name': 'ppapi_cpp_lib', |
| 17 'type': 'none', | 42 'type': 'none', |
| 18 'variables': { | 43 'variables': { |
| 19 'nlib_target': 'libppapi_cpp.a', | 44 'nlib_target': 'libppapi_cpp.a', |
| 20 'nso_target': 'libppapi_cpp.so', | 45 'nso_target': 'libppapi_cpp.so', |
| 21 'nacl_untrusted_build': 1, | 46 'nacl_untrusted_build': 1, |
| 22 'build_glibc': 1, | 47 'build_glibc': 1, |
| 23 'build_newlib': 1, | 48 'build_newlib': 1, |
| 24 'build_pnacl_newlib': 1, | 49 'build_pnacl_newlib': 1, |
| 25 'sources': [ | 50 'sources': [ |
| (...skipping 23 matching lines...) Expand all Loading... |
| 49 ], | 74 ], |
| 50 }, | 75 }, |
| 51 }, | 76 }, |
| 52 { | 77 { |
| 53 'target_name': 'ppapi_nacl_tests', | 78 'target_name': 'ppapi_nacl_tests', |
| 54 'type': 'none', | 79 'type': 'none', |
| 55 'dependencies': [ | 80 'dependencies': [ |
| 56 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib', | 81 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib', |
| 57 '<(DEPTH)/native_client/src/untrusted/pthread/pthread.gyp:pthread_lib', | 82 '<(DEPTH)/native_client/src/untrusted/pthread/pthread.gyp:pthread_lib', |
| 58 'ppapi_cpp_lib', | 83 'ppapi_cpp_lib', |
| 84 'nacl_elf_loader', |
| 59 'native_client/native_client.gyp:ppapi_lib', | 85 'native_client/native_client.gyp:ppapi_lib', |
| 60 ], | 86 ], |
| 61 'variables': { | 87 'variables': { |
| 62 # This is user code (vs IRT code), so tls accesses do not | 88 # This is user code (vs IRT code), so tls accesses do not |
| 63 # need to be indirect through a function call. | 89 # need to be indirect through a function call. |
| 64 'newlib_tls_flags=': [], | 90 'newlib_tls_flags=': [], |
| 65 # TODO(bradnelson): Remove this compile flag once new nacl_rev is | 91 # TODO(bradnelson): Remove this compile flag once new nacl_rev is |
| 66 # above 9362. | 92 # above 9362. |
| 67 'compile_flags': [ | 93 'compile_flags': [ |
| 68 '-DGL_GLEXT_PROTOTYPES', | 94 '-DGL_GLEXT_PROTOTYPES', |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 '>(tc_lib_dir_pnacl_newlib)/libppapi_cpp.a', | 153 '>(tc_lib_dir_pnacl_newlib)/libppapi_cpp.a', |
| 128 '>(tc_lib_dir_pnacl_newlib)/libppapi.a', | 154 '>(tc_lib_dir_pnacl_newlib)/libppapi.a', |
| 129 ], | 155 ], |
| 130 'sources': [ | 156 'sources': [ |
| 131 '<@(test_common_source_files)', | 157 '<@(test_common_source_files)', |
| 132 '<@(test_nacl_source_files)', | 158 '<@(test_nacl_source_files)', |
| 133 ], | 159 ], |
| 134 'extra_args': [ | 160 'extra_args': [ |
| 135 '--strip-all', | 161 '--strip-all', |
| 136 ], | 162 ], |
| 163 'variables': { |
| 164 'conditions': [ |
| 165 ['target_arch=="arm"', { |
| 166 'objdump': '>(nacl_glibc_tc_root)/bin/arm-nacl-objdump' |
| 167 }, { |
| 168 'objdump': '>(nacl_glibc_tc_root)/bin/x86_64-nacl-objdump' |
| 169 }], |
| 170 ] |
| 171 }, |
| 137 'create_nmf': '<(DEPTH)/native_client_sdk/src/tools/create_nmf.py', | 172 'create_nmf': '<(DEPTH)/native_client_sdk/src/tools/create_nmf.py', |
| 138 'create_nmf_flags': [ | 173 'create_nmf_flags': [ |
| 139 '--no-default-libpath', | 174 '--no-default-libpath', |
| 140 '--objdump=>(nacl_glibc_tc_root)/bin/x86_64-nacl-objdump', | 175 '--objdump=<(objdump)', |
| 141 ], | 176 ], |
| 142 'create_nonsfi_test_nmf': 'tests/create_nonsfi_test_nmf.py', | 177 'create_nonsfi_test_nmf': 'tests/create_nonsfi_test_nmf.py', |
| 143 }, | 178 }, |
| 144 'conditions': [ | 179 'conditions': [ |
| 145 ['(target_arch=="ia32" or target_arch=="x64") and disable_glibc==0', { | 180 ['target_arch!="mipsel" and disable_glibc==0', { |
| 146 'variables': { | 181 'variables': { |
| 147 'build_glibc': 1, | 182 'build_glibc': 1, |
| 148 # NOTE: Use /lib, not /lib64 here; it is a symbolic link which | 183 # NOTE: Use /lib, not /lib64 here; it is a symbolic link which |
| 149 # doesn't work on Windows. | 184 # doesn't work on Windows. |
| 150 'libdir_glibc64': '>(nacl_glibc_tc_root)/x86_64-nacl/lib', | 185 'libdir_glibc64': '>(nacl_glibc_tc_root)/x86_64-nacl/lib', |
| 151 'libdir_glibc32': '>(nacl_glibc_tc_root)/x86_64-nacl/lib32', | 186 'libdir_glibc32': '>(nacl_glibc_tc_root)/x86_64-nacl/lib32', |
| 152 'nmf_glibc%': '<(PRODUCT_DIR)/>(nexe_target)_glibc.nmf', | 187 'nmf_glibc%': '<(PRODUCT_DIR)/>(nexe_target)_glibc.nmf', |
| 153 }, | 188 }, |
| 154 'actions': [ | 189 'actions': [ |
| 155 { | 190 { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 169 '--stage-dependencies=<(PRODUCT_DIR)', | 204 '--stage-dependencies=<(PRODUCT_DIR)', |
| 170 ], | 205 ], |
| 171 'conditions': [ | 206 'conditions': [ |
| 172 ['target_arch=="ia32"', { | 207 ['target_arch=="ia32"', { |
| 173 'action': [ | 208 'action': [ |
| 174 '--library-path=>(libdir_glibc32)', | 209 '--library-path=>(libdir_glibc32)', |
| 175 '--library-path=>(tc_lib_dir_glibc32)', | 210 '--library-path=>(tc_lib_dir_glibc32)', |
| 176 ], | 211 ], |
| 177 'inputs': ['>(out_glibc32)'], | 212 'inputs': ['>(out_glibc32)'], |
| 178 }], | 213 }], |
| 214 ['target_arch=="arm"', { |
| 215 'action': [ |
| 216 '--library-path=>(nacl_glibc_tc_root)/arm-nacl/lib', |
| 217 '--library-path=>(tc_lib_dir_glibc_arm)', |
| 218 ], |
| 219 'inputs': ['>(out_glibc_arm)'], |
| 220 }], |
| 179 ['target_arch=="x64" or (target_arch=="ia32" and OS=="win")', { | 221 ['target_arch=="x64" or (target_arch=="ia32" and OS=="win")', { |
| 180 'action': [ | 222 'action': [ |
| 181 '--library-path=>(libdir_glibc64)', | 223 '--library-path=>(libdir_glibc64)', |
| 182 '--library-path=>(tc_lib_dir_glibc64)', | 224 '--library-path=>(tc_lib_dir_glibc64)', |
| 183 ], | 225 ], |
| 184 'inputs': ['>(out_glibc64)'], | 226 'inputs': ['>(out_glibc64)'], |
| 185 }], | 227 }], |
| 186 ], | 228 ], |
| 187 }, | 229 }, |
| 188 ], | 230 ], |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 '>@(create_nmf_flags)', | 393 '>@(create_nmf_flags)', |
| 352 '--output=>(nmf_pnacl)', | 394 '--output=>(nmf_pnacl)', |
| 353 ], | 395 ], |
| 354 }, | 396 }, |
| 355 ], | 397 ], |
| 356 }], | 398 }], |
| 357 ], | 399 ], |
| 358 }, | 400 }, |
| 359 ], | 401 ], |
| 360 } | 402 } |
| OLD | NEW |