mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-14 17:07:17 -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);
|
signal(SIGBREAK, exitGracefully);
|
||||||
#endif // ifdef SIGBREAK
|
#endif // ifdef SIGBREAK
|
||||||
|
|
||||||
|
#ifdef LIBRESAPI_LOCAL_SERVER
|
||||||
ApiServer api;
|
ApiServer api;
|
||||||
RsControlModule ctrl_mod(argc, argv, api.getStateTokenServer(), &api, true);
|
RsControlModule ctrl_mod(argc, argv, api.getStateTokenServer(), &api, true);
|
||||||
api.addResourceHandler(
|
api.addResourceHandler(
|
||||||
@ -82,6 +83,9 @@ int main(int argc, char *argv[])
|
|||||||
QObject::connect( &shouldExitTimer, &QTimer::timeout, [&]()
|
QObject::connect( &shouldExitTimer, &QTimer::timeout, [&]()
|
||||||
{ if(ctrl_mod.processShouldExit()) exitGracefully(0); } );
|
{ if(ctrl_mod.processShouldExit()) exitGracefully(0); } );
|
||||||
shouldExitTimer.start();
|
shouldExitTimer.start();
|
||||||
|
#else
|
||||||
|
# error retroshare-android-service need CONFIG+=libresapilocalserver to build
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef RS_JSONAPI
|
#ifdef RS_JSONAPI
|
||||||
jas.start();
|
jas.start();
|
||||||
|
Loading…
Reference in New Issue
Block a user