OLD | NEW |
(Empty) | |
| 1 # -*- python -*- |
| 2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # 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_geturl.so;application/x-nacl" |
| 9 # http://localhost:5103/scons-out/nacl-x86-../staging/ppapi_geturl.html |
| 10 |
| 11 Import('env') |
| 12 |
| 13 if env.Bit('linux'): |
| 14 env['COMPONENT_STATIC'] = False # Build a .so, not a .a |
| 15 |
| 16 sources = [ 'module.cc', |
| 17 # This allow us to verify that the code builds before |
| 18 # untrusted nacl_file is fully functioning. |
| 19 # However, main() won't be called when we loaded the trusted |
| 20 # plugin as a dll. |
| 21 'nacl_file_main.cc', |
| 22 'ppapi_geturl.cc', |
| 23 'url_load_request.cc' ] |
| 24 |
| 25 libs = [ 'ppapi_cpp', |
| 26 'imc', |
| 27 'gio', |
| 28 'pthread' ] |
| 29 |
| 30 ppapi_geturl = env.ComponentLibrary('ppapi_geturl', |
| 31 sources, |
| 32 EXTRA_LIBS=libs, |
| 33 no_import_lib=True) |
OLD | NEW |