1
0
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:
tianduanrui 2018-05-14 18:21:53 +08:00
parent 61bc9a5da8
commit 9249ffef83
3 changed files with 15 additions and 8 deletions

View File

@ -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) {

View File

@ -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"

View File

@ -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
#这个功能可用,可是编译问题比较多,不方便,所以默认不开开。
}
#################################################################