WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
154074
[cmake] Consolidate CMake code related to image decoders.
https://bugs.webkit.org/show_bug.cgi?id=154074
Summary
[cmake] Consolidate CMake code related to image decoders.
Konstantin Tokarev
Reported
2016-02-10 08:46:14 PST
Common image decoder sources, includes and libs are moved to WebCore/ImageDecoders.cmake.
Attachments
Patch
(8.64 KB, patch)
2016-02-10 08:50 PST
,
Konstantin Tokarev
no flags
Details
Formatted Diff
Diff
Patch
(8.54 KB, patch)
2016-02-10 09:03 PST
,
Konstantin Tokarev
no flags
Details
Formatted Diff
Diff
Patch
(8.61 KB, patch)
2016-02-10 11:51 PST
,
Konstantin Tokarev
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Konstantin Tokarev
Comment 1
2016-02-10 08:49:56 PST
Also, added include directories of libjpeg and libpng to WebCore_SYSTEM_INCLUDE_DIRECTORIES.
Konstantin Tokarev
Comment 2
2016-02-10 08:50:57 PST
Created
attachment 270992
[details]
Patch
Konstantin Tokarev
Comment 3
2016-02-10 09:03:59 PST
Created
attachment 270993
[details]
Patch
Alex Christensen
Comment 4
2016-02-10 10:51:22 PST
Comment on
attachment 270993
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=270993&action=review
> Source/WebCore/ChangeLog:17 > + * ImageDecoders.cmake: Added.
I don't have a strong opinion either way, but I know we've talked about making the WebCore directory less cluttered. I think it might be better to put this in WebCore/platform.
> Source/WebCore/ImageDecoders.cmake:29 > +if (JPEG_FOUND)
I think these should remain unconditional. We should have a hard failure if these aren't found.
Konstantin Tokarev
Comment 5
2016-02-10 10:58:19 PST
Comment on
attachment 270993
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=270993&action=review
>> Source/WebCore/ChangeLog:17 >> + * ImageDecoders.cmake: Added. > > I don't have a strong opinion either way, but I know we've talked about making the WebCore directory less cluttered. I think it might be better to put this in WebCore/platform.
I was afraid that WebCore/platform it may be lost between variouse source files, but I will move it there if you feel WebCore is not appropriate. Alternatively, there can be WebCore/cmake (though AFAIK such directories are usually created to store macros and other helper modules)
>> Source/WebCore/ImageDecoders.cmake:29 >> +if (JPEG_FOUND) > > I think these should remain unconditional. We should have a hard failure if these aren't found.
WinCairo does not use find_package for libjpeg and libpng, therefore repspective variables are empty. I thought it is not a good practice to append empty variables to the lists.
Konstantin Tokarev
Comment 6
2016-02-10 11:03:15 PST
Comment on
attachment 270993
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=270993&action=review
>>> Source/WebCore/ImageDecoders.cmake:29 >>> +if (JPEG_FOUND) >> >> I think these should remain unconditional. We should have a hard failure if these aren't found. > > WinCairo does not use find_package for libjpeg and libpng, therefore repspective variables are empty. I thought it is not a good practice to append empty variables to the lists.
BTW, hard failure is guaranteed by REQUIRED flag, set by ports in Options*.cmake when find_package is invoked.
Alex Christensen
Comment 7
2016-02-10 11:09:25 PST
(In reply to
comment #6
)
> Comment on
attachment 270993
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=270993&action=review
> > >>> Source/WebCore/ImageDecoders.cmake:29 > >>> +if (JPEG_FOUND) > >> > >> I think these should remain unconditional. We should have a hard failure if these aren't found. > > > > WinCairo does not use find_package for libjpeg and libpng, therefore repspective variables are empty. I thought it is not a good practice to append empty variables to the lists. > > BTW, hard failure is guaranteed by REQUIRED flag, set by ports in > Options*.cmake when find_package is invoked.
And JPEGImageDecoder.cpp is compiled unconditionally, so it won't link successfully if there is no library. I guess these if (*_FOUND) checks are ok. Just move the file to platform, then.
Konstantin Tokarev
Comment 8
2016-02-10 11:51:49 PST
Created
attachment 271016
[details]
Patch
Alex Christensen
Comment 9
2016-02-10 11:59:42 PST
Comment on
attachment 271016
[details]
Patch r=me, let's wait for ews before committing.
WebKit Commit Bot
Comment 10
2016-02-10 14:01:19 PST
Comment on
attachment 271016
[details]
Patch Clearing flags on attachment: 271016 Committed
r196394
: <
http://trac.webkit.org/changeset/196394
>
WebKit Commit Bot
Comment 11
2016-02-10 14:01:23 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug