Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / native_client / src / untrusted / irt / irt.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     '../../../build/common.gypi',
8   ],
9   'variables': {
10     'irt_sources': [
11 # irt_support_sources
12       'irt_entry.c',
13       'irt_interfaces.c',
14       'irt_malloc.c',
15       'irt_private_pthread.c',
16       'irt_private_tls.c',
17       'irt_query_list.c',
18 # irt_common_interfaces
19       'irt_basic.c',
20       'irt_code_data_alloc.c',
21       'irt_fdio.c',
22       'irt_filename.c',
23       'irt_memory.c',
24       'irt_dyncode.c',
25       'irt_thread.c',
26       'irt_futex.c',
27       'irt_mutex.c',
28       'irt_cond.c',
29       'irt_sem.c',
30       'irt_tls.c',
31       'irt_blockhook.c',
32       'irt_clock.c',
33       'irt_dev_getpid.c',
34       'irt_exception_handling.c',
35       'irt_dev_list_mappings.c',
36       'irt_nameservice.c',
37       'irt_random.c',
38 # support_srcs
39       # We also get nc_init_private.c, nc_thread.c and nc_tsd.c via
40       # #includes of .c files.
41       '../pthread/nc_mutex.c',
42       '../pthread/nc_condvar.c',
43       '../nacl/sys_private.c',
44       '../valgrind/dynamic_annotations.c',
45     ],
46     'irt_nonbrowser': [
47       'irt_core_resource.c',
48       'irt_entry_core.c',
49     ],
50     'irt_browser': [
51       'irt_manifest.c',
52     ],
53   },
54   'targets': [
55     {
56       'target_name': 'irt_core_nexe',
57       'type': 'none',
58       'variables': {
59         'nexe_target': 'irt_core',
60         'build_glibc': 0,
61         'build_newlib': 0,
62         'build_irt': 1,
63       },
64       'sources': ['<@(irt_sources)', '<@(irt_nonbrowser)'],
65       'link_flags': [
66         '-lsrpc',
67         '-limc_syscalls',
68         '-lplatform',
69         '-lgio',
70         '-lm',
71       ],
72       'dependencies': [
73         '<(DEPTH)/native_client/src/shared/gio/gio.gyp:gio_lib',
74         '<(DEPTH)/native_client/src/shared/platform/platform.gyp:platform_lib',
75         '<(DEPTH)/native_client/src/shared/srpc/srpc.gyp:srpc_lib',
76         '<(DEPTH)/native_client/src/tools/tls_edit/tls_edit.gyp:tls_edit#host',
77         '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:imc_syscalls_lib',
78         '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib_newlib',
79         '<(DEPTH)/native_client/tools.gyp:prep_toolchain',
80       ],
81     },
82     {
83       'target_name': 'irt_browser_lib',
84       'type': 'none',
85       'variables': {
86         'nlib_target': 'libirt_browser.a',
87         'build_glibc': 0,
88         'build_newlib': 1,
89         'build_irt': 1,
90       },
91       'sources': ['<@(irt_sources)', '<@(irt_browser)'],
92       'dependencies': [
93         '<(DEPTH)/native_client/tools.gyp:prep_toolchain',
94         '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib_newlib',
95       ],
96     },
97   ],
98 }