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

Issue 11266051: Add PNaCl support for VS addin. (Closed)

Created:
8 years, 1 month ago by Sam Clegg
Modified:
8 years, 1 month ago
Reviewers:
binji
CC:
native-client-reviews_googlegroups.com
Visibility:
Public.

Description

Add PNaCl support for VS addin. The primary changes here are due to the fact that the link phase for PNaCl differs significantly from from NaCl one. Also, since PNaCl toolchains is a bat file that calls python script, we need to ensure that python is in the path for all PNaCl builds. The link phase was using automatic depenedacy tracking previously but this process fails to launch the python process successfully, so we now write the .tlog manually in the same way we do for the compiler phase. BUG= Committed: https://code.google.com/p/nativeclient-sdk/source/detail?r=1459

Patch Set 1 : #

Total comments: 2

Patch Set 2 : Add pnacl-translate phase #

Total comments: 25

Patch Set 3 : now with tests #

Total comments: 2

Patch Set 4 : #

Total comments: 6

Patch Set 5 : fix nits and tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+806 lines, -486 lines) Patch
M visual_studio/NativeClientVSAddIn/InstallerResources/NaCl/NaCl.CppBuild.targets View 1 1 chunk +2 lines, -1 line 0 comments Download
M visual_studio/NativeClientVSAddIn/InstallerResources/NaCl/NaCl.Paths.default.props View 1 chunk +1 line, -0 lines 0 comments Download
M visual_studio/NativeClientVSAddIn/InstallerResources/NaCl/NaCl.Toolset.default.props View 1 2 chunks +12 lines, -8 lines 0 comments Download
M visual_studio/NativeClientVSAddIn/InstallerResources/NaCl/Props/nacl_compile.xml View 1 chunk +1 line, -1 line 0 comments Download
M visual_studio/NativeClientVSAddIn/InstallerResources/NaCl/Props/nacl_directories.xml View 1 chunk +4 lines, -4 lines 0 comments Download
A + visual_studio/NativeClientVSAddIn/InstallerResources/NaCl/Props/pnacl_link.xml View 1 1 chunk +8 lines, -3 lines 0 comments Download
M visual_studio/NativeClientVSAddIn/InstallerResources/NaCl64/Microsoft.Cpp.NaCl64.props View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M visual_studio/NativeClientVSAddIn/InstallerResources/NaCl64/Microsoft.Cpp.NaCl64.targets View 3 chunks +6 lines, -9 lines 0 comments Download
M visual_studio/NativeClientVSAddIn/InstallerResources/NaCl64/Microsoft.Cpp.NaCl64.default.props View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
A + visual_studio/NativeClientVSAddIn/InstallerResources/PNaCl/Microsoft.Cpp.PNaCl.targets View 1 2 3 4 chunks +13 lines, -13 lines 0 comments Download
M visual_studio/NativeClientVSAddIn/InstallerResources/examples/hello_world_gles/hello_world_gles.sln View 2 chunks +6 lines, -0 lines 0 comments Download
A visual_studio/NativeClientVSAddIn/InstallerResources/examples/hello_world_gles/hello_world_gles/PNaCl/hello_world_gles.nmf View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M visual_studio/NativeClientVSAddIn/InstallerResources/examples/hello_world_gles/hello_world_gles/hello_world_gles.vcxproj View 1 2 3 5 chunks +22 lines, -1 line 0 comments Download
M visual_studio/NativeClientVSAddIn/InstallerResources/install.py View 3 chunks +7 lines, -2 lines 0 comments Download
M visual_studio/NativeClientVSAddIn/NaCl.Build.CPPTasks/GCCUtilities.cs View 1 chunk +24 lines, -0 lines 0 comments Download
M visual_studio/NativeClientVSAddIn/NaCl.Build.CPPTasks/NaCl.Build.CPPTasks.csproj View 3 chunks +3 lines, -2 lines 0 comments Download
M visual_studio/NativeClientVSAddIn/NaCl.Build.CPPTasks/NaClCompile.cs View 1 2 16 chunks +58 lines, -302 lines 0 comments Download
M visual_studio/NativeClientVSAddIn/NaCl.Build.CPPTasks/NaClLink.cs View 1 2 3 6 chunks +130 lines, -60 lines 0 comments Download
A visual_studio/NativeClientVSAddIn/NaCl.Build.CPPTasks/NaClToolTask.cs View 1 1 chunk +291 lines, -0 lines 0 comments Download
M visual_studio/NativeClientVSAddIn/NaCl.Build.CPPTasks/XamlParser.cs View 1 1 chunk +1 line, -1 line 0 comments Download
M visual_studio/NativeClientVSAddIn/NativeClientVSAddIn/Connect.cs View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M visual_studio/NativeClientVSAddIn/NativeClientVSAddIn/PluginDebuggerGDB.cs View 1 2 3 5 chunks +35 lines, -18 lines 0 comments Download
M visual_studio/NativeClientVSAddIn/NativeClientVSAddIn/PropertyManager.cs View 1 2 3 4 9 chunks +36 lines, -25 lines 0 comments Download
M visual_studio/NativeClientVSAddIn/NativeClientVSAddIn/Strings.resx View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M visual_studio/NativeClientVSAddIn/NativeClientVSAddIn/Strings.Designer.cs View 1 2 2 chunks +10 lines, -1 line 0 comments Download
M visual_studio/NativeClientVSAddIn/UnitTests/MockPropertyManager.cs View 1 2 3 4 1 chunk +5 lines, -1 line 0 comments Download
M visual_studio/NativeClientVSAddIn/UnitTests/PluginDebuggerGDBTest.cs View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M visual_studio/NativeClientVSAddIn/UnitTests/ProjectSettingsTest.cs View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M visual_studio/NativeClientVSAddIn/UnitTests/PropertyManagerTest.cs View 1 2 3 4 8 chunks +54 lines, -10 lines 0 comments Download
M visual_studio/NativeClientVSAddIn/UnitTests/TestUtilities.cs View 1 2 2 chunks +5 lines, -1 line 0 comments Download
M visual_studio/NativeClientVSAddIn/create_package.py View 1 2 3 chunks +41 lines, -16 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Sam Clegg
Initial PNaCL support for VS Addin. This version only produces .pexe files. I'm currently adding ...
8 years, 1 month ago (2012-10-25 19:47:33 UTC) #1
Sam Clegg
Now with pnacl-translate to generate 3 nexes.
8 years, 1 month ago (2012-10-26 23:05:17 UTC) #2
binji
lgtm http://codereview.chromium.org/11266051/diff/2001/visual_studio/NativeClientVSAddIn/InstallerResources/examples/hello_world_gles/hello_world_gles/hello_world_gles.vcxproj File visual_studio/NativeClientVSAddIn/InstallerResources/examples/hello_world_gles/hello_world_gles/hello_world_gles.vcxproj (right): http://codereview.chromium.org/11266051/diff/2001/visual_studio/NativeClientVSAddIn/InstallerResources/examples/hello_world_gles/hello_world_gles/hello_world_gles.vcxproj#newcode121 visual_studio/NativeClientVSAddIn/InstallerResources/examples/hello_world_gles/hello_world_gles/hello_world_gles.vcxproj:121: <ReportUndefinedSymbols>false</ReportUndefinedSymbols> remove http://codereview.chromium.org/11266051/diff/2001/visual_studio/NativeClientVSAddIn/create_package.py File visual_studio/NativeClientVSAddIn/create_package.py (right): http://codereview.chromium.org/11266051/diff/2001/visual_studio/NativeClientVSAddIn/create_package.py#newcode172 visual_studio/NativeClientVSAddIn/create_package.py:172: ...
8 years, 1 month ago (2012-10-29 18:08:59 UTC) #3
binji
btw, any tests for pnacl...?
8 years, 1 month ago (2012-10-29 18:09:29 UTC) #4
Sam Clegg
On 2012/10/29 18:09:29, binji wrote: > btw, any tests for pnacl...? Adding tests now.
8 years, 1 month ago (2012-10-29 21:34:17 UTC) #5
Sam Clegg
http://codereview.chromium.org/11266051/diff/6001/visual_studio/NativeClientVSAddIn/InstallerResources/examples/hello_world_gles/hello_world_gles/hello_world_gles.vcxproj File visual_studio/NativeClientVSAddIn/InstallerResources/examples/hello_world_gles/hello_world_gles/hello_world_gles.vcxproj (right): http://codereview.chromium.org/11266051/diff/6001/visual_studio/NativeClientVSAddIn/InstallerResources/examples/hello_world_gles/hello_world_gles/hello_world_gles.vcxproj#newcode119 visual_studio/NativeClientVSAddIn/InstallerResources/examples/hello_world_gles/hello_world_gles/hello_world_gles.vcxproj:119: <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|PNaCl'"> On 2012/10/29 18:08:59, binji wrote: > what ...
8 years, 1 month ago (2012-10-29 22:42:50 UTC) #6
binji
http://codereview.chromium.org/11266051/diff/6001/visual_studio/NativeClientVSAddIn/NaCl.Build.CPPTasks/NaClLink.cs File visual_studio/NativeClientVSAddIn/NaCl.Build.CPPTasks/NaClLink.cs (right): http://codereview.chromium.org/11266051/diff/6001/visual_studio/NativeClientVSAddIn/NaCl.Build.CPPTasks/NaClLink.cs#newcode188 visual_studio/NativeClientVSAddIn/NaCl.Build.CPPTasks/NaClLink.cs:188: if (TranslateX64 == "true" && !Translate("x86-64")) On 2012/10/29 22:42:51, ...
8 years, 1 month ago (2012-10-29 23:14:02 UTC) #7
Sam Clegg
On 2012/10/29 23:14:02, binji wrote: > http://codereview.chromium.org/11266051/diff/6001/visual_studio/NativeClientVSAddIn/NaCl.Build.CPPTasks/NaClLink.cs > File visual_studio/NativeClientVSAddIn/NaCl.Build.CPPTasks/NaClLink.cs (right): > > http://codereview.chromium.org/11266051/diff/6001/visual_studio/NativeClientVSAddIn/NaCl.Build.CPPTasks/NaClLink.cs#newcode188 > ...
8 years, 1 month ago (2012-10-29 23:27:01 UTC) #8
Sam Clegg
On 2012/10/29 23:27:01, Sam Clegg wrote: > On 2012/10/29 23:14:02, binji wrote: > > > ...
8 years, 1 month ago (2012-10-29 23:34:21 UTC) #9
Sam Clegg
http://codereview.chromium.org/11266051/diff/17027/visual_studio/NativeClientVSAddIn/UnitTests/StyleCop.Cache File visual_studio/NativeClientVSAddIn/UnitTests/StyleCop.Cache (right): http://codereview.chromium.org/11266051/diff/17027/visual_studio/NativeClientVSAddIn/UnitTests/StyleCop.Cache#newcode1 visual_studio/NativeClientVSAddIn/UnitTests/StyleCop.Cache:1: <stylecopresultscache> On 2012/10/29 23:14:02, binji wrote: > is this ...
8 years, 1 month ago (2012-10-30 20:30:28 UTC) #10
binji
http://codereview.chromium.org/11266051/diff/10008/visual_studio/NativeClientVSAddIn/InstallerResources/examples/hello_world_gles/hello_world_gles/PNaCl/hello_world_gles.nmf File visual_studio/NativeClientVSAddIn/InstallerResources/examples/hello_world_gles/hello_world_gles/PNaCl/hello_world_gles.nmf (right): http://codereview.chromium.org/11266051/diff/10008/visual_studio/NativeClientVSAddIn/InstallerResources/examples/hello_world_gles/hello_world_gles/PNaCl/hello_world_gles.nmf#newcode4 visual_studio/NativeClientVSAddIn/InstallerResources/examples/hello_world_gles/hello_world_gles/PNaCl/hello_world_gles.nmf:4: "x86-64": { 64-bit only? http://codereview.chromium.org/11266051/diff/10008/visual_studio/NativeClientVSAddIn/NativeClientVSAddIn/PropertyManager.cs File visual_studio/NativeClientVSAddIn/NativeClientVSAddIn/PropertyManager.cs (right): http://codereview.chromium.org/11266051/diff/10008/visual_studio/NativeClientVSAddIn/NativeClientVSAddIn/PropertyManager.cs#newcode29 ...
8 years, 1 month ago (2012-10-30 20:37:40 UTC) #11
Sam Clegg
http://codereview.chromium.org/11266051/diff/10008/visual_studio/NativeClientVSAddIn/InstallerResources/examples/hello_world_gles/hello_world_gles/PNaCl/hello_world_gles.nmf File visual_studio/NativeClientVSAddIn/InstallerResources/examples/hello_world_gles/hello_world_gles/PNaCl/hello_world_gles.nmf (right): http://codereview.chromium.org/11266051/diff/10008/visual_studio/NativeClientVSAddIn/InstallerResources/examples/hello_world_gles/hello_world_gles/PNaCl/hello_world_gles.nmf#newcode4 visual_studio/NativeClientVSAddIn/InstallerResources/examples/hello_world_gles/hello_world_gles/PNaCl/hello_world_gles.nmf:4: "x86-64": { On 2012/10/30 20:37:40, binji wrote: > 64-bit ...
8 years, 1 month ago (2012-10-30 21:01:44 UTC) #12
binji
8 years, 1 month ago (2012-10-30 23:52:26 UTC) #13
lgtm

Powered by Google App Engine
This is Rietveld 408576698