3 # Copyright (c) 2012 The Native Client Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
13 'nacl_global_secure_random.c',
14 'nacl_global_secure_random.h',
17 'nacl_host_desc_common.c',
18 'nacl_interruptible_condvar.c',
19 'nacl_interruptible_condvar.h',
20 'nacl_interruptible_mutex.c',
21 'nacl_interruptible_mutex.h',
24 'nacl_secure_random.h',
25 'nacl_secure_random_base.h',
26 'nacl_secure_random_common.c',
29 'nacl_sync_checked.c',
30 'nacl_sync_checked.h',
39 ['OS=="linux" or OS=="android"', {
42 'linux/nacl_host_dir.c',
43 'linux/nacl_semaphore.c',
49 'osx/nacl_host_dir.c',
50 'osx/nacl_semaphore.c',
56 'posix/aligned_malloc.c',
57 'posix/condition_variable.c',
61 'posix/nacl_fast_mutex.c',
62 'posix/nacl_file_lock.c',
63 'posix/nacl_find_addrsp.c',
64 'posix/nacl_host_desc.c',
65 'posix/nacl_secure_random.c',
66 'posix/nacl_thread_id.c',
67 'posix/nacl_threads.c',
69 'posix/nacl_timestamp.c',
74 'win/aligned_malloc.c',
75 'win/condition_variable.cc',
80 'win/nacl_fast_mutex.c',
81 'win/nacl_find_addrsp.c',
82 'win/nacl_host_desc.c',
83 'win/nacl_host_dir.c',
84 'win/lock_impl_win.cc',
85 'win/nacl_secure_random.c',
86 'win/nacl_semaphore.c',
87 'win/nacl_sync_win.cc',
90 'win/nacl_timestamp.c',
95 'win/xlate_system_error.c',
101 '../../../build/common.gypi',
105 'target_base': 'none',
107 'target_conditions': [
113 ['target_base=="platform_lib"', {
115 '<@(common_sources)',
116 '<@(platform_sources)',
119 ['target_base=="platform_tests"', {
126 'win/port_win_test.c',
135 # ----------------------------------------------------------------------
137 'target_name': 'platform',
138 'type': 'static_library',
139 # tls_edit relies on this which is always built for the host platform.
140 'toolsets': ['host', 'target'],
142 'target_base': 'platform_lib',
145 '<(DEPTH)/native_client/src/shared/gio/gio.gyp:gio',
148 # ----------------------------------------------------------------------
150 'target_name': 'platform_tests',
151 'type': 'executable',
153 'target_base': 'platform_tests',
156 '<(DEPTH)/native_client/src/shared/platform/platform.gyp:platform',
157 '<(DEPTH)/native_client/src/shared/gio/gio.gyp:gio',
161 'target_name': 'platform_lib',
164 'nlib_target': 'libplatform.a',
165 'nso_target': 'libplatform.so',
168 'build_pnacl_newlib': 1,
170 'build_nonsfi_helper': 1,
174 'posix/condition_variable.c',
176 'posix/nacl_error.c',
178 'posix/nacl_thread_id.c',
179 'posix/nacl_threads.c',
180 'posix/nacl_timestamp.c',
181 'nacl_sync_checked.c',
186 '<(DEPTH)/native_client/tools.gyp:prep_toolchain',
189 # ----------------------------------------------------------------------
192 ['OS=="win" and target_arch=="ia32"', {
194 # ---------------------------------------------------------------------
196 'target_name': 'platform64',
197 'type': 'static_library',
199 'target_base': 'platform_lib',
203 '<(DEPTH)/native_client/src/shared/gio/gio.gyp:gio64',
206 # ---------------------------------------------------------------------
208 'target_name': 'platform_tests64',
209 'type': 'executable',
211 'target_base': 'platform_tests',
218 '<(DEPTH)/native_client/src/shared/platform/platform.gyp:platform64',
219 '<(DEPTH)/native_client/src/shared/gio/gio.gyp:gio64',