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 # base.gypi must be included before common_untrusted.gypi.
12 # TODO(sergeyu): Replace the target_defaults magic in base.gypi with a
13 # sources variables lists. That way order of includes will not matter.
15 '../build/common_untrusted.gypi',
18 ['disable_nacl==0 and disable_nacl_untrusted==0', {
21 'target_name': 'base_nacl',
25 'nacl_untrusted_build': 1,
26 'nlib_target': 'libbase_nacl.a',
30 'build_pnacl_newlib': 1,
34 'strings/string16.cc',
35 'sync_socket_nacl.cc',
38 'gcc_compile_flags': [
39 '-fno-strict-aliasing',
43 '../native_client/tools.gyp:prep_toolchain',
47 'target_name': 'base_i18n_nacl',
50 'base_i18n_target': 1,
51 'nacl_untrusted_build': 1,
52 'nlib_target': 'libbase_i18n_nacl.a',
56 'build_pnacl_newlib': 1,
60 'strings/string16.cc',
61 'sync_socket_nacl.cc',
66 '../native_client/tools.gyp:prep_toolchain',
67 '../third_party/icu/icu_nacl.gyp:icudata_nacl',
68 '../third_party/icu/icu_nacl.gyp:icui18n_nacl',
69 '../third_party/icu/icu_nacl.gyp:icuuc_nacl',
73 'target_name': 'base_nacl_nonsfi',
77 'nacl_untrusted_build': 1,
78 'nlib_target': 'libbase_nacl_nonsfi.a',
82 'build_pnacl_newlib': 0,
83 'build_nonsfi_helper': 1,
89 # For PathExists and ReadFromFD.
90 'files/file_util_posix.cc',
92 # For MessageLoopForIO based on libevent.
93 'message_loop/message_pump_libevent.cc',
94 'message_loop/message_pump_libevent.h',
96 # For UnixDomainSocket::SendMsg and RecvMsg.
97 'posix/unix_domain_socket_linux.cc',
99 # For GetKnownDeadTerminationStatus and GetTerminationStatus.
100 'process/kill_posix.cc',
102 # Unlike libbase_nacl, for Non-SFI build, we need to use
103 # rand_util_posix for random implementation, instead of
104 # rand_util_nacl.cc, which is based on IRT. rand_util_nacl.cc is
106 'rand_util_posix.cc',
108 # For CancelableSyncSocket.
109 'sync_socket_nacl.cc',
116 '../native_client/tools.gyp:prep_toolchain',
117 '../third_party/libevent/libevent_nacl_nonsfi.gyp:event_nacl_nonsfi',