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.
10 '../build/common_untrusted.gypi',
14 ['disable_nacl==0 and disable_nacl_untrusted==0', {
17 'target_name': 'base_nacl',
21 'nacl_untrusted_build': 1,
22 'nlib_target': 'libbase_nacl.a',
26 'build_pnacl_newlib': 1,
30 'strings/string16.cc',
31 'sync_socket_nacl.cc',
34 'gcc_compile_flags': [
35 '-fno-strict-aliasing',
39 '../native_client/tools.gyp:prep_toolchain',
43 'target_name': 'base_i18n_nacl',
46 'base_i18n_target': 1,
47 'nacl_untrusted_build': 1,
48 'nlib_target': 'libbase_i18n_nacl.a',
52 'build_pnacl_newlib': 1,
56 'strings/string16.cc',
57 'sync_socket_nacl.cc',
62 '../native_client/tools.gyp:prep_toolchain',
63 '../third_party/icu/icu_nacl.gyp:icudata_nacl',
64 '../third_party/icu/icu_nacl.gyp:icui18n_nacl',
65 '../third_party/icu/icu_nacl.gyp:icuuc_nacl',
69 'target_name': 'base_nacl_nonsfi',
73 'nacl_untrusted_build': 1,
74 'nlib_target': 'libbase_nacl_nonsfi.a',
78 'build_pnacl_newlib': 0,
79 'build_nonsfi_helper': 1,
85 # For PathExists and ReadFromFD.
86 'files/file_util_posix.cc',
88 # For MessageLoopForIO based on libevent.
89 'message_loop/message_pump_libevent.cc',
90 'message_loop/message_pump_libevent.h',
92 # For UnixDomainSocket::SendMsg and RecvMsg.
93 'posix/unix_domain_socket_linux.cc',
95 # For GetKnownDeadTerminationStatus and GetTerminationStatus.
96 'process/kill_posix.cc',
98 # Unlike libbase_nacl, for Non-SFI build, we need to use
99 # rand_util_posix for random implementation, instead of
100 # rand_util_nacl.cc, which is based on IRT. rand_util_nacl.cc is
102 'rand_util_posix.cc',
104 # For CancelableSyncSocket.
105 'sync_socket_nacl.cc',
112 '../native_client/tools.gyp:prep_toolchain',
113 '../third_party/libevent/libevent_nacl_nonsfi.gyp:event_nacl_nonsfi',