mirror of
https://github.com/eclipse/mosquitto.git
synced 2025-05-08 16:52:13 +08:00
Fix cjson include paths.
This commit is contained in:
parent
5679a4d432
commit
791c63372b
@ -1,3 +1,6 @@
|
|||||||
|
- Fix cjson include paths.
|
||||||
|
|
||||||
|
|
||||||
2.0.0 - 2020-12-03
|
2.0.0 - 2020-12-03
|
||||||
==================
|
==================
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ Contributors:
|
|||||||
*/
|
*/
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include <cJSON.h>
|
#include <cjson/cJSON.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@ -15,7 +15,7 @@ SPDX-License-Identifier: EPL-2.0 OR EDL-1.0
|
|||||||
Contributors:
|
Contributors:
|
||||||
Roger Light - initial implementation and documentation.
|
Roger Light - initial implementation and documentation.
|
||||||
*/
|
*/
|
||||||
#include <cJSON.h>
|
#include <cjson/cJSON.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@ -15,7 +15,7 @@ SPDX-License-Identifier: EPL-2.0 OR EDL-1.0
|
|||||||
Contributors:
|
Contributors:
|
||||||
Roger Light - initial implementation and documentation.
|
Roger Light - initial implementation and documentation.
|
||||||
*/
|
*/
|
||||||
#include <cJSON.h>
|
#include <cjson/cJSON.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@ -17,7 +17,7 @@ Contributors:
|
|||||||
*/
|
*/
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include <cJSON.h>
|
#include <cjson/cJSON.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@ -15,7 +15,7 @@ SPDX-License-Identifier: EPL-2.0 OR EDL-1.0
|
|||||||
Contributors:
|
Contributors:
|
||||||
Roger Light - initial implementation and documentation.
|
Roger Light - initial implementation and documentation.
|
||||||
*/
|
*/
|
||||||
#include <cJSON.h>
|
#include <cjson/cJSON.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@ -18,7 +18,7 @@ Contributors:
|
|||||||
#ifndef MOSQUITTO_CTRL_H
|
#ifndef MOSQUITTO_CTRL_H
|
||||||
#define MOSQUITTO_CTRL_H
|
#define MOSQUITTO_CTRL_H
|
||||||
|
|
||||||
#include <cJSON.h>
|
#include <cjson/cJSON.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
#include "mosquitto.h"
|
#include "mosquitto.h"
|
||||||
|
@ -38,7 +38,7 @@ Contributors:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef WITH_CJSON
|
#ifdef WITH_CJSON
|
||||||
# include <cJSON.h>
|
# include <cjson/cJSON.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
|
@ -8,11 +8,9 @@ ENDIF()
|
|||||||
|
|
||||||
FIND_PATH(
|
FIND_PATH(
|
||||||
CJSON_INCLUDE_DIR
|
CJSON_INCLUDE_DIR
|
||||||
cJSON.h
|
cjson/cJSON.h
|
||||||
HINTS
|
HINTS
|
||||||
CJSON_DIR
|
CJSON_DIR
|
||||||
/usr/include/cjson
|
|
||||||
/usr/local/include/cjson
|
|
||||||
)
|
)
|
||||||
|
|
||||||
FIND_LIBRARY( CJSON_LIBRARY
|
FIND_LIBRARY( CJSON_LIBRARY
|
||||||
|
2
config.h
2
config.h
@ -74,7 +74,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef WITH_CJSON
|
#ifdef WITH_CJSON
|
||||||
# include <cJSON.h>
|
# include <cjson/cJSON.h>
|
||||||
# define CJSON_VERSION_FULL (CJSON_VERSION_MAJOR*1000000+CJSON_VERSION_MINOR*1000+CJSON_VERSION_PATCH)
|
# define CJSON_VERSION_FULL (CJSON_VERSION_MAJOR*1000000+CJSON_VERSION_MINOR*1000+CJSON_VERSION_PATCH)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -364,7 +364,7 @@ ifeq ($(WITH_COVERAGE),yes)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(WITH_CJSON),yes)
|
ifeq ($(WITH_CJSON),yes)
|
||||||
CLIENT_CFLAGS:=$(CLIENT_CFLAGS) -DWITH_CJSON -I/usr/include/cjson -I/usr/local/include/cjson
|
CLIENT_CFLAGS:=$(CLIENT_CFLAGS) -DWITH_CJSON
|
||||||
CLIENT_LDADD:=$(CLIENT_LDADD) -lcjson
|
CLIENT_LDADD:=$(CLIENT_LDADD) -lcjson
|
||||||
CLIENT_STATIC_LDADD:=$(CLIENT_STATIC_LDADD) -lcjson
|
CLIENT_STATIC_LDADD:=$(CLIENT_STATIC_LDADD) -lcjson
|
||||||
CLIENT_LDFLAGS:=$(CLIENT_LDFLAGS) -L/usr/local/lib
|
CLIENT_LDFLAGS:=$(CLIENT_LDFLAGS) -L/usr/local/lib
|
||||||
|
@ -3,7 +3,7 @@ include ../../config.mk
|
|||||||
.PHONY : all binary check clean reallyclean test install uninstall
|
.PHONY : all binary check clean reallyclean test install uninstall
|
||||||
|
|
||||||
PLUGIN_NAME=mosquitto_dynamic_security
|
PLUGIN_NAME=mosquitto_dynamic_security
|
||||||
LOCAL_CPPFLAGS=-I/usr/include/cjson -I/usr/local/include/cjson -I../../src/
|
LOCAL_CPPFLAGS=-I../../src/
|
||||||
LOCAL_LDFLAGS=-L/usr/local/lib
|
LOCAL_LDFLAGS=-L/usr/local/lib
|
||||||
|
|
||||||
OBJS= \
|
OBJS= \
|
||||||
|
@ -18,7 +18,7 @@ Contributors:
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include <cJSON.h>
|
#include <cjson/cJSON.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <uthash.h>
|
#include <uthash.h>
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ Contributors:
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include <cJSON.h>
|
#include <cjson/cJSON.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <uthash.h>
|
#include <uthash.h>
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ Contributors:
|
|||||||
Roger Light - initial implementation and documentation.
|
Roger Light - initial implementation and documentation.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <cJSON.h>
|
#include <cjson/cJSON.h>
|
||||||
#include <uthash.h>
|
#include <uthash.h>
|
||||||
#include "mosquitto.h"
|
#include "mosquitto.h"
|
||||||
#include "password_mosq.h"
|
#include "password_mosq.h"
|
||||||
|
@ -18,7 +18,7 @@ Contributors:
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include <cJSON.h>
|
#include <cjson/cJSON.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <uthash.h>
|
#include <uthash.h>
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ Contributors:
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include <cJSON.h>
|
#include <cjson/cJSON.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <uthash.h>
|
#include <uthash.h>
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ Contributors:
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include <cJSON.h>
|
#include <cjson/cJSON.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -17,7 +17,7 @@ SPDX-License-Identifier: EPL-2.0 OR EDL-1.0
|
|||||||
Contributors:
|
Contributors:
|
||||||
Roger Light - initial implementation and documentation.
|
Roger Light - initial implementation and documentation.
|
||||||
*/
|
*/
|
||||||
#include <cJSON.h>
|
#include <cjson/cJSON.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
/* "optional==false" can also be taken to mean "only return success if the key exists and is valid" */
|
/* "optional==false" can also be taken to mean "only return success if the key exists and is valid" */
|
||||||
|
@ -18,7 +18,7 @@ Contributors:
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include <cJSON.h>
|
#include <cjson/cJSON.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -18,7 +18,7 @@ Contributors:
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include <cJSON.h>
|
#include <cjson/cJSON.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <uthash.h>
|
#include <uthash.h>
|
||||||
|
@ -18,7 +18,7 @@ Contributors:
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include <cJSON.h>
|
#include <cjson/cJSON.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <uthash.h>
|
#include <uthash.h>
|
||||||
|
@ -59,7 +59,7 @@ parts:
|
|||||||
- lws
|
- lws
|
||||||
- cjson
|
- cjson
|
||||||
plugin: make
|
plugin: make
|
||||||
make-parameters: ["prefix=/usr", "WITH_WEBSOCKETS=yes", "WITH_ADNS=yes", "CFLAGS=-Wall -ggdb -O2 -I$SNAPCRAFT_STAGE/include -I$SNAPCRAFT_STAGE/include/cjson -D_GNU_SOURCE"]
|
make-parameters: ["prefix=/usr", "WITH_WEBSOCKETS=yes", "WITH_ADNS=yes", "CFLAGS=-Wall -ggdb -O2 -I$SNAPCRAFT_STAGE/include -D_GNU_SOURCE"]
|
||||||
source: https://github.com/eclipse/mosquitto
|
source: https://github.com/eclipse/mosquitto
|
||||||
source-type: git
|
source-type: git
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user