@echo off
set Component=
REM set Component=%Component% -skip qtbase
set Component=%Component% -skip qtnetworkauth
set Component=%Component% -skip qtmacextras
set Component=%Component% -skip qtx11extras
set Component=%Component% -skip qtandroidextras
set Component=%Component% -skip qtserialport
set Component=%Component% -skip qtserialbus
set Component=%Component% -skip qtimageformats
set Component=%Component% -skip qtactiveqt
set Component=%Component% -skip qtsvg
set Component=%Component% -skip qtdeclarative
set Component=%Component% -skip qtremoteobjects
set Component=%Component% -skip qtscxml
set Component=%Component% -skip qtpurchasing
set Component=%Component% -skip qtcanvas3d
set Component=%Component% -skip qtwebsockets
set Component=%Component% -skip qtwebglplugin
set Component=%Component% -skip qtwebchannel
set Component=%Component% -skip qtgamepad
set Component=%Component% -skip qt3d
set Component=%Component% -skip qtwayland
set Component=%Component% -skip qtconnectivity
set Component=%Component% -skip qtsensors
set Component=%Component% -skip qtgraphicaleffects
set Component=%Component% -skip qtquickcontrols2
set Component=%Component% -skip qtquickcontrols
set Component=%Component% -skip qtlocation
set Component=%Component% -skip qtxmlpatterns
set Component=%Component% -skip qtmultimedia
set Component=%Component% -skip qtspeech
set Component=%Component% -skip qtvirtualkeyboard
set Component=%Component% -skip qtdatavis3d
REM set Component=%Component% -skip qtcharts
set Component=%Component% -skip qtwinextras
REM set Component=%Component% -skip qttools
set Component=%Component% -skip qtscript
set Component=%Component% -skip qtwebengine
set Component=%Component% -skip qtwebview
REM set Component=%Component% -skip qttranslations REM 依赖 qttools
set Component=%Component% -skip qtdoc
echo configure -prefix E:\\QtBuild -debug -opensource -shared -opengl dynamic -platform win32-msvc -c++std c++11 %Component% -nomake examples -nomake tests -mp -confirm-license
~Src\MakeFile里查看编译模块信息
SUBTARGETS = \
module-qtbase \
module-qtcharts \
module-qttools \
module-qttranslations
-prefix 生成目标库的目录
-release 生成release版本 -debug 生成debug版本 -debug-and-release生成debug和release版本
-opensource 编译开源版 -commercial 编译商业版 (参数可选)
-static 生成静态库lib文件 -shared 生成动态库dll文件
- static库编译修改msvc-desktop.conf中的MD/MDd为MT/MTd
-force-debug-info 强制生成调试信息 (参数可选)这个参数是让Qt release版本也生成.pdb文件
-platform win32-msvc 目标库运行平台
-skip 跳过该模块
-nomake 不编译该模块
-mp 启动多核编译