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

Issue 7863024: Make the NaCl windows 64 bit binaries not depend on chrome targets. (Closed)

Created:
9 years, 3 months ago by jam
Modified:
9 years, 3 months ago
CC:
chromium-reviews, native-client-reviews_googlegroups.com
Visibility:
Public.

Description

Make the NaCl windows 64 bit binaries not depend on chrome targets. These targets are very simple and used little code from chrome targets. However their dependency on chrome targets was problematic because a lot of code wasn't being built for 64 bit on Windows, and so there were a lot of "dummy" files being added with stub functions and code was also being compiled out in random places for NACL_WIN64. I've made the NaCl 64 bit windows targets self contained. They do use a few files from common, but those files are self-contained. In the future, we could move these to be in the same 64 bit target as the constants from common. However that won't make a maintenance difference since someone could still introduce link dependencies to other files in common. Additionally, since we're not using chrome code anymore, we can avoid having both nacl.exe and nacl.dll. nacl.exe is sufficient, and this saves 1.4MB of uncompresed binaries in the installer. BUG=86322 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=100767

Patch Set 1 #

Patch Set 2 : +dll #

Patch Set 3 : cleanup #

Patch Set 4 : remove nacl_win64 and dummy hacks #

Total comments: 11

Patch Set 5 : no need for nacl.dll, put everything in nacl.exe #

Patch Set 6 : simplify chrome_common.gypi since it doesn't build 64 bit target anymore #

Patch Set 7 : enable crash reporting #

Total comments: 4

Patch Set 8 : sync #

Patch Set 9 : simplify chrome_exe.gypi #

Unified diffs Side-by-side diffs Delta from patch set Stats (+421 lines, -1125 lines) Patch
M chrome/app/chrome_exe_main_win.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/app/chrome_main.cc View 1 2 3 4 5 6 7 4 chunks +0 lines, -16 lines 0 comments Download
M chrome/app/client_util.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -14 lines 0 comments Download
D chrome/app/dummy_main_functions.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -56 lines 0 comments Download
D chrome/app/nacl64_dll.ver View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/nacl_host/nacl_broker_host_win.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/nacl_host/nacl_process_host.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
D chrome/browser/renderer_host/render_process_host_dummy.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/chrome.gyp View 1 2 3 4 5 6 7 3 chunks +0 lines, -9 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 6 7 11 chunks +58 lines, -147 lines 0 comments Download
M chrome/chrome_dll.gypi View 1 2 3 4 5 6 7 4 chunks +41 lines, -158 lines 0 comments Download
M chrome/chrome_exe.gypi View 1 2 3 4 5 6 7 8 6 chunks +81 lines, -97 lines 0 comments Download
M chrome/common/chrome_content_client.cc View 1 2 3 4 5 6 7 8 chunks +1 line, -21 lines 0 comments Download
M chrome/common/chrome_content_plugin_client.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/common/chrome_version_info.cc View 1 2 3 4 5 6 7 2 chunks +0 lines, -2 lines 0 comments Download
D chrome/common/googleurl_dummy.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -18 lines 0 comments Download
M chrome/common/nacl_cmd_line.cc View 1 2 3 4 5 6 7 2 chunks +1 line, -3 lines 0 comments Download
M chrome/installer/mini_installer.gyp View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M chrome/installer/mini_installer/chrome.release View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M chrome/installer/util/util_constants.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M chrome/installer/util/util_constants.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M chrome/nacl.gypi View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -11 lines 0 comments Download
D chrome/nacl/broker_thread.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -41 lines 0 comments Download
D chrome/nacl/broker_thread.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -82 lines 0 comments Download
A + chrome/nacl/nacl_broker_listener.h View 1 1 chunk +13 lines, -16 lines 0 comments Download
A + chrome/nacl/nacl_broker_listener.cc View 1 2 3 chunks +28 lines, -25 lines 0 comments Download
A chrome/nacl/nacl_exe_win_64.cc View 1 2 3 4 5 6 1 chunk +105 lines, -0 lines 0 comments Download
M chrome/nacl/nacl_helper_linux.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/nacl/nacl_listener.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/nacl/nacl_main.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -65 lines 0 comments Download
M chrome/nacl/nacl_main_platform_delegate_win.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M chrome/tools/build/win/FILES View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M chrome/tools/build/win/FILES.cfg View 1 2 3 4 5 6 7 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/tools/build/win/SYMBOLS View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M content/app/content_main.cc View 1 2 3 4 5 6 7 8 chunks +4 lines, -43 lines 0 comments Download
D content/app/sandbox_helper_win.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -20 lines 0 comments Download
D content/app/sandbox_helper_win.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -24 lines 0 comments Download
A + content/app/startup_helper_win.h View 1 2 3 4 1 chunk +14 lines, -3 lines 0 comments Download
A + content/app/startup_helper_win.cc View 1 2 3 4 2 chunks +46 lines, -1 line 0 comments Download
M content/common/child_thread.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -5 lines 0 comments Download
M content/common/content_message_generator.h View 1 2 3 4 5 6 7 2 chunks +0 lines, -4 lines 0 comments Download
D content/common/file_system/file_system_dispatcher_dummy.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -21 lines 0 comments Download
D content/common/quota_dispatcher_dummy.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -21 lines 0 comments Download
D content/common/resource_dispatcher_dummy.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -33 lines 0 comments Download
M content/common/sandbox_policy.cc View 1 2 3 4 5 6 7 3 chunks +4 lines, -0 lines 0 comments Download
D content/common/socket_stream_dispatcher_dummy.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -18 lines 0 comments Download
M content/content_app.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M ui/base/resource/resource_bundle.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download
D ui/base/resource/resource_bundle_dummy.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -63 lines 0 comments Download
M ui/ui.gyp View 1 2 3 4 5 6 7 1 chunk +0 lines, -30 lines 0 comments Download
D webkit/glue/webkit_glue_dummy.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -25 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
jam
Brad Nelson: please review the gyp changes Brad Chen: please review the rest. I wasn't ...
9 years, 3 months ago (2011-09-11 16:00:14 UTC) #1
Brad Chen (chromium)
This looks like it kills a lot of nasty code so that's wonderful. I would ...
9 years, 3 months ago (2011-09-11 17:35:37 UTC) #2
Brad Chen (chromium)
One other detail; from your CL description it sounds like this change might address the ...
9 years, 3 months ago (2011-09-11 17:37:12 UTC) #3
jam
To answer your questions, I had tested this on 64 bit Windows. This code is ...
9 years, 3 months ago (2011-09-11 22:51:37 UTC) #4
jam
ok, this is now ready for review. I've removed nacl.dll and put everything in nacl.exe, ...
9 years, 3 months ago (2011-09-12 06:44:08 UTC) #5
Brad Chen
LGTM for the CC changes. I'd still like to have Noel have a look, and ...
9 years, 3 months ago (2011-09-12 16:52:51 UTC) #6
bradn
LGTM
9 years, 3 months ago (2011-09-12 18:15:08 UTC) #7
noelallen1
One question just for my edification, and a nit you can ignore. LGTM. http://codereview.chromium.org/7863024/diff/11018/chrome/chrome_exe.gypi File ...
9 years, 3 months ago (2011-09-12 18:52:39 UTC) #8
jam
9 years, 3 months ago (2011-09-12 19:53:02 UTC) #9
http://codereview.chromium.org/7863024/diff/11018/chrome/chrome_exe.gypi
File chrome/chrome_exe.gypi (right):

http://codereview.chromium.org/7863024/diff/11018/chrome/chrome_exe.gypi#newc...
chrome/chrome_exe.gypi:11: ['chrome_exe_target==1', {
On 2011/09/12 18:52:39, noelallen1 wrote:
> Question:  This isn't really part of this CL, but does this mean we can get
rid
> of this block by moving it bellow into the chrome target?  Not sure it gets
used
> anywhere else anymore.

ah yes, you're right, I forgot about it (I cleaned up the other instances but
forgot about it). will take care of this

http://codereview.chromium.org/7863024/diff/11018/chrome/chrome_exe.gypi#newc...
chrome/chrome_exe.gypi:556: 'SubSystem': '2',         # Set /SUBSYSTEM:WINDOWS
On 2011/09/12 18:52:39, noelallen1 wrote:
> nit: Isn't this the default?  Not sure you really had to specify this.

the default is a SUBSYSTEM:CONSOLE

Powered by Google App Engine
This is Rietveld 408576698