[webkit-gtk] Porting complicated autotools build setup to cmake

Rob robert.swain at gmail.com
Sun Sep 28 01:25:29 PDT 2014


With webkitgtk releases < 2.6.0 I was setting a bunch of CFLAGS, CXXFLAGS,
LDFLAGS, AR_FLAGS, individual package CFLAGS and LDFLAGS (e.g.
FREETYPE_CFLAGS and FREETYPE_LIBS) etc etc and then I was building as

    cp -R ${home}/$BUILD_DIR/DerivedSources .
    mkdir -p ${installdir}/lib
    ${home}/$BUILD_DIR/configure \
        --prefix=$PREFIX \
        --host=${target_triple} \
        ${platform_configure_flags} \
        --enable-static \
        --disable-shared \
        --disable-glibtest \
        --disable-x11-target \
        --disable-credential-storage \
        --disable-geolocation \
        --disable-video \
        --disable-web-audio \
    && make jsc
    DESTDIR=${installdir} make install-libjavascriptcoregtk_3_0_laHEADERS \
    && cp .libs/libjavascriptcoregtk-3.0.a ${installdir}/lib

I would like to port this build method from autotools / configure to cmake
so that I can build webkitgtk 2.6.0. So far, the most information I have is


Does setting CFLAGS and so on work as before? Even for specific packages

How do I port over all the --enable and --disable configure flags? I expect
it's through some kind of -D<flag>=<value> but I'm not sure and not sure
where to find them.

How do I build just JavaScriptCore?

Also, I will be building this for a variety of platforms so if there is
anything platform specific that is needed, that would also be welcome. With
autotools it was just a case of specifying various necessary flags in

Many thanks in advance.

Kind regards,
Rob Swain
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-gtk/attachments/20140928/9c6a7ed4/attachment-0001.html>

More information about the webkit-gtk mailing list