[Sync] Fix invalidations on Android.
[chromium-blink-merge.git] / mojo / mojo_nacl_untrusted.gyp
blobeeca3422149943abf0a9fb80fb37807d9253a136
1 # Copyright 2014 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.
6   'conditions': [
7     ['disable_nacl==0 and disable_nacl_untrusted==0', {
8       'includes': [
9         '../build/common_untrusted.gypi',
10         '../mojo/mojo_nacl.gypi',
11         '../third_party/mojo/mojo_variables.gypi',
12       ],
13       'targets': [
14         {
15           'target_name': 'libmojo',
16           'type': 'none',
17           'variables': {
18             'nlib_target': 'libmojo.a',
19             'build_glibc': 0,
20             'build_newlib': 0,
21             'build_pnacl_newlib': 1,
22           },
23           'sources': [
24             '<(monacl_codegen_dir)/libmojo.cc',
25           ],
26           'dependencies': [
27             '<(DEPTH)/native_client/tools.gyp:prep_toolchain',
28             'mojo_nacl.gyp:monacl_codegen',
29             '../third_party/mojo/mojo_public.gyp:mojo_system_placeholder',
30           ],
31         },
32         {
33           'target_name': 'libmojo_irt',
34           'type': 'none',
35           'variables': {
36             'nlib_target': 'libmojo_irt.a',
37             'build_glibc': 0,
38             'build_newlib': 0,
39             'build_pnacl_newlib': 0,
40             'build_irt': 1,
41           },
42           'sources': [
43             '<(monacl_codegen_dir)/mojo_irt.c',
44             '<(monacl_codegen_dir)/mojo_irt.h',
45           ],
46           'dependencies': [
47             '<(DEPTH)/native_client/tools.gyp:prep_toolchain',
48             'mojo_nacl.gyp:monacl_codegen',
49           ],
50           'direct_dependent_settings': {
51             'include_dirs': [
52               '../third_party/mojo/src',
53             ],
54           },
55         },
56         {
57           'target_name': 'monacl_test',
58           'type': 'none',
59           'variables': {
60             'nexe_target': 'monacl_test',
61             'build_newlib': 0,
62             'build_pnacl_newlib': 1,
63             'translate_pexe_with_build': 1,
64             'link_flags': [
65               '-pthread',
66               '-lmojo',
67               '-limc_syscalls',
68             ],
69             'sources': [
70               '<@(mojo_public_system_unittest_sources)',
71             ],
72           },
73           'dependencies': [
74             '<(DEPTH)/native_client/tools.gyp:prep_toolchain',
75             '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib',
76             '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:imc_syscalls_lib',
77             '<(DEPTH)/native_client/src/untrusted/pthread/pthread.gyp:pthread_lib',
78             '../testing/gtest_nacl.gyp:gtest_nacl',
79             '../testing/gtest_nacl.gyp:gtest_main_nacl',
80             'libmojo',
81             'mojo_nacl.gyp:monacl_codegen',
82           ],
83         },
84       ],
85     }],
86   ],