diff options
author | fulup <fulup.arfoll@iot.bzh> | 2017-08-08 18:52:13 +0200 |
---|---|---|
committer | fulup <fulup.arfoll@iot.bzh> | 2017-08-08 18:52:13 +0200 |
commit | f817ce67ff6344f181d221c859e1cb2231a3dac4 (patch) | |
tree | ca95512377f7e2105a3a113c31c75abde0dd20ad /conf.d/cmake | |
parent | 33c2cd0236823d108cbb21af34b8d7843d117ac1 (diff) |
Early Draft of LUA integration
Diffstat (limited to 'conf.d/cmake')
-rw-r--r-- | conf.d/cmake/config.cmake | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/conf.d/cmake/config.cmake b/conf.d/cmake/config.cmake index 1a53d8a..6fad621 100644 --- a/conf.d/cmake/config.cmake +++ b/conf.d/cmake/config.cmake @@ -62,6 +62,7 @@ set (PKG_REQUIRED_LIST afb-daemon json-c libafbwsc + lua>=5.3 ) # LANG Specific compile flags set for all build types @@ -71,20 +72,23 @@ set (PKG_REQUIRED_LIST # Do not optimise when debugging set(CMAKE_C_FLAGS_DEBUG "-g -ggdb -Wp,-U_FORTIFY_SOURCE") +# (BUG!!!) as PKG_CONFIG_PATH does not work [should be an env variable] +# --------------------------------------------------------------------- +set(CMAKE_INSTALL_PREFIX $ENV{HOME}/opt) +set(CMAKE_PREFIX_PATH ${CMAKE_INSTALL_PREFIX}/lib64/pkgconfig ${CMAKE_INSTALL_PREFIX}/lib/pkgconfig) +set(LD_LIBRARY_PATH ${CMAKE_INSTALL_PREFIX}/lib64 ${CMAKE_INSTALL_PREFIX}/lib) + # Define CONTROL_CDEV_NAME should match MOST driver values # --------------------------------------------------------- - add_compile_options(-DCONTROL_CDEV_TX="/dev/inic-usb-ctx") - add_compile_options(-DCONTROL_CDEV_RX="/dev/inic-usb-crx") + add_compile_options(-DCONTROL_FILE_POLICY="onload-control-policy.json") + add_compile_options(-DCONTROL_PATH_POLICY="/etc/default/audio-agent/policy:$ENV{HOME}/.config/audio-agent:${CMAKE_INSTALL_PREFIX}/audio-agent/policy:${CMAKE_SOURCE_DIR}/data") + add_compile_options(-DCONTROL_PATH_LUA="/etc/default/audio-agent/policy:$ENV{HOME}/.config/audio-agent:${CMAKE_INSTALL_PREFIX}/audio-agent/policy:${CMAKE_SOURCE_DIR}/data") + # Print a helper message when every thing is finished # ---------------------------------------------------- set(CLOSING_MESSAGE "Debug in ./buid: afb-daemon --port=1234 --ldpaths=. --workdir=. --roothttp=../htdocs --tracereq=common --token='' --verbose") -# (BUG!!!) as PKG_CONFIG_PATH does not work [should be an env variable] -# --------------------------------------------------------------------- -set(CMAKE_INSTALL_PREFIX $ENV{HOME}/opt) -set(CMAKE_PREFIX_PATH ${CMAKE_INSTALL_PREFIX}/lib64/pkgconfig ${CMAKE_INSTALL_PREFIX}/lib/pkgconfig) -set(LD_LIBRARY_PATH ${CMAKE_INSTALL_PREFIX}/lib64 ${CMAKE_INSTALL_PREFIX}/lib) # Optional dependencies order # --------------------------- |