mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 00:49:28 -05:00
Friendly android-service build error if wrong compile options
This commit is contained in:
parent
75e882bb9f
commit
4bc6919ba9
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user