Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / native_client / build / nacl_core_sdk.gyp
1 # Copyright (c) 2012 The Native Client 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     'common.gypi',
8   ],
9   'variables': {
10     'disable_cross_trusted%': 0,
11   },
12   'targets': [
13     {
14       'target_name': 'nacl_core_sdk',
15       'type': 'none',
16       'dependencies': [
17         '../src/untrusted/minidump_generator/minidump_generator.gyp:minidump_lib',
18         '../src/untrusted/nacl/nacl.gyp:nacl_dynacode_lib',
19         '../src/untrusted/nacl/nacl.gyp:nacl_exception_lib',
20         '../src/untrusted/nacl/nacl.gyp:nacl_lib',
21         '../src/untrusted/nacl/nacl.gyp:nacl_list_mappings_lib',
22         '../src/untrusted/nosys/nosys.gyp:nosys_lib',
23         '../src/untrusted/pthread/pthread.gyp:pthread_lib',
24       ],
25       'conditions': [
26         ['(target_arch!="arm" and target_arch!="mipsel") or (OS=="linux" and disable_cross_trusted!=1)', {
27           # cross compiling trusted binaries such as sel_ldr is only currently
28           # supported on linux, and requires specific cross compilers to be
29           # installed. It can be disabled with 'disable_cross_trusted=1'.
30           'dependencies': [
31             '../src/trusted/service_runtime/service_runtime.gyp:sel_ldr',
32           ],
33         }],
34         ['(target_arch!="arm" and target_arch!="mipsel") or OS=="linux"', {
35           # irt_core_nexe relies on tls_edit which is not currently buildable
36           # on windows with target_arch != x86.
37           # TODO(sbc): remove this restriction:
38           # https://code.google.com/p/nativeclient/issues/detail?id=3810
39           'dependencies': [
40             '../src/untrusted/irt/irt.gyp:irt_core_nexe',
41           ],
42         }],
43         ['target_arch!="arm" and target_arch!="mipsel"', {
44           'dependencies': [
45             # these libraries don't currently exist on arm and mips
46             '../src/untrusted/valgrind/valgrind.gyp:dynamic_annotations_lib',
47             '../src/untrusted/valgrind/valgrind.gyp:valgrind_lib',
48           ],
49           'copies': [
50             {
51               'destination': '<(SHARED_INTERMEDIATE_DIR)/sdk/<(OS)_x86/nacl_x86_newlib/x86_64-nacl/lib32',
52               'files': [
53                 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/crti.o',
54                 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/crtn.o',
55                 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libnacl_dyncode.a',
56                 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libnacl_list_mappings.a',
57                 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libnosys.a',
58                 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libpthread.a',
59                 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libvalgrind.a',
60               ],
61             },
62             {
63               'destination': '<(SHARED_INTERMEDIATE_DIR)/sdk/<(OS)_x86/nacl_x86_newlib/x86_64-nacl/lib',
64               'files': [
65                 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/crti.o',
66                 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/crtn.o',
67                 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libnacl_dyncode.a',
68                 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libnacl_list_mappings.a',
69                 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libnosys.a',
70                 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libpthread.a',
71                 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libvalgrind.a',
72               ],
73             },
74             {
75               'destination': '<(SHARED_INTERMEDIATE_DIR)/sdk/<(OS)_x86/nacl_x86_glibc/x86_64-nacl/lib32',
76               'files': [
77                 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libnacl_dyncode.a',
78                 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libnacl_list_mappings.a',
79                 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libvalgrind.a',
80                 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libdynamic_annotations.a',
81               ],
82             },
83             {
84               'destination': '<(SHARED_INTERMEDIATE_DIR)/sdk/<(OS)_x86/nacl_x86_glibc/x86_64-nacl/lib',
85               'files': [
86                 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libnacl_dyncode.a',
87                 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libnacl_list_mappings.a',
88                 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libvalgrind.a',
89                 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libdynamic_annotations.a',
90               ],
91             },
92           ],
93         }],
94       ],
95     },
96   ],
97 }
98