Standardize usage of virtual/override/final in chrome/browser/prerender/
[chromium-blink-merge.git] / base / base_nacl.gyp
blob7221d2ab77a4b4066ffb02ce24bca95ba50e4e7d
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.
6   'variables': {
7     'chromium_code': 1,
8   },
9   'includes': [
10     '../build/common_untrusted.gypi',
11     'base.gypi',
12   ],
13   'conditions': [
14     ['disable_nacl==0 and disable_nacl_untrusted==0', {
15       'targets': [
16         {
17           'target_name': 'base_nacl',
18           'type': 'none',
19           'variables': {
20             'base_target': 1,
21             'nacl_untrusted_build': 1,
22             'nlib_target': 'libbase_nacl.a',
23             'build_glibc': 0,
24             'build_newlib': 0,
25             'build_irt': 1,
26             'build_pnacl_newlib': 1,
27             'sources': [
28               'base_switches.cc',
29               'base_switches.h',
30               'strings/string16.cc',
31               'sync_socket_nacl.cc',
32               'time/time_posix.cc',
33             ],
34             'gcc_compile_flags': [
35               '-fno-strict-aliasing',
36             ],
37           },
38           'dependencies': [
39             '<(DEPTH)/native_client/tools.gyp:prep_toolchain',
40           ],
41         },
42         {
43           'target_name': 'base_i18n_nacl',
44           'type': 'none',
45           'variables': {
46             'base_i18n_target': 1,
47             'nacl_untrusted_build': 1,
48             'nlib_target': 'libbase_i18n_nacl.a',
49             'build_glibc': 0,
50             'build_newlib': 0,
51             'build_irt': 0,
52             'build_pnacl_newlib': 1,
53             'sources': [
54               'base_switches.cc',
55               'base_switches.h',
56               'strings/string16.cc',
57               'sync_socket_nacl.cc',
58               'time/time_posix.cc',
59             ],
60           },
61           'dependencies': [
62             '<(DEPTH)/third_party/icu/icu_nacl.gyp:icudata_nacl',
63             '<(DEPTH)/third_party/icu/icu_nacl.gyp:icui18n_nacl',
64             '<(DEPTH)/third_party/icu/icu_nacl.gyp:icuuc_nacl',
65             '<(DEPTH)/native_client/tools.gyp:prep_toolchain',
66           ],
67         },
68       ],
69     }],
70     ['disable_nacl==0', {
71       'targets': [
72         {
73           'target_name': 'base_nacl_nonsfi',
74           'type': 'none',
75           'include_dirs': [
76             '<(DEPTH)/native_client/src/public/linux_syscalls',
77           ],
78           'variables': {
79             'base_target': 1,
80             'nacl_untrusted_build': 1,
81             'nlib_target': 'libbase_nacl_nonsfi.a',
82             'build_glibc': 0,
83             'build_newlib': 0,
84             'build_irt': 0,
85             'build_pnacl_newlib': 0,
86             'build_nonsfi_helper': 1,
88             'sources': [
89               'base_switches.cc',
90               'base_switches.h',
92               # For PathExists and ReadFromFD.
93               'files/file_util_posix.cc',
95               # For MessageLoopForIO based on libevent.
96               'message_loop/message_pump_libevent.cc',
97               'message_loop/message_pump_libevent.h',
99               # For UnixDomainSocket::SendMsg and RecvMsg.
100               'posix/unix_domain_socket_linux.cc',
102               # For GetKnownDeadTerminationStatus and GetTerminationStatus.
103               'process/kill_posix.cc',
105               # Unlike libbase_nacl, for Non-SFI build, we need to use
106               # rand_util_posix for random implementation, instead of
107               # rand_util_nacl.cc, which is based on IRT. rand_util_nacl.cc is
108               # excluded below.
109               'rand_util_posix.cc',
111               # For CancelableSyncSocket.
112               'sync_socket_nacl.cc',
113             ],
114           },
115           'sources!': [
116             'rand_util_nacl.cc',
117           ],
118           'dependencies': [
119             '<(DEPTH)/native_client/tools.gyp:prep_toolchain',
120             '<(DEPTH)/third_party/libevent/libevent_nacl_nonsfi.gyp:event_nacl_nonsfi',
121           ],
122         },
123       ],
124     }],
125   ],