OLD | NEW |
1 # -*- python -*- | 1 # -*- python -*- |
2 # Copyright 2010 The Native Client Authors. All rights reserved. | 2 # Copyright 2010 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_geturl.so;application/x-ppapi-nac
l-srpc" | 8 # --register-pepper-plugins="/path/to/libppapi_geturl.so;application/x-nacl" |
9 # http://localhost:5103/scons-out/nacl-x86-../staging/ppapi_geturl.html | 9 # http://localhost:5103/scons-out/nacl-x86-../staging/ppapi_geturl.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 | 15 |
16 sources = [ 'module.cc', | 16 sources = [ 'module.cc', |
17 'ppapi_geturl.cc', | 17 'ppapi_geturl.cc', |
18 'scriptable_object.cc', | 18 'scriptable_object.cc', |
19 'url_load_request.cc' ] | 19 'url_load_request.cc' ] |
20 | 20 |
21 libs = [ 'ppapi_cpp', | 21 libs = [ 'ppapi_cpp', |
22 'google_nacl_imc', | 22 'google_nacl_imc', |
23 'gio', | 23 'gio', |
24 'pthread' ] | 24 'pthread' ] |
25 | 25 |
26 ppapi_geturl = env.ComponentLibrary('ppapi_geturl', | 26 ppapi_geturl = env.ComponentLibrary('ppapi_geturl', |
27 sources, | 27 sources, |
28 EXTRA_LIBS=libs, | 28 EXTRA_LIBS=libs, |
29 no_import_lib=True) | 29 no_import_lib=True) |
OLD | NEW |