summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
d5a9a19)
Change-Id: I88a1ef090b7ce40c833c5780f5a481876ff7ea09
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
# ----------------------------------
setc(CMAKE_BUILD_TYPE "DEBUG")
# ----------------------------------
setc(CMAKE_BUILD_TYPE "DEBUG")
+# Compiler selection if needed. Overload the detected compiler.
+# -----------------------------------------------
+#set(CMAKE_C_COMPILER "gcc")
+#set(CMAKE_CXX_COMPILER "g++")
+
# PKG_CONFIG required packages
# -----------------------------
set (PKG_REQUIRED_LIST
# PKG_CONFIG required packages
# -----------------------------
set (PKG_REQUIRED_LIST
set(CMAKE_CXX_FLAGS "-std=c++11")
# Print a helper message when every thing is finished
set(CMAKE_CXX_FLAGS "-std=c++11")
# Print a helper message when every thing is finished
-setc(CLOSING_MESSAGE "Test with: afb-daemon --rootdir=\$\$(pwd)/low-can-binding/package --ldpaths=\$\$(pwd)/low-can-binding/package/lib --port=1234 --roothttp=\$\$(pwd)/low-can-binding/package/htdocs --tracereq=common --token=\"\" --verbose")
# ----------------------------------------------------
# ----------------------------------------------------
+setc(CLOSING_MESSAGE "Test with: afb-daemon --rootdir=\$\$(pwd)/low-can-binding/package --ldpaths=\$\$(pwd)/low-can-binding/package/lib --port=1234 --roothttp=\$\$(pwd)/low-can-binding/package/htdocs --tracereq=common --token=\"\" --verbose")
+
# (BUG!!!) as PKG_CONFIG_PATH does not work [should be an env variable]
# ---------------------------------------------------------------------
# (BUG!!!) as PKG_CONFIG_PATH does not work [should be an env variable]
# ---------------------------------------------------------------------
# Optional dependencies order
# ---------------------------
# Optional dependencies order
# ---------------------------
-set(EXTRA_DEPENDENCIES_ORDER can-config-generator low-can-binding)
+#set(EXTRA_DEPENDENCIES_ORDER)
# Optional Extra global include path
# -----------------------------------
# Optional Extra global include path
# -----------------------------------
-#set(EXTRA_INCLUDE_DIRS can-config-generator/3rdparty/json libs/openxc-message-format/gen/cpp libs/nanopb libs/uds-c/src libs/isotp-c/src libs/bitfield-c/src)
+set(EXTRA_INCLUDE_DIRS libs/openxc-message-format/gen/cpp libs/nanopb libs/uds-c/src libs/isotp-c/src libs/bitfield-c/src libs/ini-config)
# Optional extra libraries
# -------------------------
# Optional extra libraries
# -------------------------
# Optional force binding installation
# ------------------------------------
# Optional force binding installation
# ------------------------------------
-# set(BINDINGS_INSTALL_PREFIX DestinationPath )
+set(BINDINGS_INSTALL_PREFIX /opt )
+# set(WIDGET_PREFIX DestinationPath)
# Optional force binding Linking flag
# ------------------------------------
# Optional force binding Linking flag
# ------------------------------------
PROJECT_TARGET_ADD(${shortname})
add_library(${shortname} STATIC ${sources_files})
endif(IS_DIRECTORY ${filename})
PROJECT_TARGET_ADD(${shortname})
add_library(${shortname} STATIC ${sources_files})
endif(IS_DIRECTORY ${filename})
-endforeach()
\ No newline at end of file
# Binder exposes a unique public entry point
SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES
PREFIX ""
# Binder exposes a unique public entry point
SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES
PREFIX ""
LINK_FLAGS ${BINDINGS_LINK_FLAG}
LINK_FLAGS ${BINDINGS_LINK_FLAG}
- OUTPUT_NAME ${TARGET_NAME}
+ OUTPUT_NAME ${TARGET_NAME}
)
# Library dependencies (include updates automatically)
)
# Library dependencies (include updates automatically)
+ ${link_libraries})
+
+ populate_widget()
# installation directory
INSTALL(TARGETS ${TARGET_NAME}
LIBRARY DESTINATION ${BINDINGS_INSTALL_DIR})
# installation directory
INSTALL(TARGETS ${TARGET_NAME}
LIBRARY DESTINATION ${BINDINGS_INSTALL_DIR})
-
- build_widget("BINDING")
\ No newline at end of file
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<widget xmlns="http://www.w3.org/ns/widgets" id="@PROJECT_NAME@" version="@PROJECT_VERSION@">
+ <name>@PROJECT_NAME@</name>
+ <icon src="icon.png"/>
+ <content src="htdocs/index.html" type="application/vnd.agl.html.hybrid"/>
+ <description>This is a demo application used with low-can binding.</description>
+ <author>Romain Forlot <romain.forlot@iot.bzh></author>
+ <license>APL 2.0</license>
+</widget>
+
+
--- /dev/null
+can_buses.json
+low-can-demo/dist.prod
+low-can-demo/cpu-stat-binding.so
+low-can-binding/low-can-binding.so
\ No newline at end of file