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

Unified Diff: chrome/build_nacl_irt.py

Issue 7750001: Pulling new nacl into chrome, which now uses a single ppapi copy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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 | « DEPS ('k') | chrome/nacl.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/build_nacl_irt.py
===================================================================
--- chrome/build_nacl_irt.py (revision 98186)
+++ chrome/build_nacl_irt.py (working copy)
@@ -21,7 +21,10 @@
'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 @@
# 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.
« no previous file with comments | « DEPS ('k') | chrome/nacl.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698