package/mraa: add json-c support
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sat, 25 Jul 2020 09:29:04 +0000 (11:29 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sat, 25 Jul 2020 11:01:03 +0000 (13:01 +0200)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/mraa/mraa.mk

index 9397f12cfdd3d01d5f53941920af67ceeae14d1e..89c539e793a32566049d097ff08a95b48468c92f 100644 (file)
@@ -30,8 +30,14 @@ MRAA_CONF_OPTS += \
        -DBUILDSWIG=OFF \
        -DUSBPLAT=OFF \
        -DFTDI4222=OFF \
-       -DJSONPLAT=OFF \
        -DENABLEEXAMPLES=OFF \
        -DBUILDTESTS=OFF
 
+ifeq ($(BR2_PACKAGE_JSON_C),y)
+MRAA_CONF_OPTS += -DJSONPLAT=ON
+MRAA_DEPENDENCIES += json-c
+else
+MRAA_CONF_OPTS += -DJSONPLAT=OFF
+endif
+
 $(eval $(cmake-package))