mirror of
https://github.com/owntracks/recorder.git
synced 2026-08-27 16:57:21 +00:00
move JSON_INDENT to config.mk
This commit is contained in:
@@ -33,6 +33,12 @@ ifeq ($(HAVE_HTTP),yes)
|
||||
LIBS += -lssl
|
||||
endif
|
||||
|
||||
ifeq ($(JSON_INDENT),yes)
|
||||
CFLAGS += -DJSON_INDENT="\" \""
|
||||
else
|
||||
CFLAGS += -DJSON_INDENT=NULL
|
||||
endif
|
||||
|
||||
CFLAGS += -DSTORAGEDEFAULT=\"$(STORAGEDEFAULT)\"
|
||||
|
||||
|
||||
|
||||
@@ -11,10 +11,3 @@
|
||||
*/
|
||||
|
||||
#define DEFAULT_HISTORY_HOURS 6
|
||||
|
||||
/*
|
||||
* Indented JSON or not? Choose.
|
||||
*/
|
||||
|
||||
#define JSON_INDENT " " /* indented */
|
||||
// #define JSON_INDENT NULL /* not indented */
|
||||
|
||||
@@ -25,3 +25,6 @@ MOSQUITTO_LIB = -L/usr/lib
|
||||
|
||||
GHASHPREC = 7
|
||||
|
||||
# Should the JSON emitted by recorder be indented? (i.e. beautified)
|
||||
# yes or no
|
||||
JSON_INDENT ?= yes
|
||||
|
||||
Reference in New Issue
Block a user