2014-05-30 08:53:19 +00:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
2018-01-03 10:23:14 +00:00
|
|
|
the official desktop application for the Telegram messaging service.
|
2014-05-30 08:53:19 +00:00
|
|
|
|
2018-01-03 10:23:14 +00:00
|
|
|
For license and copyright information please follow this link:
|
|
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
2014-05-30 08:53:19 +00:00
|
|
|
*/
|
2017-02-15 08:50:11 +00:00
|
|
|
#include <QtGui/QGuiApplication>
|
2014-05-30 08:53:19 +00:00
|
|
|
|
2017-02-15 08:50:11 +00:00
|
|
|
#include "codegen/emoji/options.h"
|
|
|
|
#include "codegen/emoji/generator.h"
|
|
|
|
|
|
|
|
int main(int argc, char *argv[]) {
|
2017-04-03 18:49:07 +00:00
|
|
|
#ifdef SUPPORT_IMAGE_GENERATION
|
|
|
|
#ifndef Q_OS_MAC
|
|
|
|
#error "Image generation is supported only on macOS"
|
|
|
|
#endif // Q_OS_MAC
|
2017-02-15 08:50:11 +00:00
|
|
|
QGuiApplication app(argc, argv);
|
2017-04-03 18:49:07 +00:00
|
|
|
#else // SUPPORT_IMAGE_GENERATION
|
|
|
|
QCoreApplication app(argc, argv);
|
|
|
|
#endif // SUPPORT_IMAGE_GENERATION
|
2017-02-15 08:50:11 +00:00
|
|
|
|
|
|
|
auto options = codegen::emoji::parseOptions();
|
|
|
|
|
|
|
|
codegen::emoji::Generator generator(options);
|
|
|
|
return generator.generate();
|
|
|
|
}
|