Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Side by Side Diff: src/untrusted/nacl/nacl.scons

Issue 686723003: Non-SFI mode: Implement nacl_irt_random only for nacl_helper_nonsfi. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« src/nonsfi/irt/irt_random.c ('K') | « src/nonsfi/loader/build.scons ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # -*- python -*- 1 # -*- python -*-
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 6
7 Import('env') 7 Import('env')
8 8
9 # NACL_GC_WRAP_SYSCALL uses ({...}) syntax. 9 # NACL_GC_WRAP_SYSCALL uses ({...}) syntax.
10 env.FilterOut(CCFLAGS=['-pedantic']) 10 env.FilterOut(CCFLAGS=['-pedantic'])
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 env.AddLibraryToSdk(libnacl_exception) 181 env.AddLibraryToSdk(libnacl_exception)
182 env.ComponentLibrary('libnacl_exception_private', ['nacl_exception_private.c']) 182 env.ComponentLibrary('libnacl_exception_private', ['nacl_exception_private.c'])
183 183
184 libnacl_list_mappings = env.NaClSdkLibrary( 184 libnacl_list_mappings = env.NaClSdkLibrary(
185 'libnacl_list_mappings', ['list_mappings.c']) 185 'libnacl_list_mappings', ['list_mappings.c'])
186 env.AddLibraryToSdk(libnacl_list_mappings) 186 env.AddLibraryToSdk(libnacl_list_mappings)
187 env.AddHeaderToSdk(['nacl_list_mappings.h']) 187 env.AddHeaderToSdk(['nacl_list_mappings.h'])
188 env.ComponentLibrary( 188 env.ComponentLibrary(
189 'libnacl_list_mappings_private', ['list_mappings_private.c']) 189 'libnacl_list_mappings_private', ['list_mappings_private.c'])
190 190
191 env.ComponentLibrary( 191 if not env.Bit('posix') and not env.Bit('nonsfi_nacl'):
Mark Seaborn 2014/11/04 01:19:52 Should just be "if not env.Bit('nonsfi_nacl')" to
hidehiko 2014/11/04 11:16:59 This is the condition for the nonsfi nacl_random_p
Mark Seaborn 2014/11/05 19:01:15 I still think you should remove the env.Bit('posix
hidehiko 2014/11/06 13:22:24 I see. Thank you for clarification. Removed "posix
192 'libnacl_random_private', 192 env.ComponentLibrary(
193 [env.ComponentObject('irt_random', 193 'libnacl_random_private',
194 '${MAIN_DIR}/src/untrusted/irt/irt_random.c'), 194 [env.ComponentObject('irt_random',
195 env.ComponentObject('irt_nameservice', 195 '${MAIN_DIR}/src/untrusted/irt/irt_random.c'),
196 '${MAIN_DIR}/src/untrusted/irt/irt_nameservice.c')]) 196 env.ComponentObject('irt_nameservice',
197 '${MAIN_DIR}/src/untrusted/irt/irt_nameservice.c')])
197 198
198 199
199 imc_syscalls = [ 200 imc_syscalls = [
200 'imc_accept.c', 201 'imc_accept.c',
201 'imc_connect.c', 202 'imc_connect.c',
202 'imc_makeboundsock.c', 203 'imc_makeboundsock.c',
203 'imc_mem_obj_create.c', 204 'imc_mem_obj_create.c',
204 'imc_recvmsg.c', 205 'imc_recvmsg.c',
205 'imc_sendmsg.c', 206 'imc_sendmsg.c',
206 'imc_socketpair.c', 207 'imc_socketpair.c',
(...skipping 24 matching lines...) Expand all
231 # single .o file avoids this scenario. 232 # single .o file avoids this scenario.
232 private_combine = [env.ComponentObject(module, '%s.c' % module) 233 private_combine = [env.ComponentObject(module, '%s.c' % module)
233 for module in ['gc_hooks_private', 234 for module in ['gc_hooks_private',
234 'sys_private']] 235 'sys_private']]
235 sys_private.append(env.Command('combined_private${OBJSUFFIX}', 236 sys_private.append(env.Command('combined_private${OBJSUFFIX}',
236 private_combine, 237 private_combine,
237 '${LD} -relocatable -o ${TARGET} ${SOURCES}')) 238 '${LD} -relocatable -o ${TARGET} ${SOURCES}'))
238 239
239 if not env.Bit('nonsfi_nacl'): 240 if not env.Bit('nonsfi_nacl'):
240 env.ComponentLibrary('libnacl_sys_private', sys_private) 241 env.ComponentLibrary('libnacl_sys_private', sys_private)
OLDNEW
« src/nonsfi/irt/irt_random.c ('K') | « src/nonsfi/loader/build.scons ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698