- add sources.
[platform/framework/web/crosswalk.git] / src / ppapi / native_client / src / untrusted / pnacl_irt_shim / pnacl_irt_shim.gyp
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       'target_name': 'pnacl_irt_shim',
12       'type': 'none',
13       'variables': {
14         'nlib_target': 'libpnacl_irt_shim.a',
15         'out_newlib_arm': '>(tc_lib_dir_pnacl_translate)/lib-arm/libpnacl_irt_shim.a',
16         'out_newlib32': '>(tc_lib_dir_pnacl_translate)/lib-x86-32/libpnacl_irt_shim.a',
17         'out_newlib64': '>(tc_lib_dir_pnacl_translate)/lib-x86-64/libpnacl_irt_shim.a',
18         'build_glibc': 0,
19         'build_newlib': 1,
20         'force_arm_pnacl': 1,
21         'sources': [
22           'pnacl_shim.c',
23           'shim_entry.c',
24           'shim_ppapi.c',
25         ],
26         'include_dirs': [
27           '../../../..',
28         ],
29         'extra_args': [
30           '--strip-debug',
31         ],
32         'conditions': [
33           ['target_arch=="arm"', {
34             'compile_flags': [
35               '--pnacl-allow-translate',
36               '--pnacl-allow-native',
37               '-arch', 'arm',
38             ],
39           }],
40         ],
41       },
42       'dependencies': [
43         '<(DEPTH)/native_client/tools.gyp:prep_toolchain',
44       ],
45     },
46   ],
47 }