<div dir="ltr">Hello,<div><br></div><div>With webkitgtk releases &lt; 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 follows:</div><div><br></div><div><div>    cp -R ${home}/$BUILD_DIR/DerivedSources .</div><div>    mkdir -p ${installdir}/lib</div><div>    ${home}/$BUILD_DIR/configure \</div><div>        --prefix=$PREFIX \</div><div>        --host=${target_triple} \</div><div>        ${platform_configure_flags} \</div><div>        --enable-static \</div><div>        --disable-shared \</div><div>        --disable-glibtest \</div><div>        --disable-x11-target \</div><div>        --disable-credential-storage \</div><div>        --disable-geolocation \</div><div>        --disable-video \</div><div>        --disable-web-audio \</div><div>    &amp;&amp; make jsc</div><div>    DESTDIR=${installdir} make install-libjavascriptcoregtk_3_0_laHEADERS \</div><div>    &amp;&amp; cp .libs/libjavascriptcoregtk-3.0.a ${installdir}/lib</div></div><div><br></div><div>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 (from <a href="http://blogs.igalia.com/carlosgc/2014/08/01/webkitgtk-2-5-1-good-bye-webkit1/">http://blogs.igalia.com/carlosgc/2014/08/01/webkitgtk-2-5-1-good-bye-webkit1/</a> ):</div><div><br></div><div><pre style="margin-top:5px;margin-bottom:5px;padding:8px 12px 8px 36px;background-image:url(http://blogs.igalia.com/carlosgc/wp-content/themes/inove-igalia/img/blockquote.gif);background-color:rgb(244,245,247);border:1px dashed rgb(204,204,204);color:rgb(85,85,85);line-height:17.399999618530273px;font-size:10px;background-repeat:no-repeat no-repeat">cmake -DCMAKE_INSTALL_PREFIX= -DCMAKE_INSTALL_LIBDIR=lib -DPORT=GTK \
-DCMAKE_BUILD_TYPE=Release .</pre></div><div><br></div><div>Does setting CFLAGS and so on work as before? Even for specific packages like FREETYPE_CFLAGS?</div><div><br></div><div>How do I port over all the --enable and --disable configure flags? I expect it&#39;s through some kind of -D&lt;flag&gt;=&lt;value&gt; but I&#39;m not sure and not sure where to find them.</div><div><br></div><div>How do I build just JavaScriptCore?</div><div><br></div><div>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 CFLAGS and LDFLAGS.</div><div><br></div><div>Many thanks in advance.</div><div><br></div><div>Kind regards,</div><div>Rob Swain</div></div>