Friendly android-service build error if wrong compile options

This commit is contained in:
Gioacchino Mazzurco 2018-08-28 14:19:41 +02:00
parent 75e882bb9f
commit 4bc6919ba9
No known key found for this signature in database
GPG Key ID: A1FBCA3872E87051

View File

@ -62,6 +62,7 @@ int main(int argc, char *argv[])
signal(SIGBREAK, exitGracefully);
#endif // ifdef SIGBREAK
#ifdef LIBRESAPI_LOCAL_SERVER
ApiServer api;
RsControlModule ctrl_mod(argc, argv, api.getStateTokenServer(), &api, true);
api.addResourceHandler(
@ -82,6 +83,9 @@ int main(int argc, char *argv[])
QObject::connect( &shouldExitTimer, &QTimer::timeout, [&]()
{ if(ctrl_mod.processShouldExit()) exitGracefully(0); } );
shouldExitTimer.start();
#else
# error retroshare-android-service need CONFIG+=libresapilocalserver to build
#endif
#ifdef RS_JSONAPI
jas.start();