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