mirror of
https://github.com/CPunch/Laika.git
synced 2024-11-22 04:50:06 +00:00
Added CMake flag for enabling persistence
This commit is contained in:
parent
412418ec0a
commit
2fb0ef29a6
@ -43,6 +43,7 @@ I could add some padding to each packet to make it look pseudo-HTTP-like, howeve
|
|||||||
| LAIKA_PRIVKEY | Sets CNC's private key | -DLAIKA_PRIVKEY=1dbd33962f1e170d1e745c6d3e19175049b5616822fac2fa3535d7477957a841 |
|
| LAIKA_PRIVKEY | Sets CNC's private key | -DLAIKA_PRIVKEY=1dbd33962f1e170d1e745c6d3e19175049b5616822fac2fa3535d7477957a841 |
|
||||||
| LAIKA_CNC_IP | Sets CNC's public ip | -DLAIKA_CNC_IP=127.0.0.1 |
|
| LAIKA_CNC_IP | Sets CNC's public ip | -DLAIKA_CNC_IP=127.0.0.1 |
|
||||||
| LAIKA_CNC_PORT | Sets CNC's bind()'d port | -DLAIKA_CNC_PORT=13337 |
|
| LAIKA_CNC_PORT | Sets CNC's bind()'d port | -DLAIKA_CNC_PORT=13337 |
|
||||||
|
| LAIKA_PERSISTENCE | Enables persistence for LaikaBot | -DLAIKA_PERSISTENCE=On |
|
||||||
> examples are passed to `cmake -B <dir>`
|
> examples are passed to `cmake -B <dir>`
|
||||||
|
|
||||||
## Configuration and compilation
|
## Configuration and compilation
|
||||||
|
@ -1,8 +1,11 @@
|
|||||||
#ifndef LAIKA_PERSIST_H
|
#ifndef LAIKA_PERSIST_H
|
||||||
#define LAIKA_PERSIST_H
|
#define LAIKA_PERSIST_H
|
||||||
|
|
||||||
/* undefine to enable persistence */
|
#include "lconfig.h"
|
||||||
|
|
||||||
|
#ifndef LAIKA_PERSISTENCE
|
||||||
#define LAIKA_NOINSTALL
|
#define LAIKA_NOINSTALL
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
|
@ -12,4 +12,7 @@
|
|||||||
#define LAIKA_CNC_IP "@LAIKA_CNC_IP@"
|
#define LAIKA_CNC_IP "@LAIKA_CNC_IP@"
|
||||||
#define LAIKA_CNC_PORT "@LAIKA_CNC_PORT@"
|
#define LAIKA_CNC_PORT "@LAIKA_CNC_PORT@"
|
||||||
|
|
||||||
|
/* settings */
|
||||||
|
#cmakedefine LAIKA_PERSISTENCE
|
||||||
|
|
||||||
#endif
|
#endif
|
Loading…
Reference in New Issue
Block a user