| OLD | NEW |
| (Empty) |
| 1 # -*- python -*- | |
| 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 | |
| 4 # be found in the LICENSE file. | |
| 5 | |
| 6 # A way to build the nexe as a trusted plugin to validate directly | |
| 7 # against Chrome on Linux using | |
| 8 # --register-pepper-plugins="/path/to/libppapi_ppb_file_system.so;application/x-
nacl" | |
| 9 # http://localhost:5103/scons-out/nacl-x86-../staging/ppapi_ppb_file_system.html | |
| 10 | |
| 11 Import('env') | |
| 12 | |
| 13 if env.Bit('linux'): | |
| 14 env['COMPONENT_STATIC'] = False # Build a .so, not a .a | |
| 15 env.Append(CFLAGS=['-std=c99']) | |
| 16 | |
| 17 sources = ['ppapi_ppb_file_system.cc'] | |
| 18 | |
| 19 libs = ['imc', | |
| 20 'gio', | |
| 21 'pthread' ] | |
| 22 | |
| 23 ppapi_geturl = env.ComponentLibrary('ppapi_ppb_file_system', | |
| 24 sources, | |
| 25 EXTRA_LIBS=libs, | |
| 26 no_import_lib=True) | |
| OLD | NEW |