qmake && make
:默认是release。但如果.pro内添加了CONFIG+=debug
,那么结果是debug。qmake CONFIG+=debug && make
:构建结果一定是 debugqmake CONFIG+=release && make
:构建结果一定是 releaseCONFIG+=debug_and_release
-
qmake && make debug
:构建结果是 debug -
qmake && make release
:构建结果是 release
CONFIG += debug release debug release debug
:要好好理解CONFIG(debug, debug|release)
:很有用,很常用,也很晦涩难懂build_pass
:看是是否需要