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.
7 '../../../../../native_client/build/untrusted.gypi',
11 # The full library, which PNaCl uses for offline .pexe -> .nexe.
12 'target_name': 'pnacl_irt_shim_aot',
15 'nlib_target': 'libpnacl_irt_shim.a',
16 'out_pnacl_newlib_arm': '>(tc_lib_dir_pnacl_translate)/lib-arm/>(nlib_target)',
17 'out_pnacl_newlib_x86_32': '>(tc_lib_dir_pnacl_translate)/lib-x86-32/>(nlib_target)',
18 'out_pnacl_newlib_x86_64': '>(tc_lib_dir_pnacl_translate)/lib-x86-64/>(nlib_target)',
19 'out_pnacl_newlib_mips': '>(tc_lib_dir_pnacl_translate)/lib-mips32/>(nlib_target)',
20 'out_pnacl_newlib_x86_32_nonsfi': '>(tc_lib_dir_pnacl_translate)/lib-x86-32-nonsfi/>(nlib_target)',
23 'build_pnacl_newlib': 1,
24 'pnacl_native_biased': 1,
29 'enable_x86_32_nonsfi': 1,
39 # Indicate that shim should not depend on unstable IRT hook interface.
45 '<(DEPTH)/native_client/tools.gyp:prep_toolchain',
48 # Smaller shim library for PNaCl in-browser translation.
49 # Uses an unstable IRT hook interface to get the shim from the IRT itself.
50 # If we ever change that hook interface or change the in-IRT shim's ABI,
51 # we would need to clear the translation cache to match the new IRT.
53 'target_name': 'pnacl_irt_shim_browser',
56 # Same name as pnacl_irt_shim_aot, so that we don't need to change
57 # the linker commandlines, but output to the "for_browser" directory,
58 # and have the pnacl_support_extension copy from that directory.
59 'nlib_target': 'libpnacl_irt_shim.a',
60 'out_pnacl_newlib_arm': '>(tc_lib_dir_pnacl_translate)/lib-arm/for_browser/>(nlib_target)',
61 'out_pnacl_newlib_x86_32': '>(tc_lib_dir_pnacl_translate)/lib-x86-32/for_browser/>(nlib_target)',
62 'out_pnacl_newlib_x86_64': '>(tc_lib_dir_pnacl_translate)/lib-x86-64/for_browser/>(nlib_target)',
63 'out_pnacl_newlib_mips': '>(tc_lib_dir_pnacl_translate)/lib-mips32/for_browser/>(nlib_target)',
66 'build_pnacl_newlib': 1,
67 'pnacl_native_biased': 1,
81 '<(DEPTH)/native_client/tools.gyp:prep_toolchain',
85 # Second half of shim library for PNaCl in-browser translation.
86 # This half goes into the IRT and is returned by the unstable
88 'target_name': 'pnacl_irt_shim_for_irt',
91 'nlib_target': 'libpnacl_irt_shim_for_irt.a',
94 # Unlike the above, build this the way the IRT is built so that the
95 # output library directories match the IRT linking search paths.
103 '<(DEPTH)/native_client/tools.gyp:prep_toolchain',