tdesktop/Telegram/SourceFiles/codegen/emoji/options.h

33 lines
710 B
C++

/*
This file is part of Telegram Desktop,
the official desktop application for the Telegram messaging service.
For license and copyright information please follow this link:
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#pragma once
#include <QtCore/QString>
#include <QtCore/QStringList>
#ifdef __APPLE__
#define SUPPORT_IMAGE_GENERATION
#endif // __APPLE__
namespace codegen {
namespace emoji {
struct Options {
QString outputPath = ".";
QString replacesPath;
#ifdef SUPPORT_IMAGE_GENERATION
bool writeImages = false;
#endif // SUPPORT_IMAGE_GENERATION
};
// Parsing failed if inputPath is empty in the result.
Options parseOptions();
} // namespace emoji
} // namespace codegen