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

Unified Diff: visual_studio/NativeClientVSAddIn/InstallerResources/install.py

Issue 11266051: Add PNaCl support for VS addin. (Closed) Base URL: http://nativeclient-sdk.googlecode.com/svn/trunk/src
Patch Set: fix nits and tests Created 8 years, 2 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
Index: visual_studio/NativeClientVSAddIn/InstallerResources/install.py
diff --git a/visual_studio/NativeClientVSAddIn/InstallerResources/install.py b/visual_studio/NativeClientVSAddIn/InstallerResources/install.py
index 6898f7535b580d906aa8fb15bb9b7198c948c5d0..acbaeb0c150f51639893412458074db2b0991ee6 100644
--- a/visual_studio/NativeClientVSAddIn/InstallerResources/install.py
+++ b/visual_studio/NativeClientVSAddIn/InstallerResources/install.py
@@ -21,6 +21,7 @@ import time
NACL32_PLATFORM = 'NaCl32'
NACL64_PLATFORM = 'NaCl64'
+PNACL_PLATFORM = 'PNaCl'
NACL_PLATFORM_OLD = 'NaCl'
PEPPER_PLATFORM = 'PPAPI'
@@ -162,11 +163,12 @@ def main():
nacl_directory32 = os.path.join(platform_root, NACL32_PLATFORM)
nacl_directory64 = os.path.join(platform_root, NACL64_PLATFORM)
+ pnacl_directory = os.path.join(platform_root, PNACL_PLATFORM)
nacl_directoryold = os.path.join(platform_root, NACL_PLATFORM_OLD)
nacl_common = os.path.join(os.path.dirname(platform_root), 'NaCl')
pepper_directory = os.path.join(platform_root, PEPPER_PLATFORM)
- remove_dirs = (nacl_directory32, nacl_directory64,
- nacl_directoryold, pepper_directory, nacl_common)
+ remove_dirs = (nacl_directory32, nacl_directory64, pnacl_directory,
+ nacl_directoryold, pepper_directory, nacl_common)
# If uninstalling then redirect to uninstall program.
if options.uninstall:
Uninstall(remove_dirs, addin_directory)
@@ -228,6 +230,9 @@ def main():
shutil.copytree(os.path.join(SCRIPT_DIR, NACL64_PLATFORM), nacl_directory64)
print "NaCl64 platform installed."
+ shutil.copytree(os.path.join(SCRIPT_DIR, PNACL_PLATFORM), pnacl_directory)
+ print "PNaCl platform installed."
+
if options.install_ppapi:
create_ppapi_platform.CreatePPAPI(options.msbuild_path)
print "PPAPI platform installed."

Powered by Google App Engine
This is Rietveld 408576698