mirror of
https://github.com/jaredtao/TaoQuick.git
synced 2025-01-19 20:22:56 +08:00
Merge branch 'master' of https://github.com/jaredtao/TaoQuick
# Conflicts: # src/src.pro
This commit is contained in:
commit
fddaab17cc
@ -1,5 +1,6 @@
|
|||||||
[English](README-en.md)
|
[English](README-en.md)
|
||||||
|
|
||||||
|
[gitee镜像:https://gitee.com/jaredtao/TaoQuick](https://gitee.com/jaredtao/TaoQuick)
|
||||||
-------------------------------------------------------------
|
-------------------------------------------------------------
|
||||||
|
|
||||||
# 目录
|
# 目录
|
||||||
|
@ -5,4 +5,5 @@ SUBDIRS += \
|
|||||||
OTHER_FILES += README.md \
|
OTHER_FILES += README.md \
|
||||||
Install.md \
|
Install.md \
|
||||||
.clang-format \
|
.clang-format \
|
||||||
LICENSE
|
LICENSE \
|
||||||
|
.github/workflows/*
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import QtQuick 2.12
|
import QtQuick 2.12
|
||||||
import QtQuick.Controls 2.12
|
import QtQuick.Controls 2.12
|
||||||
import "./Effects"
|
import "./Effects"
|
||||||
TRingPage {
|
TRingPage {
|
||||||
|
@ -8,7 +8,7 @@ void TaoQuickPlugin::registerTypes(const char *uri)
|
|||||||
qInfo() << "\033[35m"
|
qInfo() << "\033[35m"
|
||||||
<< "Your application is using TaoQuick ";
|
<< "Your application is using TaoQuick ";
|
||||||
qInfo() << " Version:" << TaoVer;
|
qInfo() << " Version:" << TaoVer;
|
||||||
qInfo() << " Revision:" << TaoREVISION;
|
qInfo() << " Revision:" << TaoREVISIONSTR;
|
||||||
qInfo() << " Author: Jared Tao";
|
qInfo() << " Author: Jared Tao";
|
||||||
qInfo() << " You can find more info about TaoQuick in website:"
|
qInfo() << " You can find more info about TaoQuick in website:"
|
||||||
<< "\033[0m"
|
<< "\033[0m"
|
||||||
|
Binary file not shown.
@ -1,10 +1,14 @@
|
|||||||
#include "TaoView.h"
|
#include "TaoView.h"
|
||||||
#include "Logger/Logger.h"
|
#include "Logger/Logger.h"
|
||||||
#include "Ver.h"
|
#ifdef VER_Utf16
|
||||||
|
#include "Ver-u16.h"
|
||||||
|
#else
|
||||||
|
#include "Ver-u8.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <QTranslator>
|
#include <QTranslator>
|
||||||
#include <QQmlEngine>
|
#include <QQmlEngine>
|
||||||
#include <QCoreApplication>
|
#include <QGuiApplication>
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include <QJsonDocument>
|
#include <QJsonDocument>
|
||||||
#include <QQuickItem>
|
#include <QQuickItem>
|
||||||
@ -118,7 +122,7 @@ void TaoView::initAppInfo()
|
|||||||
pInfo->setProperty("appVersion", TaoVer);
|
pInfo->setProperty("appVersion", TaoVer);
|
||||||
pInfo->setProperty("latestVersion", TaoVer);
|
pInfo->setProperty("latestVersion", TaoVer);
|
||||||
pInfo->setProperty("buildDateTime", TaoDATETIME);
|
pInfo->setProperty("buildDateTime", TaoDATETIME);
|
||||||
pInfo->setProperty("buildRevision", TaoREVISION);
|
pInfo->setProperty("buildRevision", TaoREVISIONSTR);
|
||||||
pInfo->setProperty("copyRight", VER_LEGALCOPYRIGHT_STR);
|
pInfo->setProperty("copyRight", VER_LEGALCOPYRIGHT_STR);
|
||||||
pInfo->setProperty("descript", QString::fromLocal8Bit(VER_FILEDESCRIPTION_STR));
|
pInfo->setProperty("descript", QString::fromLocal8Bit(VER_FILEDESCRIPTION_STR));
|
||||||
pInfo->setProperty("compilerVendor", TaoCompilerVendor);
|
pInfo->setProperty("compilerVendor", TaoCompilerVendor);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "ITaoQuickPlugin.h"
|
#include "ITaoQuickPlugin.h"
|
||||||
|
|
||||||
|
@ -1,9 +1,17 @@
|
|||||||
|
msvc {
|
||||||
|
HEADERS += $$PWD/Ver-u16.h
|
||||||
|
DEFINES += VER_Utf16
|
||||||
|
} else {
|
||||||
|
HEADERS += $$PWD/Ver-u8.h
|
||||||
|
}
|
||||||
|
|
||||||
HEADERS += \
|
HEADERS += \
|
||||||
$$PWD/Src/ITaoQuickPlugin.h \
|
$$PWD/Src/ITaoQuickPlugin.h \
|
||||||
$$PWD/Src/Logger/Logger.h \
|
$$PWD/Src/Logger/Logger.h \
|
||||||
$$PWD/Src/Logger/LoggerTemplate.h \
|
$$PWD/Src/Logger/LoggerTemplate.h \
|
||||||
$$PWD/Src/TaoView.h \
|
$$PWD/Src/TaoView.h
|
||||||
$$PWD/Ver.h
|
|
||||||
|
|
||||||
SOURCES += \
|
SOURCES += \
|
||||||
$$PWD/Src/Logger/Logger.cpp \
|
$$PWD/Src/Logger/Logger.cpp \
|
||||||
$$PWD/Src/TaoView.cpp \
|
$$PWD/Src/TaoView.cpp \
|
||||||
|
@ -6,11 +6,6 @@ CONFIG += plugin c++14 qtquickcompiler
|
|||||||
include(../TaoVersion.pri)
|
include(../TaoVersion.pri)
|
||||||
#include(../TaoBundle.pri)
|
#include(../TaoBundle.pri)
|
||||||
|
|
||||||
#msvc{
|
|
||||||
# QMAKE_CFLAGS += -source-charset:utf-8
|
|
||||||
# QMAKE_CXXFLAGS += -source-charset:utf-8
|
|
||||||
#}
|
|
||||||
|
|
||||||
#一部分头文件加入编译预处理,提高编译速度
|
#一部分头文件加入编译预处理,提高编译速度
|
||||||
msvc {
|
msvc {
|
||||||
CONFIG += precompile_header
|
CONFIG += precompile_header
|
||||||
@ -20,19 +15,23 @@ msvc {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
win32 {
|
msvc{
|
||||||
|
QMAKE_CFLAGS += -source-charset:utf-8
|
||||||
|
QMAKE_CXXFLAGS += -source-charset:utf-8
|
||||||
|
}
|
||||||
|
win32:!mingw {
|
||||||
RC_FILE = App.rc
|
RC_FILE = App.rc
|
||||||
}
|
}
|
||||||
macos {
|
macos {
|
||||||
ICON = milk.icns
|
ICON = milk.icns
|
||||||
}
|
}
|
||||||
|
|
||||||
CONFIG(debug,debug|release){
|
CONFIG(debug,debug|release) {
|
||||||
DESTDIR = $$absolute_path($${_PRO_FILE_PWD_}/../../bin/debug/)
|
DESTDIR = $$absolute_path($${_PRO_FILE_PWD_}/../../bin/debug/)
|
||||||
} else {
|
} else {
|
||||||
DESTDIR = $$absolute_path($${_PRO_FILE_PWD_}/../../bin/release/)
|
DESTDIR = $$absolute_path($${_PRO_FILE_PWD_}/../../bin/release/)
|
||||||
}
|
}
|
||||||
CONFIG(debug,debug|release){
|
CONFIG(debug,debug|release) {
|
||||||
MOC_DIR = build/debug/moc
|
MOC_DIR = build/debug/moc
|
||||||
RCC_DIR = build/debug/rcc
|
RCC_DIR = build/debug/rcc
|
||||||
UI_DIR = build/debug/ui
|
UI_DIR = build/debug/ui
|
||||||
|
BIN
src/TaoQuickApp/Ver-u16.h
Normal file
BIN
src/TaoQuickApp/Ver-u16.h
Normal file
Binary file not shown.
@ -9,6 +9,8 @@
|
|||||||
#define RELEASE_VER_MAIN2 TaoMIN
|
#define RELEASE_VER_MAIN2 TaoMIN
|
||||||
#define RELEASE_VER_SUB TaoPAT
|
#define RELEASE_VER_SUB TaoPAT
|
||||||
|
|
||||||
|
#define FILE_VER_STR TaoREVISIONSTR
|
||||||
|
|
||||||
#define VER_COMPANYNAME_STR "JaredTao\0"
|
#define VER_COMPANYNAME_STR "JaredTao\0"
|
||||||
|
|
||||||
#define VER_FILEDESCRIPTION_STR "TaoQuickDemo,未经授权不得商用,侵权必究\0"
|
#define VER_FILEDESCRIPTION_STR "TaoQuickDemo,未经授权不得商用,侵权必究\0"
|
@ -1,11 +1,19 @@
|
|||||||
|
isEmpty(TaoVersionInclude) {
|
||||||
|
TaoVersionInclude=1
|
||||||
TAO_VERSION_TAG = 1.0
|
TAO_VERSION_TAG = 1.0
|
||||||
|
|
||||||
# current commit hash
|
# current commit hash
|
||||||
REVISION=$$system("git rev-parse HEAD")
|
REVISION=$$system("git rev-parse HEAD")
|
||||||
REVISION=$$str_member($${REVISION}, 0, $$num_add(10, -1))
|
REVISION=$$str_member($${REVISION}, 0, $$num_add(10, -1))
|
||||||
|
isEmpty(REVISION) {
|
||||||
|
REVISION = 0000000000
|
||||||
|
}
|
||||||
|
|
||||||
# last tag
|
# last tag
|
||||||
Ver=$$system("git describe --abbrev=0 --tags")
|
Ver=$$system("git describe --abbrev=0 --tags")
|
||||||
|
isEmpty(Ver) {
|
||||||
|
Ver=0.0.0
|
||||||
|
}
|
||||||
VerList =$$split(Ver, .)
|
VerList =$$split(Ver, .)
|
||||||
MAJ = $$take_first(VerList)
|
MAJ = $$take_first(VerList)
|
||||||
MIN = $$take_first(VerList)
|
MIN = $$take_first(VerList)
|
||||||
@ -17,7 +25,8 @@ equals(TEMPLATE, lib) {
|
|||||||
VER_PAT = $${PAT}
|
VER_PAT = $${PAT}
|
||||||
VERSION = $${Ver}
|
VERSION = $${Ver}
|
||||||
}
|
}
|
||||||
DEFINES += TaoREVISION=\"\\\"$${REVISION}\\\"\"
|
DEFINES += TaoREVISION=$${REVISION}
|
||||||
|
DEFINES += TaoREVISIONSTR=\"\\\"$${REVISION}\\\"\"
|
||||||
DEFINES += TaoVer=\"\\\"$${Ver}\\\"\"
|
DEFINES += TaoVer=\"\\\"$${Ver}\\\"\"
|
||||||
DEFINES += TaoMAJ=$${MAJ}
|
DEFINES += TaoMAJ=$${MAJ}
|
||||||
DEFINES += TaoMIN=$${MIN}
|
DEFINES += TaoMIN=$${MIN}
|
||||||
@ -25,3 +34,4 @@ DEFINES += TaoPAT=$${PAT}
|
|||||||
DEFINES += TaoDATETIME=\"\\\"$${_DATE_}\\\"\"
|
DEFINES += TaoDATETIME=\"\\\"$${_DATE_}\\\"\"
|
||||||
DEFINES += TaoCompilerVendor=\"\\\"$${QT_VERSION} $${QMAKE_PLATFORM} $${QMAKE_COMPILER} $${QMAKE_TARGET.arch}\\\"\"
|
DEFINES += TaoCompilerVendor=\"\\\"$${QT_VERSION} $${QMAKE_PLATFORM} $${QMAKE_COMPILER} $${QMAKE_TARGET.arch}\\\"\"
|
||||||
# message($${DEFINES})
|
# message($${DEFINES})
|
||||||
|
}
|
||||||
|
@ -4,4 +4,3 @@ SUBDIRS += \
|
|||||||
TaoQuickApp \
|
TaoQuickApp \
|
||||||
TaoQuickPlugin \
|
TaoQuickPlugin \
|
||||||
TaoEffectPlugin
|
TaoEffectPlugin
|
||||||
CONFIG += ordered
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user