Moves definition of AFB_BINDING_VERSION into config.cmake.
Fixes an issue that different api versions seems to be
defined for different code parts.
Change-Id: If7325afe583ad6a8aa37cbd18dda473fbcba673b
Signed-off-by: Tobias Jahnke <tobias.jahnke@microchip.com>
add_compile_options(-DCONTROL_CDEV_TX="/dev/inic-usb-ctx")
add_compile_options(-DCONTROL_CDEV_RX="/dev/inic-usb-crx")
add_compile_options(-DUCS2_CFG_PATH="/etc/default/ucs:../data:./data")
+add_compile_options(-DAFB_BINDING_VERSION=2)
# Compilation options definition
# Use CMake generator expressions to specify only for a specific language
#ifndef UCS2BINDING_H
#define UCS2BINDING_H
-// Use Version of AGL Application Framework API
-#define AFB_BINDING_VERSION 2
-
#ifndef PUBLIC
#define PUBLIC
#endif
#define STATIC static
-#include <json-c/json.h>
+/* binding is using the application framework API V2
+ * the compile option "AFB_BINDING_VERSION=2" is located
+ * in conf.d/project/config.cmake */
#include <afb/afb-binding.h>
-
+#include <json-c/json.h>
#include "ucs_interface.h"
#ifndef CONTROL_CDEV_TX