Index: ppapi/native_client/tests/ppapi_geturl/build.scons |
=================================================================== |
--- ppapi/native_client/tests/ppapi_geturl/build.scons (revision 0) |
+++ ppapi/native_client/tests/ppapi_geturl/build.scons (revision 0) |
@@ -0,0 +1,33 @@ |
+# -*- python -*- |
+# Copyright (c) 2011 The Native Client Authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+ |
+# A way to build the nexe as a trusted plugin to validate directly |
+# against Chrome on Linux using |
+# --register-pepper-plugins="/path/to/libppapi_geturl.so;application/x-nacl" |
+# http://localhost:5103/scons-out/nacl-x86-../staging/ppapi_geturl.html |
+ |
+Import('env') |
+ |
+if env.Bit('linux'): |
+ env['COMPONENT_STATIC'] = False # Build a .so, not a .a |
+ |
+ sources = [ 'module.cc', |
+ # This allow us to verify that the code builds before |
+ # untrusted nacl_file is fully functioning. |
+ # However, main() won't be called when we loaded the trusted |
+ # plugin as a dll. |
+ 'nacl_file_main.cc', |
+ 'ppapi_geturl.cc', |
+ 'url_load_request.cc' ] |
+ |
+ libs = [ 'ppapi_cpp', |
+ 'imc', |
+ 'gio', |
+ 'pthread' ] |
+ |
+ ppapi_geturl = env.ComponentLibrary('ppapi_geturl', |
+ sources, |
+ EXTRA_LIBS=libs, |
+ no_import_lib=True) |