mirror of https://github.com/procxx/kepka.git
Added codegen_style/numbers QtCreator projects. Telegram.pro still broken.
This commit is contained in:
parent
b4d69b847a
commit
0501633c75
|
@ -37,6 +37,7 @@ project.xcworkspace
|
|||
xcuserdata
|
||||
|
||||
/Telegram/*.user.*
|
||||
*.pro.user
|
||||
/Linux/
|
||||
/Telegram/Makefile
|
||||
*.*~
|
||||
|
|
|
@ -20,9 +20,10 @@ Copyright (c) 2014-2016 John Preston, https://desktop.telegram.org
|
|||
*/
|
||||
#include "codegen/style/generator.h"
|
||||
|
||||
#include <memory>
|
||||
#include <functional>
|
||||
#include <QtCore/QDir>
|
||||
#include <QtCore/QSet>
|
||||
#include <functional>
|
||||
#include "codegen/style/parsed_file.h"
|
||||
|
||||
using Module = codegen::style::structure::Module;
|
||||
|
@ -54,7 +55,7 @@ char hexFirstChar(char ch) {
|
|||
QString stringToEncodedString(const std::string &str) {
|
||||
QString result;
|
||||
result.reserve(str.size() * 4);
|
||||
for (auto ch : str) {
|
||||
for (uchar ch : str) {
|
||||
if (ch == '\n') {
|
||||
result.append("\\n");
|
||||
} else if (ch == '\t') {
|
||||
|
|
|
@ -43,7 +43,7 @@ private:
|
|||
|
||||
public:
|
||||
|
||||
// Constructor is public only for std::make_unique<>() to work.
|
||||
// Constructor is public only for std_::make_unique<>() to work.
|
||||
// You should use create() static method instead.
|
||||
explicit Result(const Creator &creator);
|
||||
static std_::unique_ptr<Result> create(uint64 queryId, const MTPBotInlineResult &mtpData);
|
||||
|
|
|
@ -0,0 +1,45 @@
|
|||
QT += core gui
|
||||
|
||||
TARGET = codegen_numbers
|
||||
CONFIG += console static c++14
|
||||
CONFIG -= app_bundle
|
||||
|
||||
CONFIG(debug, debug|release) {
|
||||
OBJECTS_DIR = ./
|
||||
DESTDIR = ./../../../codegen/Debug
|
||||
}
|
||||
CONFIG(release, debug|release) {
|
||||
OBJECTS_DIR = ./
|
||||
DESTDIR = ./../../../codegen/Release
|
||||
}
|
||||
|
||||
INCLUDEPATH += ./../../../SourceFiles
|
||||
|
||||
QMAKE_CFLAGS_WARN_ON += -Wno-missing-field-initializers
|
||||
QMAKE_CXXFLAGS_WARN_ON += -Wno-missing-field-initializers
|
||||
|
||||
TEMPLATE = app
|
||||
|
||||
SOURCES += \
|
||||
./../../../SourceFiles/codegen/common/basic_tokenized_file.cpp\
|
||||
./../../../SourceFiles/codegen/common/checked_utf8_string.cpp\
|
||||
./../../../SourceFiles/codegen/common/clean_file.cpp\
|
||||
./../../../SourceFiles/codegen/common/cpp_file.cpp\
|
||||
./../../../SourceFiles/codegen/common/logging.cpp\
|
||||
./../../../SourceFiles/codegen/numbers/generator.cpp\
|
||||
./../../../SourceFiles/codegen/numbers/main.cpp\
|
||||
./../../../SourceFiles/codegen/numbers/options.cpp\
|
||||
./../../../SourceFiles/codegen/numbers/parsed_file.cpp\
|
||||
./../../../SourceFiles/codegen/numbers/processor.cpp
|
||||
|
||||
HEADERS += \
|
||||
./../../../SourceFiles/codegen/common/basic_tokenized_file.h\
|
||||
./../../../SourceFiles/codegen/common/checked_utf8_string.h\
|
||||
./../../../SourceFiles/codegen/common/clean_file.h\
|
||||
./../../../SourceFiles/codegen/common/clean_file_reader.h\
|
||||
./../../../SourceFiles/codegen/common/cpp_file.h\
|
||||
./../../../SourceFiles/codegen/common/logging.h\
|
||||
./../../../SourceFiles/codegen/numbers/generator.h\
|
||||
./../../../SourceFiles/codegen/numbers/options.h\
|
||||
./../../../SourceFiles/codegen/numbers/parsed_file.h\
|
||||
./../../../SourceFiles/codegen/numbers/processor.h
|
|
@ -0,0 +1,51 @@
|
|||
QT += core gui
|
||||
|
||||
TARGET = codegen_style
|
||||
CONFIG += console static c++14
|
||||
CONFIG -= app_bundle
|
||||
|
||||
CONFIG(debug, debug|release) {
|
||||
OBJECTS_DIR = ./
|
||||
DESTDIR = ./../../../codegen/Debug
|
||||
}
|
||||
CONFIG(release, debug|release) {
|
||||
OBJECTS_DIR = ./
|
||||
DESTDIR = ./../../../codegen/Release
|
||||
}
|
||||
|
||||
INCLUDEPATH += ./../../../SourceFiles
|
||||
|
||||
QMAKE_CFLAGS_WARN_ON += -Wno-missing-field-initializers
|
||||
QMAKE_CXXFLAGS_WARN_ON += -Wno-missing-field-initializers
|
||||
|
||||
TEMPLATE = app
|
||||
|
||||
SOURCES += \
|
||||
./../../../SourceFiles/codegen/common/basic_tokenized_file.cpp\
|
||||
./../../../SourceFiles/codegen/common/checked_utf8_string.cpp\
|
||||
./../../../SourceFiles/codegen/common/clean_file.cpp\
|
||||
./../../../SourceFiles/codegen/common/cpp_file.cpp\
|
||||
./../../../SourceFiles/codegen/common/logging.cpp\
|
||||
./../../../SourceFiles/codegen/style/generator.cpp\
|
||||
./../../../SourceFiles/codegen/style/main.cpp\
|
||||
./../../../SourceFiles/codegen/style/module.cpp\
|
||||
./../../../SourceFiles/codegen/style/options.cpp\
|
||||
./../../../SourceFiles/codegen/style/parsed_file.cpp\
|
||||
./../../../SourceFiles/codegen/style/processor.cpp\
|
||||
./../../../SourceFiles/codegen/style/sprite_generator.cpp\
|
||||
./../../../SourceFiles/codegen/style/structure_types.cpp
|
||||
|
||||
HEADERS += \
|
||||
./../../../SourceFiles/codegen/common/basic_tokenized_file.h\
|
||||
./../../../SourceFiles/codegen/common/checked_utf8_string.h\
|
||||
./../../../SourceFiles/codegen/common/clean_file.h\
|
||||
./../../../SourceFiles/codegen/common/clean_file_reader.h\
|
||||
./../../../SourceFiles/codegen/common/cpp_file.h\
|
||||
./../../../SourceFiles/codegen/common/logging.h\
|
||||
./../../../SourceFiles/codegen/style/generator.h\
|
||||
./../../../SourceFiles/codegen/style/module.h\
|
||||
./../../../SourceFiles/codegen/style/options.h\
|
||||
./../../../SourceFiles/codegen/style/parsed_file.h\
|
||||
./../../../SourceFiles/codegen/style/processor.h\
|
||||
./../../../SourceFiles/codegen/style/sprite_generator.h\
|
||||
./../../../SourceFiles/codegen/style/structure_types.h
|
Loading…
Reference in New Issue