| OLD | NEW |
| (Empty) |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 { | |
| 6 'includes': [ | |
| 7 '../../../../../native_client/build/untrusted.gypi', | |
| 8 ], | |
| 9 'targets': [ | |
| 10 { | |
| 11 # The full library, which PNaCl uses for offline .pexe -> .nexe. | |
| 12 # We keep the target names in this file short to avoid having really long | |
| 13 # path names on Windows. | |
| 14 # https://code.google.com/p/nativeclient/issues/detail?id=3846 | |
| 15 'target_name': 'aot', | |
| 16 'type': 'none', | |
| 17 'variables': { | |
| 18 'nlib_target': 'libpnacl_irt_shim.a', | |
| 19 'out_pnacl_newlib_arm': '>(tc_lib_dir_pnacl_translate)/lib-arm/>(nlib_ta
rget)', | |
| 20 'out_pnacl_newlib_x86_32': '>(tc_lib_dir_pnacl_translate)/lib-x86-32/>(n
lib_target)', | |
| 21 'out_pnacl_newlib_x86_64': '>(tc_lib_dir_pnacl_translate)/lib-x86-64/>(n
lib_target)', | |
| 22 'out_pnacl_newlib_mips': '>(tc_lib_dir_pnacl_translate)/lib-mips32/>(nli
b_target)', | |
| 23 # TODO(hidehiko): When crrev.com/524573002 is submitted and NaCl | |
| 24 # repository is rolled out with the CL, then we can simply remove this | |
| 25 # variable, as it is no longer used. | |
| 26 'out_pnacl_newlib_x86_32_nonsfi': '>(tc_lib_dir_pnacl_translate)/lib-x86
-32-nonsfi/>(nlib_target)', | |
| 27 'out_newlib32_nonsfi': '>(tc_lib_dir_pnacl_translate)/lib-x86-32-nonsfi/
>(nlib_target)', | |
| 28 'out_pnacl_newlib_arm_nonsfi': '>(tc_lib_dir_pnacl_translate)/lib-arm-no
nsfi/>(nlib_target)', | |
| 29 'out_newlib_arm_nonsfi': '>(tc_lib_dir_pnacl_translate)/lib-arm-nonsfi/>
(nlib_target)', | |
| 30 'build_pnacl_newlib': 1, | |
| 31 'pnacl_native_biased': 1, | |
| 32 'enable_x86_32': 1, | |
| 33 'enable_x86_64': 1, | |
| 34 'enable_arm': 1, | |
| 35 'enable_mips': 1, | |
| 36 'enable_x86_32_nonsfi': 1, | |
| 37 'enable_arm_nonsfi': 1, | |
| 38 'sources': [ | |
| 39 'irt_shim_ppapi.c', | |
| 40 'pnacl_shim.c', | |
| 41 'shim_entry.c', | |
| 42 'shim_ppapi.c', | |
| 43 ], | |
| 44 'extra_args': [ | |
| 45 '--strip-debug', | |
| 46 ], | |
| 47 # Indicate that this variant of the shim library should not depend on | |
| 48 # the unstable/private IRT hook interface. | |
| 49 'compile_flags': [ | |
| 50 '-DPNACL_SHIM_AOT', | |
| 51 ], | |
| 52 }, | |
| 53 }, | |
| 54 # Smaller shim library for PNaCl in-browser translation. | |
| 55 # Uses an unstable IRT hook interface to get the shim from the IRT itself. | |
| 56 # If we ever change that hook interface or change the in-IRT shim's ABI, | |
| 57 # we would need to clear the translation cache to match the new IRT. | |
| 58 { | |
| 59 'target_name': 'browser', | |
| 60 'type': 'none', | |
| 61 'variables': { | |
| 62 # Use a different name from the AOT variant. Have the | |
| 63 # pnacl_support_extension rename this to the canonical name when | |
| 64 # copying to the final target directory. | |
| 65 'nlib_target': 'libpnacl_irt_shim_browser.a', | |
| 66 'build_newlib': 1, | |
| 67 'sources': [ | |
| 68 'shim_entry.c', | |
| 69 'shim_ppapi.c', | |
| 70 ], | |
| 71 'extra_args': [ | |
| 72 '--strip-debug', | |
| 73 ], | |
| 74 }, | |
| 75 }, | |
| 76 { | |
| 77 # Second half of shim library for PNaCl in-browser translation. | |
| 78 # This half goes into the IRT and is returned by the unstable | |
| 79 # IRT hook interface. | |
| 80 'target_name': 'irt', | |
| 81 'type': 'none', | |
| 82 'variables': { | |
| 83 'nlib_target': 'libpnacl_irt_shim_for_irt.a', | |
| 84 'build_glibc': 0, | |
| 85 'build_newlib': 0, | |
| 86 # Unlike the above, build this the way the IRT is built so that the | |
| 87 # output library directories match the IRT linking search paths. | |
| 88 'build_irt': 1, | |
| 89 'sources': [ | |
| 90 'irt_shim_ppapi.c', | |
| 91 'pnacl_shim.c', | |
| 92 ], | |
| 93 }, | |
| 94 }, | |
| 95 ], | |
| 96 } | |
| OLD | NEW |