mirror of
https://gitee.com/drabel/LibQQt.git
synced 2025-01-04 10:18:44 +08:00
complete win build (mingw32 Qt5.9.1 static)
This commit is contained in:
parent
4620a916d0
commit
577ad22dcc
60
src/qqt.pro
60
src/qqt.pro
@ -3,21 +3,16 @@
|
||||
# Project created by QtCreator 2016-03-24T14:08:11
|
||||
#
|
||||
#-------------------------------------------------
|
||||
#default
|
||||
greaterThan(QT_MAJOR_VERSION, 4): {
|
||||
for (cc, $$CONFIG) {
|
||||
message($${TARGET} configed $${cc})
|
||||
}
|
||||
for (cc, $$DEFINES) {
|
||||
message($${TARGET} defined $${cc})
|
||||
}
|
||||
} else {
|
||||
message ($${TARGET} configed $${CONFIG})
|
||||
message ($${TARGET} defined $${DEFINES})
|
||||
}
|
||||
|
||||
#################################################################
|
||||
##project
|
||||
#################################################################
|
||||
TARGET = QQt
|
||||
TEMPLATE = lib
|
||||
#QQT LIBRARY (DLL)
|
||||
#DEFINES += QQT_LIBRARY
|
||||
CONFIG += dll
|
||||
DEFINES += QQT_LIBRARY
|
||||
|
||||
#################################################################
|
||||
##project version
|
||||
@ -29,38 +24,57 @@ TARGET_BUILD_VERSION = 0
|
||||
TARGET_VERSION = $${TARGET_MAJOR_VERSION}.$${TARGET_MINOR_VERSION}.$${TARGET_PATCH_VERSION}
|
||||
TARGET_VERSION4 = $${TARGET_MAJOR_VERSION}.$${TARGET_MINOR_VERSION}.$${TARGET_PATCH_VERSION}.$${TARGET_BUILD_VERSION}
|
||||
unix:VERSION = $${TARGET_VERSION}
|
||||
win32:VERSION = $${TARGET_VERSION4}
|
||||
#bug?:open this macro, TARGET will suffixed with major version.
|
||||
#win32:VERSION = $${TARGET_VERSION4}
|
||||
|
||||
QMAKE_TARGET_FILE = "$${TARGET}"
|
||||
QMAKE_TARGET_PRODUCT = "$${TARGET}"
|
||||
QMAKE_TARGET_COMPANY = "www.qqt.com"
|
||||
QMAKE_TARGET_DESCRIPTION = "QQt Foundation Class"
|
||||
QMAKE_TARGET_COPYRIGHT = "Copyright 2015-2020 QQT Co., Ltd. All rights reserved"
|
||||
|
||||
win32 {
|
||||
#RC_FILE += qrc://qqt.rc
|
||||
#common to use upload, this can be ignored.
|
||||
#RC_FILE += qqt.rc
|
||||
#RC_ICONS=
|
||||
RC_LANG=0x0004
|
||||
RC_CODEPAGE=
|
||||
}
|
||||
|
||||
#QQT LIBRARY (DLL)
|
||||
#DEFINES += QQT_LIBRARY
|
||||
DEFINES += QQT_LIBRARY
|
||||
|
||||
include ($$PWD/qqt_header.pri)
|
||||
include ($$PWD/qqt_source.pri)
|
||||
#################################################################
|
||||
##project environ
|
||||
#################################################################
|
||||
#default
|
||||
greaterThan(QT_MAJOR_VERSION, 4): {
|
||||
for (cc, CONFIG) {
|
||||
message($${TARGET} configed $${cc})
|
||||
}
|
||||
for (cc, DEFINES) {
|
||||
message($${TARGET} defined $${cc})
|
||||
}
|
||||
} else {
|
||||
message ($${TARGET} configed $${CONFIG})
|
||||
message ($${TARGET} defined $${DEFINES})
|
||||
}
|
||||
|
||||
#################################################################
|
||||
##project source
|
||||
#################################################################
|
||||
equals(QKIT_, macOS) {
|
||||
CONFIG += dll
|
||||
CONFIG += lib_bundle
|
||||
} else:equals(QKIT_, iOS) {
|
||||
#DEFINES -= QQT_LIBRARY
|
||||
DEFINES -= QQT_LIBRARY
|
||||
CONFIG -= dll
|
||||
CONFIG += staticlib
|
||||
} else:equals(QKIT_, WIN) {
|
||||
DEFINES -= QQT_LIBRARY
|
||||
CONFIG -= dll
|
||||
CONFIG -= lib_bundle
|
||||
CONFIG += staticlib
|
||||
}
|
||||
#CONFIG += debug_and_release
|
||||
#CONFIG += build_all
|
||||
include ($$PWD/qqt_header.pri)
|
||||
include ($$PWD/qqt_source.pri)
|
||||
|
||||
|
||||
############
|
||||
|
12
src/qqt.rc
12
src/qqt.rc
@ -1,8 +1,12 @@
|
||||
#include "winres.h"
|
||||
#include "qqtversion.h"
|
||||
# if defined (UNDER_CE)
|
||||
# include <winbase.h>
|
||||
# else
|
||||
# include <windows.h>
|
||||
# endif
|
||||
# include "qqtversion.h"
|
||||
|
||||
// 图标
|
||||
IDI_ICON1 ICON PRODUCT_ICON
|
||||
/*IDI_ICON1 ICON PRODUCT_ICON*/
|
||||
|
||||
// 版本信息
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
@ -36,4 +40,4 @@ BEGIN
|
||||
BEGIN
|
||||
VALUE "Translation", 0x804, 1200
|
||||
END
|
||||
END
|
||||
END
|
||||
|
@ -124,11 +124,10 @@ greaterThan(QT_MAJOR_VERSION, 4): DEFINES += __QT5__
|
||||
#################################################################
|
||||
##variables
|
||||
#################################################################
|
||||
CONFIG(debug, debug|release) {
|
||||
BUILD=Debug
|
||||
} else {
|
||||
BUILD=Release
|
||||
}
|
||||
CONFIG(debug, debug|profile|release):BUILD=Debug
|
||||
CONFIG(profile, debug|profile|release):BUILD=Profile
|
||||
CONFIG(release, debug|profile|release):BUILD=Release
|
||||
|
||||
equals(QKIT_, MIPS32) {
|
||||
SYSNAME = Mips32
|
||||
} else:equals(QKIT_, LINUX) {
|
||||
|
@ -1,22 +1,22 @@
|
||||
#ifndef QQTVERSION_H
|
||||
#define QQTVERSION_H
|
||||
|
||||
#define PRODUCT_ICON "qqt.ico"
|
||||
#define PRODUCT_ICON "qqt.ico"
|
||||
|
||||
#define FILE_VERSION 1,3,0,0
|
||||
#define FILE_VERSION_STR "1.3.0.0"
|
||||
#define FILE_DESCRIPTION "QQT"
|
||||
#define FILE_DESCRIPTION "QQt"
|
||||
|
||||
#define PRODUCT_VERSION 1.3
|
||||
#define PRODUCT_VERSION 1,3
|
||||
#define PRODUCT_VERSION_MAJOR 1
|
||||
#define PRODUCT_VERSION_STR "1.3"
|
||||
#define PRODUCT_VERSION_MAJOR_STR "1"
|
||||
#define PRODUCT_NAME "QQT"
|
||||
#define PRODUCT_NAME "QQt"
|
||||
|
||||
#define COMPANY_NAME "QQT"
|
||||
#define INTERNAL_NAME "QQT"
|
||||
#define ORIGINAL_FILE_NAME "QQT"
|
||||
#define LEGAL_COPYRIGHT "Copyright 2007-2017 QQT Co., Ltd."
|
||||
#define COMPANY_NAME "QQt"
|
||||
#define INTERNAL_NAME "QQt"
|
||||
#define ORIGINAL_FILE_NAME "QQt"
|
||||
#define LEGAL_COPYRIGHT "Copyright 2007-2017 QQt Co., Ltd."
|
||||
#define LEGAL_TRADE_MARKS1 "All rights reserved"
|
||||
#define LEGALTRADEMARKS2 "All rights reserved"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user