Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-123398

Easy way to build only minimal set of host tools

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.5
    • Build System: CMake
    • None

    Description

      Is there an easy way to build only the minimum required host tools to cross build for android abis?

      For now I'm using a very complex formula to avoid building a lot of things but this is rather empirical. It will compile ~4679 files (reported by ninja progress counter)

      Is there an easy configure option to build only the minimal required host tools?

      These are the cmake options that I'm using currently to build the host tools (it's a "superbuild")

      	  --log-level=STATUS \
      	  $(extra_cmake_args_host) \
      	  -DCMAKE_INSTALL_PREFIX=/usr \
      	  -DINSTALL_BINDIR=lib/${HOST_PKG_DIRNAME}/bin \
      	  -DINSTALL_LIBDIR=lib/$(DEB_HOST_MULTIARCH)/${HOST_PKG_DIRNAME} \
      	  -DINSTALL_LIBEXECDIR=lib/$(DEB_HOST_MULTIARCH)/${HOST_PKG_DIRNAME}/libexec \
      	  -DINSTALL_ARCHDATADIR=lib/$(DEB_HOST_MULTIARCH)/${HOST_PKG_DIRNAME} \
      	  -DINSTALL_EXAMPLESDIR=lib/$(DEB_HOST_MULTIARCH)/${HOST_PKG_DIRNAME}/examples \
      	  -DINSTALL_DATADIR=share/${HOST_PKG_DIRNAME} \
      	  -DINSTALL_DESCRIPTIONSDIR=share/${HOST_PKG_DIRNAME}/modules \
      	  -DINSTALL_DOCDIR=share/${HOST_PKG_DIRNAME}/doc \
      	  -DINSTALL_SYSCONFDIR=lib/${HOST_PKG_DIRNAME}/etc/xdg \
      	  -DINSTALL_INCLUDEDIR=include/$(DEB_HOST_MULTIARCH)/${HOST_PKG_DIRNAME} \
      	  -DINSTALL_PLUGINSDIR=lib/$(DEB_HOST_MULTIARCH)/${HOST_PKG_DIRNAME}/plugins \
      	  -DINSTALL_TESTSDIR=lib/$(DEB_HOST_MULTIARCH)/${HOST_PKG_DIRNAME}/tests \
      	  -DINSTALL_TRANSLATIONSDIR=share/${HOST_PKG_DIRNAME}/translations \
      	  -DINSTALL_MKSPECSDIR=lib/$(DEB_HOST_MULTIARCH)/${HOST_PKG_DIRNAME}/mkspecs \
      	  -DINSTALL_PUBLICBINDIR=lib/${HOST_PKG_DIRNAME}/bin \
      	  -DBUILD_WITH_PCH=OFF \
      	  -DBUILD_qt3d=OFF \
      	  -DBUILD_qt5compat=OFF \
      	  -DBUILD_qtactiveqt=OFF \
      	    -DBUILD_qtbase=ON \
      	  -DBUILD_qtcharts=OFF \
      	  -DBUILD_qtcoap=OFF \
      	  -DBUILD_qtconnectivity=OFF \
      	  -DBUILD_qtdatavis3d=OFF \
      	    -DBUILD_qtdeclarative=ON \
      	  -DBUILD_qtdoc=OFF \
      	  -DBUILD_qtgraphs=OFF \
      	  -DBUILD_qtgrpc=OFF \
      	  -DBUILD_qthttpserver=OFF \
      	  -DBUILD_qtimageformats=OFF \
      	  -DBUILD_qtlanguageserver=OFF \
      	  -DBUILD_qtlocation=OFF \
      	  -DBUILD_qtlottie=OFF \
      	  -DBUILD_qtmqtt=OFF \
      	  -DBUILD_qtmultimedia=OFF \
      	  -DBUILD_qtnetworkauth=OFF \
      	    -DBUILD_qtopcua=ON \
      	  -DBUILD_qtpositioning=OFF \
      	    -DBUILD_qtquick3d=ON \
      	  -DBUILD_qtquick3dphysics=OFF \
      	  -DBUILD_qtquickeffectmaker=OFF \
      	  -DBUILD_qtquicktimeline=OFF \
      	    -DBUILD_qtremoteobjects=ON \
      	    -DBUILD_qtscxml=ON \
      	  -DBUILD_qtsensors=OFF \
      	  -DBUILD_qtserialbus=OFF \
      	  -DBUILD_qtserialport=OFF \
      	    -DBUILD_qtshadertools=ON \
      	  -DBUILD_qtspeech=OFF \
      	  -DBUILD_qtsvg=OFF \
      	    -DBUILD_qttools=ON \
      	  -DBUILD_qttranslations=OFF \
      	  -DBUILD_qtvirtualkeyboard=OFF \
      	  -DBUILD_qtwayland=OFF \
      	  -DBUILD_qtwebchannel=OFF \
      	  -DBUILD_qtwebengine=OFF \
      	  -DBUILD_qtwebsockets=OFF \
      	  -DBUILD_qtwebview=OFF \
      	  -DFEATURE_accessibility=OFF \
      	  -DFEATURE_assistant=ON \
      	  -DFEATURE_brotli=OFF \
      	  -DFEATURE_calendarwidget=ON \
      	  -DFEATURE_concurrent=ON \
      	  -DFEATURE_contextmenu=ON \
      	  -DFEATURE_cssparser=ON \
      	  -DFEATURE_cups=OFF \
      	  -DFEATURE_cursor=ON \
      	  -DFEATURE_dbus=OFF \
      	  -DFEATURE_designer=OFF \
      	  -DFEATURE_egl=OFF \
      	  -DFEATURE_evdev=OFF \
      	  -DFEATURE_fontconfig=OFF \
      	  -DFEATURE_fontdialog=OFF \
      	  -DFEATURE_freetype=OFF \
      	  -DFEATURE_gds=OFF \
      	  -DFEATURE_gif=OFF \
      	  -DFEATURE_glib=OFF \
      	  -DFEATURE_graphicseffect=OFF \
      	  -DFEATURE_graphicsview=ON \
      	  -DFEATURE_gssapi=OFF \
      	  -DFEATURE_gtk3=OFF \
      	  -DFEATURE_harfbuzz=OFF \
      	  -DFEATURE_http=OFF \
      	  -DFEATURE_ico=OFF \
      	  -DFEATURE_icu=OFF \
      	  -DFEATURE_islamiccivilcalendar=OFF \
      	  -DFEATURE_jalalicalendar=OFF \
      	  -DFEATURE_jpeg=OFF \
      	  -DFEATURE_libinput=OFF \
      	  -DFEATURE_libinput_hires_wheel_support=OFF \
      	  -DFEATURE_linuxfb=OFF \
      	  -DFEATURE_movie=OFF \
      	  -DFEATURE_mtdev=OFF \
      	  -DFEATURE_network=ON \
      	  -DFEATURE_open62541=OFF \
      	  -DFEATURE_openssl=OFF \
      	  -DFEATURE_pdf=ON \
      	  -DFEATURE_pkg_config=OFF \
      	  -DFEATURE_printsupport=ON \
      	  -DFEATURE_qml_debug=ON \
      	  -DFEATURE_qml_delegate_model=ON \
      	  -DFEATURE_qml_jit=OFF \
      	  -DFEATURE_qml_list_model=OFF \
      	  -DFEATURE_qml_locale=ON \
      	  -DFEATURE_qml_network=ON \
      	  -DFEATURE_qml_preview=OFF \
      	  -DFEATURE_qml_profiler=OFF \
      	  -DFEATURE_qml_worker_script=OFF \
      	  -DFEATURE_qml_xml_http_request=OFF \
      	  -DFEATURE_qml_xmllistmodel=OFF \
      	  -DFEATURE_quick3d_assimp=OFF \
      	  -DFEATURE_quick_designer=OFF \
      	  -DFEATURE_quick_draganddrop=ON \
      	  -DFEATURE_quick_particles=OFF \
      	  -DFEATURE_quick_path=OFF \
      	  -DFEATURE_quickcontrols2_basic=OFF \
      	  -DFEATURE_quickcontrols2_fusion=OFF \
      	  -DFEATURE_quickcontrols2_imagine=OFF \
      	  -DFEATURE_quickcontrols2_ios=OFF \
      	  -DFEATURE_quickcontrols2_macos=OFF \
      	  -DFEATURE_quickcontrols2_material=OFF \
      	  -DFEATURE_quickcontrols2_universal=OFF \
      	  -DFEATURE_quickcontrols2_windows=OFF \
      	  -DFEATURE_quicktemplates2_calendar=OFF \
      	  -DFEATURE_quicktemplates2_hover=OFF \
      	  -DFEATURE_quicktemplates2_multitouch=OFF \
      	  -DFEATURE_regularexpression=ON \
      	  -DFEATURE_scxml_ecmascriptdatamodel=OFF \
      	  -DFEATURE_sessionmanager=OFF \
      	  -DFEATURE_sql=ON \
      	  -DFEATURE_sql_db2=OFF \
      	  -DFEATURE_sql_ibase=OFF \
      	  -DFEATURE_sql_mysql=OFF \
      	  -DFEATURE_sql_oci=OFF \
      	  -DFEATURE_sql_odbc=OFF \
      	  -DFEATURE_sql_psql=OFF \
      	  -DFEATURE_sql_sqlite=ON \
      	  -DFEATURE_sqlmodel=OFF \
      	  -DFEATURE_ssl=OFF \
      	  -DFEATURE_style_fusion=OFF \
      	  -DFEATURE_style_stylesheet=ON \
      	  -DFEATURE_style_windows=ON \
      	  -DFEATURE_system_doubleconversion=ON \
      	  -DFEATURE_system_libb2=ON \
      	  -DFEATURE_system_open62541=OFF \
      	  -DFEATURE_system_pcre2=ON \
      	  -DFEATURE_system_png=ON \
      	  -DFEATURE_system_zlib=ON \
      	  -DFEATURE_testlib=ON \
      	  -DFEATURE_texthtmlparser=ON \
      	  -DFEATURE_textmarkdownreader=OFF \
      	  -DFEATURE_textmarkdownwriter=OFF \
      	  -DFEATURE_textodfwriter=OFF \
      	  -DFEATURE_tslib=OFF \
      	  -DFEATURE_vnc=OFF \
      	  -DFEATURE_vulkan=OFF \
      	  -DFEATURE_widgets=ON \
      	  -DFEATURE_xkbcommon=OFF \
      	  -DFEATURE_xkbcommon_x11=OFF \
      	  -DFEATURE_xlib=OFF \
      	  -DFEATURE_xml=ON \
      	  -DFEATURE_zstd=OFF \
      	  -DINPUT_opengl=no \
      	  -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON
      

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              qtbuildsystem Qt Build System Team
              ban F S
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes