Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1572)

Unified Diff: native_client_sdk/src/tools/create_nmf.py

Issue 10837325: Make each NaCl glibc test copy its shared libraries into a unique directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/data/nacl/nacl_browser_test.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: native_client_sdk/src/tools/create_nmf.py
diff --git a/native_client_sdk/src/tools/create_nmf.py b/native_client_sdk/src/tools/create_nmf.py
index a27969f4c2983b9b8982c732c8eaa34a022dbe1f..195c55324e5dfbb2b7c5924a91913ce831587149 100755
--- a/native_client_sdk/src/tools/create_nmf.py
+++ b/native_client_sdk/src/tools/create_nmf.py
@@ -377,6 +377,9 @@ def Main(argv):
action='append', default=[],
help='Add DIRECTORY to library search path',
metavar='DIRECTORY')
+ parser.add_option('-P', '--path-prefix', dest='path_prefix', default='',
+ help='A path to prepend to shared libraries in the .nmf',
+ metavar='DIRECTORY')
parser.add_option('-s', '--stage-dependencies', dest='stage_dependencies',
help='Destination directory for staging libraries',
metavar='DIRECTORY')
@@ -415,9 +418,15 @@ def Main(argv):
raise Error('Expecting --name=<orig_arch.so>,<new_name.so>')
remap[parts[0]] = parts[1]
+ if options.path_prefix:
+ path_prefix = options.path_prefix.split('/')
+ else:
+ path_prefix = []
+
nmf = NmfUtils(objdump=options.objdump,
main_files=args,
lib_path=options.lib_path,
+ lib_prefix=path_prefix,
toolchain=options.toolchain,
remap=remap)
« no previous file with comments | « chrome/test/data/nacl/nacl_browser_test.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698