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

Issue 2738383002: Manage FreeType symbol visibility using platform specific FT_EXPORT (Closed)

Created:
3 years, 9 months ago by drott
Modified:
3 years, 9 months ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Manage FreeType symbol visibility using platform specific FT_EXPORT MSVC does not support the -fvisibility-* option, hence providing platform specific macros for library export visibility. Also, suppress unused function warnings on non-Windows platforms only. BUG=700830 Review-Url: https://codereview.chromium.org/2738383002 Cr-Commit-Position: refs/heads/master@{#456390} Committed: https://chromium.googlesource.com/chromium/src/+/567ff79ca421beccab0b5babdeef3d6d9b89b9ea

Patch Set 1 #

Patch Set 2 : Adjust visibility approach for windows #

Patch Set 3 : -Wno-unused-function for clang only #

Total comments: 2

Patch Set 4 : Improve windows visibility matching #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -15 lines) Patch
M third_party/freetype/BUILD.gn View 1 2 3 2 chunks +13 lines, -13 lines 0 comments Download
M third_party/freetype/include/freetype-custom-config/ftoption.h View 1 2 3 1 chunk +16 lines, -2 lines 0 comments Download

Messages

Total messages: 47 (33 generated)
drott
Adjust visibility approach for windows
3 years, 9 months ago (2017-03-10 14:27:05 UTC) #9
drott
-Wno-unused-function for clang only
3 years, 9 months ago (2017-03-10 15:37:14 UTC) #18
bungeman-skia
I'm; not sure what the BUG in the current description is, it seems to go ...
3 years, 9 months ago (2017-03-10 17:02:56 UTC) #26
bungeman-skia
Maybe something like #if ?windows? && ?component_build? #if FT2_BUILD_LIBRARY #define FT_EXPORT(x) extern __declspec(dllexport) x #else ...
3 years, 9 months ago (2017-03-10 17:50:08 UTC) #27
drott
Improve windows visibility matching
3 years, 9 months ago (2017-03-13 10:12:18 UTC) #28
drott
On 2017/03/10 at 17:50:08, bungeman wrote: > Maybe something like > > #if ?windows? && ...
3 years, 9 months ago (2017-03-13 10:17:17 UTC) #31
drott
Thanks for the review, hope this works now. https://codereview.chromium.org/2738383002/diff/40001/third_party/freetype/include/freetype-custom-config/ftoption.h File third_party/freetype/include/freetype-custom-config/ftoption.h (right): https://codereview.chromium.org/2738383002/diff/40001/third_party/freetype/include/freetype-custom-config/ftoption.h#newcode314 third_party/freetype/include/freetype-custom-config/ftoption.h:314: #define ...
3 years, 9 months ago (2017-03-13 10:17:37 UTC) #32
bungeman-chromium
I haven't had a chance to actually test drive it yet, but lgtm.
3 years, 9 months ago (2017-03-13 14:56:46 UTC) #35
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/2738383002/60001
3 years, 9 months ago (2017-03-13 15:49:59 UTC) #37
drott
Ah, and I update the bug number now. The previous one was lacking a 3 ...
3 years, 9 months ago (2017-03-13 15:51:26 UTC) #40
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/2738383002/60001
3 years, 9 months ago (2017-03-13 15:52:08 UTC) #42
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/567ff79ca421beccab0b5babdeef3d6d9b89b9ea
3 years, 9 months ago (2017-03-13 15:56:55 UTC) #45
bungeman-chromium
On the other hand, we're not even DEPSing in FreeType when on Windows, and if ...
3 years, 9 months ago (2017-03-13 16:09:23 UTC) #46
drott
3 years, 9 months ago (2017-03-13 16:12:59 UTC) #47
Message was sent while issue was closed.
On 2017/03/13 at 16:09:23, bungeman wrote:
> On the other hand, we're not even DEPSing in FreeType when on Windows, and if
we were we're not currently building it. So the trybots aren't really trying
anything here, which explains why all the builds work (nothing really changed).
> 
> I updated issue 2682803002 to add the DEPS and also build, and it looks like
it should work, but I haven't had time to test it yet.

I've tried (built & tested) it locally, plus some additional changes. That's why
I was coming to the conclusion that we need a change in how we manage the
visibility. The results are listed in
https://bugs.chromium.org/p/chromium/issues/detail?id=700926 . I plan to
update/incorporate 2682803002 as soon as possible, but it's blocked on PDFium
rolling FreeType atm. Thanks for the review and your help in testing this CL if
you plan to try it locally.

Powered by Google App Engine
This is Rietveld 408576698