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-04-12 19:17:55 +00:00
|
|
|
#include <QtCore/QCoreApplication>
|
2014-05-30 08:53:19 +00:00
|
|
|
|
2017-04-12 19:17:55 +00:00
|
|
|
#include "codegen/lang/options.h"
|
|
|
|
#include "codegen/lang/processor.h"
|
|
|
|
|
|
|
|
int main(int argc, char *argv[]) {
|
|
|
|
QCoreApplication app(argc, argv);
|
|
|
|
|
|
|
|
auto options = codegen::lang::parseOptions();
|
|
|
|
if (options.inputPath.isEmpty()) {
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
codegen::lang::Processor processor(options);
|
|
|
|
return processor.launch();
|
|
|
|
}
|