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

Issue 2574593003: Fix Windows build warning LNK4217 for blink_platform.dll. (Closed)

Created:
4 years ago by leonhsl(Using Gerrit)
Modified:
3 years, 11 months ago
CC:
chromium-reviews, blink-reviews, dglazkov+blink, blink-reviews-api_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix Windows build warning LNK4217 for blink_platform.dll. [1] third_party/WebKit/public:offscreen_canvas_mojo_bindings_blink ==> [2] cc/ipc:interfaces_blink ==> [3] gpu/ipc/common:interfaces_blink The above three targets are all linked into blink_platform.dll, but [2] and [3] use gfx.mojom.Size typemap defined in third_party/WebKit/Source/platform/mojo/GeometryStructTraits.{cpp,h}, which is exported from bink_platform.dll. Thus, generated C++ bindings of [2] and [3] include GeometryStructTraits.h while themselves are part of blink_platform.dll, means they are importing(dllimport) local defined symbols marked as dllexport, caused LNK4217. This CL moves this struct traits to a separate source_set target, instead of exporting it from blink_platform.dll. BUG=654776, 669352 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2574593003 Cr-Commit-Position: refs/heads/master@{#443994} Committed: https://chromium.googlesource.com/chromium/src/+/4724c1ac34d346dd8b44c4abc33b344a744a2d69

Patch Set 1 #

Patch Set 2 : cc/ipc:interfaces_blink #

Patch Set 3 : gpu/ipc/common:interfaces_blink #

Total comments: 1

Patch Set 4 : Do not export geometry struct traits from blink_platform.dll #

Total comments: 2

Patch Set 5 : Address comments from Yuzhu #

Patch Set 6 : Rebase, to get https://crrev.com/c868aae8f9b8d51461afff79064c75339e6ce30c #

Patch Set 7 : No need to ignore {lnk4217, lnk4049} for blink_platform anymore #

Patch Set 8 : Rebase #

Total comments: 5

Patch Set 9 : Rebase and change new code file's license 2016-->2017 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -18 lines) Patch
M third_party/WebKit/Source/platform/BUILD.gn View 1 2 3 4 5 6 7 8 2 chunks +0 lines, -9 lines 0 comments Download
A third_party/WebKit/Source/platform/mojo/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +15 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/mojo/Geometry.typemap View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/mojo/GeometryStructTraits.h View 1 2 3 4 1 chunk +4 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/mojo/GeometryStructTraits.cpp View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/public/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 76 (51 generated)
leonhsl(Using Gerrit)
Hi, would you PTAL at this? Thanks.
4 years ago (2016-12-14 10:11:06 UTC) #10
yzshen1
lgtm
4 years ago (2016-12-14 17:19:34 UTC) #17
jam
https://codereview.chromium.org/2574593003/diff/40001/cc/ipc/BUILD.gn File cc/ipc/BUILD.gn (right): https://codereview.chromium.org/2574593003/diff/40001/cc/ipc/BUILD.gn#newcode70 cc/ipc/BUILD.gn:70: export_class_attribute_blink = "BLINK_PLATFORM_EXPORT" I don't understand this change and ...
4 years ago (2016-12-14 17:53:39 UTC) #18
yzshen1
On 2016/12/14 17:53:39, jam wrote: > https://codereview.chromium.org/2574593003/diff/40001/cc/ipc/BUILD.gn > File cc/ipc/BUILD.gn (right): > > https://codereview.chromium.org/2574593003/diff/40001/cc/ipc/BUILD.gn#newcode70 > ...
4 years ago (2016-12-14 18:09:53 UTC) #19
leonhsl(Using Gerrit)
On 2016/12/14 18:09:53, yzshen1 wrote: > On 2016/12/14 17:53:39, jam wrote: > > https://codereview.chromium.org/2574593003/diff/40001/cc/ipc/BUILD.gn > ...
4 years ago (2016-12-15 03:06:49 UTC) #20
yzshen1
On 2016/12/15 03:06:49, leonhsl wrote: > On 2016/12/14 18:09:53, yzshen1 wrote: > > On 2016/12/14 ...
4 years ago (2016-12-15 18:34:58 UTC) #21
leonhsl(Using Gerrit)
On 2016/12/15 18:34:58, yzshen1 wrote: > On 2016/12/15 03:06:49, leonhsl wrote: > > On 2016/12/14 ...
4 years ago (2016-12-16 03:15:14 UTC) #22
jam
On 2016/12/16 03:15:14, leonhsl wrote: > On 2016/12/15 18:34:58, yzshen1 wrote: > > On 2016/12/15 ...
4 years ago (2016-12-16 20:31:33 UTC) #23
leonhsl(Using Gerrit)
Hi, Yuzhu, John, I considered another option maybe we can take, uploaded ps#4, which has ...
4 years ago (2016-12-19 09:49:07 UTC) #34
leonhsl(Using Gerrit)
+Tom, Thanks.
4 years ago (2016-12-19 09:53:29 UTC) #36
yzshen1
https://codereview.chromium.org/2574593003/diff/80001/third_party/WebKit/Source/platform/mojo/BUILD.gn File third_party/WebKit/Source/platform/mojo/BUILD.gn (right): https://codereview.chromium.org/2574593003/diff/80001/third_party/WebKit/Source/platform/mojo/BUILD.gn#newcode13 third_party/WebKit/Source/platform/mojo/BUILD.gn:13: "//ui/gfx/geometry/mojo:mojo_blink__generator", Can it depend on ui/gfx/geometry/mojo:mojo_shared_cpp_sources? __generator is not ...
4 years ago (2016-12-19 17:34:56 UTC) #37
Tom Sepez
On 2016/12/19 17:34:56, yzshen1 wrote: > https://codereview.chromium.org/2574593003/diff/80001/third_party/WebKit/Source/platform/mojo/BUILD.gn > File third_party/WebKit/Source/platform/mojo/BUILD.gn (right): > > https://codereview.chromium.org/2574593003/diff/80001/third_party/WebKit/Source/platform/mojo/BUILD.gn#newcode13 > ...
4 years ago (2016-12-19 17:41:55 UTC) #38
leonhsl(Using Gerrit)
Uploaded ps#5, PTAnL, Thanks. #Also confirmed that LNK4217 warnings for blink_platform have disappeared. https://codereview.chromium.org/2574593003/diff/80001/third_party/WebKit/Source/platform/mojo/BUILD.gn File ...
4 years ago (2016-12-20 03:00:20 UTC) #43
leonhsl(Using Gerrit)
Soft ping~
4 years ago (2016-12-23 00:38:57 UTC) #45
Tom Sepez
On 2016/12/23 00:38:57, leonhsl wrote: > Soft ping~ RS LGTM, but be sure about the ...
3 years, 11 months ago (2017-01-03 18:39:30 UTC) #56
leonhsl(Using Gerrit)
Ping John and Yuzhu, thanks.
3 years, 11 months ago (2017-01-06 09:53:56 UTC) #57
yzshen1
On 2017/01/06 09:53:56, leonhsl wrote: > Ping John and Yuzhu, thanks. LGTM Sorry I thought ...
3 years, 11 months ago (2017-01-06 18:31:48 UTC) #58
leonhsl(Using Gerrit)
Ping John~
3 years, 11 months ago (2017-01-11 03:26:23 UTC) #59
leonhsl(Using Gerrit)
+haraken@, would you mind to take an OWNER review for this? Thanks.
3 years, 11 months ago (2017-01-16 12:25:40 UTC) #65
haraken
https://codereview.chromium.org/2574593003/diff/160001/third_party/WebKit/Source/platform/mojo/BUILD.gn File third_party/WebKit/Source/platform/mojo/BUILD.gn (right): https://codereview.chromium.org/2574593003/diff/160001/third_party/WebKit/Source/platform/mojo/BUILD.gn#newcode1 third_party/WebKit/Source/platform/mojo/BUILD.gn:1: # Copyright 2016 The Chromium Authors. All rights reserved. ...
3 years, 11 months ago (2017-01-16 12:31:46 UTC) #67
leonhsl(Using Gerrit)
Thank you for review! And sorry for my late reply.. https://codereview.chromium.org/2574593003/diff/160001/third_party/WebKit/Source/platform/mojo/BUILD.gn File third_party/WebKit/Source/platform/mojo/BUILD.gn (right): https://codereview.chromium.org/2574593003/diff/160001/third_party/WebKit/Source/platform/mojo/BUILD.gn#newcode1 ...
3 years, 11 months ago (2017-01-17 03:40:07 UTC) #68
haraken
On 2017/01/17 03:40:07, leonhsl wrote: > Thank you for review! And sorry for my late ...
3 years, 11 months ago (2017-01-17 03:49:00 UTC) #69
leonhsl(Using Gerrit)
https://codereview.chromium.org/2574593003/diff/160001/third_party/WebKit/Source/platform/mojo/BUILD.gn File third_party/WebKit/Source/platform/mojo/BUILD.gn (right): https://codereview.chromium.org/2574593003/diff/160001/third_party/WebKit/Source/platform/mojo/BUILD.gn#newcode1 third_party/WebKit/Source/platform/mojo/BUILD.gn:1: # Copyright 2016 The Chromium Authors. All rights reserved. ...
3 years, 11 months ago (2017-01-17 05:06:00 UTC) #70
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2574593003/180001
3 years, 11 months ago (2017-01-17 05:06:27 UTC) #73
commit-bot: I haz the power
3 years, 11 months ago (2017-01-17 06:53:49 UTC) #76
Message was sent while issue was closed.
Committed patchset #9 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/4724c1ac34d346dd8b44c4abc33b...

Powered by Google App Engine
This is Rietveld 408576698