mirror of
https://gitee.com/drabel/LibQQt.git
synced 2025-01-04 10:18:44 +08:00
v2.4 fix creator msvc cc env
This commit is contained in:
parent
61bc9a5da8
commit
9249ffef83
@ -24,6 +24,7 @@ defineReplace(deploy_app_on_win) {
|
||||
command += $$MK_DIR $${APP_DEPLOY_PWD} $$CMD_SEP
|
||||
command += $$RM $${APP_DEPLOY_PWD}\\$${TARGET}.exe $$CMD_SEP
|
||||
command += $$COPY $${QQT_BUILD_PWD}\\QQt.dll $${APP_DEPLOY_PWD}\\QQt.dll $$CMD_SEP
|
||||
msvc:command += $$COPY_DIR $${QQT_BUILD_PWD}\\QQt.* $${APP_DEST_DIR} $$CMD_SEP
|
||||
command += $$COPY $${APP_DEST_DIR}\\$${TARGET}.exe $${APP_DEPLOY_PWD}\\$${TARGET}.exe $$CMD_SEP
|
||||
#all windows need deploy release version?
|
||||
equals(BUILD, Debug) {
|
||||
|
@ -19,12 +19,16 @@
|
||||
#include "qqt-qt.h"
|
||||
#include <qqt-local.h>
|
||||
|
||||
//加在qqt_header.pri里面了。
|
||||
//#ifdef Q_OS_WIN
|
||||
//#if _MSC_VER >= 1600
|
||||
//#pragma execution_character_set("utf-8")
|
||||
//#endif
|
||||
//#endif
|
||||
#ifndef __MSVC_UTF8_SUPPORT__
|
||||
//在源码里有这个定义以外,还要求源文件为utf-8 with bom格式
|
||||
//加在qqt_header.pri里面了,就一下子充分解决了。
|
||||
//这个定义和CCFLAGS是冲突的,不能并存,只能定义一边。一般选择CCFLAGS。
|
||||
#ifdef Q_OS_WIN
|
||||
#if _MSC_VER >= 1600
|
||||
#pragma execution_character_set("utf-8")
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(__WIN32__) || defined(__WIN64__)
|
||||
#include "qqtwin.h"
|
||||
|
@ -41,8 +41,9 @@ msvc {
|
||||
|
||||
#UTF8编码
|
||||
DEFINES += __MSVC_UTF8_SUPPORT__
|
||||
msvc:MSVC_CCFLAGS += -execution-charset:utf-8
|
||||
msvc:MSVC_CCFLAGS += -source-charset:utf-8
|
||||
msvc:MSVC_CCFLAGS += /execution-charset:utf-8
|
||||
msvc:MSVC_CCFLAGS += /source-charset:utf-8
|
||||
#msvc:MSVC_CCFLAGS += /utf-8 #这一个是快捷方式,顶上边两个。
|
||||
|
||||
#指定/mp编译选项,编译器将使用并行编译,同时起多个编译进程并行编译不同的cpp
|
||||
msvc:MSVC_CCFLAGS += /MP
|
||||
@ -55,6 +56,7 @@ msvc {
|
||||
#在.pro 文件中加入一行, 加在这里,加速编译。
|
||||
#msvc:PRECOMPILED_HEADER = $${PWD}/qqt-qt.h
|
||||
#指出:precompiler header只能用于MSVC
|
||||
#这个功能可用,可是编译问题比较多,不方便,所以默认不开开。
|
||||
}
|
||||
|
||||
#################################################################
|
||||
|
Loading…
x
Reference in New Issue
Block a user