RESOLVED FIXED202490
CMake-built WebKit.framework should launch XPC services successfully
https://bugs.webkit.org/show_bug.cgi?id=202490
Summary CMake-built WebKit.framework should launch XPC services successfully
Alex Christensen
Reported 2019-10-02 13:07:37 PDT
CMake-built WebKit.framework should launch XPC services successfully
Attachments
Patch (4.81 KB, patch)
2019-10-02 13:09 PDT, Alex Christensen
no flags
Patch (1.46 KB, patch)
2019-10-03 09:43 PDT, Yury Semikhatsky
no flags
Patch (2.12 KB, patch)
2019-10-03 10:52 PDT, Konstantin Tokarev
no flags
Alex Christensen
Comment 1 2019-10-02 13:09:23 PDT
Carlos Alberto Lopez Perez
Comment 2 2019-10-02 14:26:09 PDT
> https://trac.webkit.org/changeset/250625/webkit This broke one of our bots of minimum dependencies: https://build.webkit.org/builders/GTK%20Linux%2064-bit%20Release%20Ubuntu%20LTS%20%28Build%29/builds/25355/steps/compile-webkit/logs/stdio : > CMake Error at Source/WebKit/CMakeLists.txt:423 (target_link_options): > Unknown CMake command "target_link_options". > > > -- Configuring incomplete, errors occurred! It looks like target_link_options is supported only since CMake 3.13 Ubuntu 18.04 LTS has cmake 3.10, which is what we require as minimum version on the main CMakeLists.txt. Is it possible to re-work this patch to avoid using target_link_options? or if not, can be it only used by the Mac port?
Alex Christensen
Comment 3 2019-10-02 16:42:47 PDT
Followup: http://trac.webkit.org/r250638 Would it be sufficient to put if (APPLE) around the call, or would that bot still fail?
Konstantin Tokarev
Comment 4 2019-10-02 16:48:51 PDT
Comment on attachment 380050 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=380050&action=review > Source/WebKit/CMakeLists.txt:423 > +target_link_options(WebKit PRIVATE ${WebKit_LINK_OPTIONS}) FWIW, you can add necessary options inside PlatformMac.cmake, as WebKit target is available there
Yury Semikhatsky
Comment 5 2019-10-02 17:02:33 PDT
(In reply to Carlos Alberto Lopez Perez from comment #2) > It looks like target_link_options is supported only since CMake 3.13 > > Ubuntu 18.04 LTS has cmake 3.10, which is what we require as minimum version > on the main CMakeLists.txt. > > Is it possible to re-work this patch to avoid using target_link_options? or > if not, can be it only used by the Mac port? +1. I'm using Ubuntu 18.04 LTS with cmake 3.10.2 and WebKit GTK doesn't build anymore.
Carlos Alberto Lopez Perez
Comment 6 2019-10-02 18:28:09 PDT
(In reply to Alex Christensen from comment #3) > Followup: http://trac.webkit.org/r250638 > > Would it be sufficient to put if (APPLE) around the call, or would that bot > still fail? Yes, that would be sufficient :)
Yury Semikhatsky
Comment 7 2019-10-03 09:43:06 PDT
Konstantin Tokarev
Comment 8 2019-10-03 10:41:25 PDT
Comment on attachment 380124 [details] Patch I don't agree with this fix, for reasons mentioned above. Things specific to Mac port should go to PlatformMac.cmake, not spread around. Also, if (APPLE) condition will be true for WebKitGTK on macOS, which may have undesirable consequences.
Konstantin Tokarev
Comment 9 2019-10-03 10:52:56 PDT
Yury Semikhatsky
Comment 10 2019-10-03 11:01:27 PDT
Comment on attachment 380137 [details] Patch Yeah, this is better. btw, how can I build using cmake on Mac? build-webkit doesn't seem ti use it.
Yury Semikhatsky
Comment 11 2019-10-03 11:01:37 PDT
Yeah, this is better. btw, how can I build using cmake on Mac? build-webkit doesn't seem ti use it.
Konstantin Tokarev
Comment 12 2019-10-03 11:02:59 PDT
Do you want to build Mac port or GTK port? If former, try --cmake switch (at least it used to work in the past)
Yury Semikhatsky
Comment 13 2019-10-03 11:08:12 PDT
(In reply to Konstantin Tokarev from comment #12) > Do you want to build Mac port or GTK port? If former, try --cmake switch (at > least it used to work in the past) Thanks for the pointer. --cmake option seems to be missing in the output of build-webkit --help which is why I couldn't find it. I was thinking about building Mac port as I wasn't able to build GTK on Mac in the past for various dependency problems, not sure what state it is in.
Carlos Alberto Lopez Perez
Comment 14 2019-10-03 11:11:08 PDT
Comment on attachment 380137 [details] Patch Yeah! much better. Thanks!
Konstantin Tokarev
Comment 15 2019-10-03 11:16:01 PDT
Comment on attachment 380137 [details] Patch Clearing flags on attachment: 380137 Committed r250664: <https://trac.webkit.org/changeset/250664>
Konstantin Tokarev
Comment 16 2019-10-03 11:16:07 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 17 2019-10-03 11:17:47 PDT
Note You need to log in before you can comment on or make changes to this bug.