RESOLVED FIXED 146590
[GTK] Disable gtk-doc and gobject-introspection when crossbuilding
https://bugs.webkit.org/show_bug.cgi?id=146590
Summary [GTK] Disable gtk-doc and gobject-introspection when crossbuilding
Emanuele Aina
Reported 2015-07-03 06:27:44 PDT
Neither gtk-doc nor gobject-introspection really work when cross-building, let's just disable them when cmake says we're cross-compiling. Note that in the gtk-doc case, at the moment it is not possible to avoid it even by setting ENABLE_GTKDOC=OFF, since even then it is run as a syntax-check: https://trac.webkit.org/browser/trunk/Source/PlatformGTK.cmake#L35
Attachments
Patch (2.59 KB, patch)
2015-07-03 06:46 PDT, Emanuele Aina
no flags
Patch (2.27 KB, patch)
2015-07-03 08:01 PDT, Emanuele Aina
no flags
Emanuele Aina
Comment 1 2015-07-03 06:46:28 PDT
Martin Robinson
Comment 2 2015-07-03 07:34:42 PDT
Comment on attachment 256099 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=256099&action=review > Source/cmake/OptionsGTK.cmake:73 > +# Override the cached variables, gtk-doc and gobject-introspection do not really work when cross-building > +if (CMAKE_CROSSCOMPILING) > + set(ENABLE_GTKDOC OFF) > + set(ENABLE_INTROSPECTION OFF) > +endif () Lets move this down to after the USE_LIBHYPHEN check near line 429. It's a bit strange to do this in the middle of the definition of all the options.
Emanuele Aina
Comment 3 2015-07-03 08:01:47 PDT
Emanuele Aina
Comment 4 2015-07-03 08:04:40 PDT
> Lets move this down to after the USE_LIBHYPHEN check near line 429. It's a bit strange to do this in the middle of the definition of all the options. Indeed, I wasn't sure if it was better to keep the override close to the original definition or move it in a more appropriate place. I've updated the patch and took the liberty of listing you as reviewer in the ChangeLog (is it correct to do so?).
Martin Robinson
Comment 5 2015-07-03 08:12:53 PDT
(In reply to comment #4) > > Lets move this down to after the USE_LIBHYPHEN check near line 429. It's a bit strange to do this in the middle of the definition of all the options. > > Indeed, I wasn't sure if it was better to keep the override close to the > original definition or move it in a more appropriate place. > > I've updated the patch and took the liberty of listing you as reviewer in > the ChangeLog (is it correct to do so?). It usually isn't necessary. The tools typically fill it in by reading who attaches the r+ in Bugzilla.
Martin Robinson
Comment 6 2015-07-03 08:15:07 PDT
Martin Robinson
Comment 7 2015-07-03 08:16:10 PDT
Thanks for the patch! I took the liberty of landing it.
Emanuele Aina
Comment 8 2015-07-03 08:21:33 PDT
Thanks! :D
Note You need to log in before you can comment on or make changes to this bug.