OLD | NEW |
1 # -*- python -*- | 1 # -*- python -*- |
2 # Copyright 2011 The Native Client Authors. All rights reserved. | 2 # Copyright 2011 The Native Client Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can | 3 # Use of this source code is governed by a BSD-style license that can |
4 # be found in the LICENSE file. | 4 # be found in the LICENSE file. |
5 | 5 |
6 # A way to build the nexe as a trusted plugin to validate directly | 6 # A way to build the nexe as a trusted plugin to validate directly |
7 # against Chrome on Linux using | 7 # against Chrome on Linux using |
8 # --register-pepper-plugins="/path/to/libppapi_file_system.so;application/x-nacl
" | 8 # --register-pepper-plugins="/path/to/libppapi_file_system.so;application/x-nacl
" |
9 # http://localhost:5103/scons-out/nacl-x86-../staging/ppapi_file_system.html | 9 # http://localhost:5103/scons-out/nacl-x86-../staging/ppapi_file_system.html |
10 | 10 |
11 Import('env') | 11 Import('env') |
12 | 12 |
13 if env.Bit('linux'): | 13 if env.Bit('linux'): |
14 env['COMPONENT_STATIC'] = False; # Build a .so, not a .a | 14 env['COMPONENT_STATIC'] = False; # Build a .so, not a .a |
15 env.Append(CFLAGS=['-std=c99']) | 15 env.Append(CFLAGS=['-std=c99']) |
16 | 16 |
17 sources = ['ppapi_file_system.cc', | 17 sources = ['ppapi_file_system.cc'] |
18 'scriptable_object.c'] | |
19 | 18 |
20 libs = ['imc', | 19 libs = ['imc', |
21 'gio', | 20 'gio', |
22 'pthread' ] | 21 'pthread' ] |
23 | 22 |
24 ppapi_geturl = env.ComponentLibrary('ppapi_file_system', | 23 ppapi_geturl = env.ComponentLibrary('ppapi_file_system', |
25 sources, | 24 sources, |
26 EXTRA_LIBS=libs, | 25 EXTRA_LIBS=libs, |
27 no_import_lib=True) | 26 no_import_lib=True) |
OLD | NEW |