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

Issue 2270693004: GN: make libwebp an optional dependency (Closed)

Created:
4 years, 4 months ago by mtklein_C
Modified:
4 years, 4 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

GN: make libwebp an optional dependency This will be handy for folks who don't have libwebp, like Fuchsia. I convinced myself that this is done right by: - building in all three modes (default and explicitly set both ways); - looking at verbose Ninja logs to see the presence/lack of SK_HAS_WEBP_LIBRARY; - running dm -m Codec, which passes with libwebp and segfault without it. If this is viable, I intend to make all third-party dependencies optional and follow this pattern. :skia should link and degrade gracefully without any of //third_party. It's okay for tools to have hard third-party dependencies; we just need them to get past the `gn gen` stage without them. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2270693004 Committed: https://skia.googlesource.com/skia/+/eb3c425f1b33836e116e8ed4eeb40e0c6d8dffb6

Patch Set 1 #

Patch Set 2 : nicer #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -5 lines) Patch
M BUILD.gn View 1 4 chunks +23 lines, -5 lines 0 comments Download

Messages

Total messages: 21 (12 generated)
mtklein_C
anmittal, will this work for Fuchsia? jcgregorio, down with this general approach to third_party? msarett, ...
4 years, 4 months ago (2016-08-23 13:59:05 UTC) #9
msarett
On 2016/08/23 13:59:05, mtklein_C wrote: > anmittal, will this work for Fuchsia? > jcgregorio, down ...
4 years, 4 months ago (2016-08-23 14:13:51 UTC) #12
jcgregorio
On 2016/08/23 at 14:13:51, msarett wrote: > On 2016/08/23 13:59:05, mtklein_C wrote: > > anmittal, ...
4 years, 4 months ago (2016-08-23 14:30:00 UTC) #13
mtklein
> Just confirming, we seg fault (in test code) without libwebp even when > SK_HAS_WEBP_LIBRARY ...
4 years, 4 months ago (2016-08-23 14:33:38 UTC) #14
mtklein_C
> LGTM. This looks great, so all the third_party libs will move to this format? ...
4 years, 4 months ago (2016-08-23 14:36:52 UTC) #15
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/2270693004/20001
4 years, 4 months ago (2016-08-23 14:37:19 UTC) #17
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://skia.googlesource.com/skia/+/eb3c425f1b33836e116e8ed4eeb40e0c6d8dffb6
4 years, 4 months ago (2016-08-23 14:38:12 UTC) #19
anmittal
On 2016/08/23 14:36:52, mtklein_C wrote: > > LGTM. This looks great, so all the third_party ...
4 years, 4 months ago (2016-08-23 17:26:51 UTC) #20
anmittal
4 years, 4 months ago (2016-08-23 17:26:54 UTC) #21
Message was sent while issue was closed.
On 2016/08/23 14:36:52, mtklein_C wrote:
> > LGTM. This looks great, so all the third_party libs will move to this
format?
> 
> That's my hope, yeah.
> 
> Gonna land this now and start fleshing out the rest.  Whether or not this
fixes
> Fuchsia's pain point, I can't imagine it makes things worse.

hey sorry for late comment, the fix works great for fuchsia. Thanks for making
this change :)

Powered by Google App Engine
This is Rietveld 408576698