| OLD | NEW |
| 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 # TODO(robertm): get rid of this if possible | 9 # TODO(robertm): get rid of this if possible |
| 10 env.Append(CCFLAGS=['-fno-strict-aliasing']) | 10 env.Append(CCFLAGS=['-fno-strict-aliasing']) |
| 11 | 11 |
| 12 # NOTE: keep this sync'ed with build.scons | 12 # NOTE: keep this sync'ed with build.scons |
| 13 trusted_untrusted_shared = [ | 13 trusted_untrusted_shared = [ |
| 14 'invoke.c', | 14 'invoke.c', |
| 15 'module_init_fini.c', | 15 'module_init_fini.c', |
| 16 'nacl_srpc.c', | 16 'nacl_srpc.c', |
| 17 'nacl_srpc_message.c', | 17 'nacl_srpc_message.c', |
| 18 'rpc_log.c', | 18 'rpc_log.c', |
| 19 'rpc_serialize.c', | 19 'rpc_serialize.c', |
| 20 'rpc_service.c', | 20 'rpc_service.c', |
| 21 'rpc_server_loop.c', | 21 'rpc_server_loop.c', |
| 22 ] | 22 ] |
| 23 | 23 |
| 24 # NOTE: these files maybe candidates for a separate library | 24 # NOTE: these files maybe candidates for a separate library |
| 25 untrusted_only = [ | 25 untrusted_only = [ |
| 26 'accept.c', | 26 'accept.c', |
| 27 'accept_threaded.c', | 27 'accept_threaded.c', |
| 28 'nacl_srpc_ppapi_plugin_init.c', | |
| 29 'nacl_srpc_ppapi_plugin_internal.c' | |
| 30 ] | 28 ] |
| 31 | 29 |
| 32 libsrpc = env.NaClSdkLibrary('libsrpc', | 30 libsrpc = env.NaClSdkLibrary('libsrpc', |
| 33 trusted_untrusted_shared + untrusted_only, | 31 trusted_untrusted_shared + untrusted_only, |
| 34 LIBS=['imc_syscalls', 'pthread']) | 32 LIBS=['imc_syscalls', 'pthread']) |
| 35 | 33 |
| 36 header_install = env.AddHeaderToSdk(['nacl_srpc.h']) | 34 header_install = env.AddHeaderToSdk(['nacl_srpc.h']) |
| 37 env.Requires(libsrpc, header_install) | 35 env.Requires(libsrpc, header_install) |
| OLD | NEW |