Qt5.15.2 Webassembly source code clipping and compilation

Step 1: 
    .\configure -debug-and-release -opensource -prefix "D:\qt-everywhere-src\compFile" -platform win32-g++ -nomake examples Step 2: mingw32-make -j4
Step
    3
:
    mingw32-make install
 

Default from core:
    C:\Qt\5.15.2\yuanma\qt-everywhere-src-5.15.2\qtbase\src\from
    C:\Qt\5.15.2\yuanma\qt-everywhere-src-5.15 .2\qtbase\src\corelib

Cutting the Qt source code library
    1. The .gitmodules file under the source code library defines the submodules included in Qt;
        qt.pro traverses the file to obtain the modules to be compiled;
        then sort_depends according to the dependencies, put the libraries to be compiled into SUBDIRS in order ;

    2. Go to the qtbase/src directory, SUBDIRS defines the included modules; delete unnecessary modules;
       src.pro defines subdirs, delete here and compile; TEMPLATE = subdirs

       sync.profile defines 
       qtbase.pro SUBDIRS += qmake/qmake-aux.pro doc
       makefile Why does it also include test example 

Successful command:
first step successful command:
    54.1M
    .\configure -prefix D:\test\qweq\comp -no-warnings-are-errors -xplatform wasm-emscripten -platform win32-g++ -nomake examples -opensource -confirm- license -no-directfb -no-angle -no-harfbuzz -no-libpng -no-freetype -no-dbus -no-widgets
    mingw32-make -j16
    mingw32-make install
    mingw32-make clean
part 2: try to remove qttest close network

    .\configure -prefix D:\test\qweq\comp -no-warnings-are-errors -xplatform wasm-emscripten -platform win32-g++ -nomake examples -nomake tests -opensource -confirm-license -no-directfb -no-angle -no-harfbuzz -no-libpng -no-freetype -no-dbus -no-widgets 

    -nomake tests 无效
    testlib ok
    src_openglextensions ok
    angle ok
    zlib ok
    qtConfig(xml): SUBDIRS += src_xml
    network   49.4M

Supongo que te gusta

Origin blog.csdn.net/u012151242/article/details/131332452
Recomendado
Clasificación