summaryrefslogtreecommitdiffstats
path: root/native_client_sdk/src/tools
diff options
context:
space:
mode:
authorbradchen@google.com <bradchen@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-06 17:41:18 +0000
committerbradchen@google.com <bradchen@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-06 17:41:18 +0000
commit3618be828ea5ceebc4644497325f245dd34de83a (patch)
tree02a6abcb797476196e2cf1fa9aeda5686a0d425a /native_client_sdk/src/tools
parentbbfacc89f9f8eb332c9193d272249592d226ee8e (diff)
downloadchromium_src-3618be828ea5ceebc4644497325f245dd34de83a.zip
chromium_src-3618be828ea5ceebc4644497325f245dd34de83a.tar.gz
chromium_src-3618be828ea5ceebc4644497325f245dd34de83a.tar.bz2
Enable PPAPINaCl GLIBC browser_tests.
NOTE: NaCl CL to update untrusted.gypi must go in first. BUG=127699 TEST=this is a test Review URL: https://chromiumcodereview.appspot.com/10409032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140786 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'native_client_sdk/src/tools')
-rwxr-xr-xnative_client_sdk/src/tools/create_nmf.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/native_client_sdk/src/tools/create_nmf.py b/native_client_sdk/src/tools/create_nmf.py
index 3c33b2a..84c6f53 100755
--- a/native_client_sdk/src/tools/create_nmf.py
+++ b/native_client_sdk/src/tools/create_nmf.py
@@ -239,12 +239,12 @@ class NmfUtils(object):
def _GenerateManifest(self, runnable=True):
'''Create a JSON formatted dict containing the files
-
+
NaCl will map url requests based on architecture. The startup NEXE
can always be found under the top key PROGRAM. Additional files are under
the FILES key further mapped by file name. In the case of 'runnable' the
PROGRAM key is populated with urls pointing the runnable-ld.so which acts
- as the startup nexe. The application itself, is then placed under the
+ as the startup nexe. The application itself, is then placed under the
FILES key mapped as 'main.exe' instead of it's original name so that the
loader can find it.'''
manifest = { FILES_KEY: {}, PROGRAM_KEY: {} }
@@ -263,6 +263,10 @@ class NmfUtils(object):
# For the main nexes:
if need.endswith('.nexe') and need in self.main_files:
+ # Ensure that the nexe name is relative, not absolute.
+ # We assume that the nexe and the corresponding nmf file are
+ # installed in the same directory.
+ urlinfo[URL_KEY] = os.path.basename(urlinfo[URL_KEY])
# Place it under program if we aren't using the runnable-ld.so.
if not runnable:
manifest[PROGRAM_KEY][archinfo.arch] = urlinfo