diff options
author | bradnelson@google.com <bradnelson@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-25 06:18:34 +0000 |
---|---|---|
committer | bradnelson@google.com <bradnelson@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-25 06:18:34 +0000 |
commit | 4663313ded549563bebe1c734091cac891e3786d (patch) | |
tree | d5b765b814fc830811f5feb53b5075c5b215291e /chrome/build_nacl_irt.py | |
parent | 3cbfb9958be83d592ba2116c20c761d52bcf9696 (diff) | |
download | chromium_src-4663313ded549563bebe1c734091cac891e3786d.zip chromium_src-4663313ded549563bebe1c734091cac891e3786d.tar.gz chromium_src-4663313ded549563bebe1c734091cac891e3786d.tar.bz2 |
Pulling new nacl into chrome, which now uses a single ppapi copy.
BUG=http://code.google.com/p/chromium/issues/detail?id=93520
TEST=None
R=noelallen@google.com
Review URL: http://codereview.chromium.org/7750001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98190 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/build_nacl_irt.py')
-rwxr-xr-x | chrome/build_nacl_irt.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/build_nacl_irt.py b/chrome/build_nacl_irt.py index 501865b..cee7655 100755 --- a/chrome/build_nacl_irt.py +++ b/chrome/build_nacl_irt.py @@ -21,6 +21,9 @@ NACL_CMD_BUFFER_DIR = os.path.join('src', 'shared', 'ppapi_proxy', 'command_buffer') GPU_CMD_BUFFER_DIR = os.path.join('..', 'gpu', 'command_buffer') +# Pathing to mirror of nacl tree in ppapi. +PPAPI_NACL_DIR = os.path.join(SRC_DIR, 'ppapi', 'native_client') + def RelativePath(path, base): """Find the relative path. @@ -94,6 +97,10 @@ def PrintInputs(platforms): # Apply the underlay of gpu/command_buffer (to match scons). if filename.startswith(NACL_CMD_BUFFER_DIR + os.sep): filename = GPU_CMD_BUFFER_DIR + filename[len(NACL_CMD_BUFFER_DIR):] + # Apply the underlay of ppapi (to match scons). + if (not os.path.exists(os.path.join(NACL_DIR, filename)) and + os.path.exists(os.path.join(PPAPI_NACL_DIR, filename))): + filename = '../ppapi/native_client/' + filename inputs.add(filename) # Check that everything exists and make it script relative. # Exclude things above SRC_DIR. |