mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +03:00
Remove capitalization
This commit is contained in:
parent
6468faa39e
commit
40722b7af7
3 changed files with 27 additions and 32 deletions
|
@ -11,44 +11,44 @@ set(CMAKE_CXX_STANDARD 11)
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||||
|
|
||||||
IF(NOT CMAKE_BUILD_TYPE)
|
if(NOT CMAKE_BUILD_TYPE)
|
||||||
SET(CMAKE_BUILD_TYPE "Debug" CACHE STRING
|
set(CMAKE_BUILD_TYPE "Debug" CACHE STRING
|
||||||
"Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel."
|
"Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel."
|
||||||
FORCE)
|
FORCE)
|
||||||
MESSAGE("Setting build type to '${CMAKE_BUILD_TYPE}'")
|
message("Setting build type to '${CMAKE_BUILD_TYPE}'")
|
||||||
ELSE(NOT CMAKE_BUILD_TYPE)
|
else(NOT CMAKE_BUILD_TYPE)
|
||||||
MESSAGE("Build type set to '${CMAKE_BUILD_TYPE}'")
|
message("Build type set to '${CMAKE_BUILD_TYPE}'")
|
||||||
ENDIF(NOT CMAKE_BUILD_TYPE)
|
endif(NOT CMAKE_BUILD_TYPE)
|
||||||
|
|
||||||
IF("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
|
if("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
|
||||||
SET(PATCH_OUT "0")
|
set(PATCH_OUT "0")
|
||||||
ELSE("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
|
else("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
|
||||||
FIND_PROGRAM(GIT git)
|
find_program(GIT git)
|
||||||
IF(GIT)
|
if(GIT)
|
||||||
EXECUTE_PROCESS(
|
execute_process(
|
||||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
||||||
COMMAND ${GIT} rev-parse --short HEAD
|
COMMAND ${GIT} rev-parse --short HEAD
|
||||||
OUTPUT_VARIABLE GIT_OUT OUTPUT_STRIP_TRAILING_WHITESPACE
|
OUTPUT_VARIABLE GIT_OUT OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||||
)
|
)
|
||||||
SET(PATCH_OUT "0-${GIT_OUT}")
|
set(PATCH_OUT "0-${GIT_OUT}")
|
||||||
ELSE(GIT)
|
else(GIT)
|
||||||
SET(PATCH_OUT "0")
|
set(PATCH_OUT "0")
|
||||||
ENDIF(GIT)
|
endif(GIT)
|
||||||
ENDIF("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
|
endif("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
|
||||||
|
|
||||||
SET(PROJECT_VERSION_PATCH ${PATCH_OUT})
|
set(PROJECT_VERSION_PATCH ${PATCH_OUT})
|
||||||
SET(CPACK_PACKAGE_VERSION_MAJOR "0")
|
set(CPACK_PACKAGE_VERSION_MAJOR "0")
|
||||||
SET(CPACK_PACKAGE_VERSION_MINOR "1")
|
set(CPACK_PACKAGE_VERSION_MINOR "1")
|
||||||
SET(CPACK_PACKAGE_VERSION_PATCH ${PROJECT_VERSION_PATCH})
|
set(CPACK_PACKAGE_VERSION_PATCH ${PROJECT_VERSION_PATCH})
|
||||||
SET(CPACK_PACKAGE_VERSION ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH})
|
set(CPACK_PACKAGE_VERSION ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH})
|
||||||
SET(PROJECT_VERSION_MAJOR ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR})
|
set(PROJECT_VERSION_MAJOR ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR})
|
||||||
SET(PROJECT_VERSION ${CPACK_PACKAGE_VERSION})
|
set(PROJECT_VERSION ${CPACK_PACKAGE_VERSION})
|
||||||
|
|
||||||
MESSAGE(STATUS "Version: ${PROJECT_VERSION}")
|
message(STATUS "Version: ${PROJECT_VERSION}")
|
||||||
|
|
||||||
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU")
|
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU")
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} \
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} \
|
||||||
-std=gnu++11 \
|
-std=c++11 \
|
||||||
-Wall \
|
-Wall \
|
||||||
-Wextra \
|
-Wextra \
|
||||||
-Werror \
|
-Werror \
|
||||||
|
|
|
@ -18,8 +18,6 @@
|
||||||
#ifndef CHATPAGE_H
|
#ifndef CHATPAGE_H
|
||||||
#define CHATPAGE_H
|
#define CHATPAGE_H
|
||||||
|
|
||||||
#include <QByteArray>
|
|
||||||
#include <QNetworkAccessManager>
|
|
||||||
#include <QPixmap>
|
#include <QPixmap>
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
|
|
|
@ -19,10 +19,7 @@
|
||||||
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
#include <QNetworkReply>
|
|
||||||
#include <QNetworkRequest>
|
|
||||||
#include <QSettings>
|
#include <QSettings>
|
||||||
#include <QWidget>
|
|
||||||
|
|
||||||
#include "ChatPage.h"
|
#include "ChatPage.h"
|
||||||
#include "Sync.h"
|
#include "Sync.h"
|
||||||
|
|
Loading…
Reference in a new issue