summaryrefslogtreecommitdiffstats
path: root/conf.d/cmake/config.cmake
diff options
context:
space:
mode:
authorTobias Jahnke <tobias.jahnke@microchip.com>2018-10-10 15:52:57 +0200
committerTobias Jahnke <tobias.jahnke@microchip.com>2018-10-10 15:52:57 +0200
commitb071fc0882750d28036769c56c046fe1d7ae9942 (patch)
treed33a0968eb237c4975bc879087cadff57082dd10 /conf.d/cmake/config.cmake
parent6d4cbab774c0fa632ccdf4add35b87d0828ac765 (diff)
4a-hal-unicens: add Fiberdyne Master Volume
Bug-AGL: SPEC-1758 As preparation before introducing UNICENS 4a plugin: - Init volume library at first - Add fiberdyne master volume - Introduce commands sent by control messages - Removes outdated controls - Known issue: turn ALSA volume above "93" to hear some sound Change-Id: I591c6b109a51c9da602ad08514b67c2ec573e09c Signed-off-by: Tobias Jahnke <tobias.jahnke@microchip.com>
Diffstat (limited to 'conf.d/cmake/config.cmake')
-rw-r--r--conf.d/cmake/config.cmake41
1 files changed, 24 insertions, 17 deletions
diff --git a/conf.d/cmake/config.cmake b/conf.d/cmake/config.cmake
index ad9206e..36050cd 100644
--- a/conf.d/cmake/config.cmake
+++ b/conf.d/cmake/config.cmake
@@ -91,24 +91,31 @@ list(APPEND link_libraries -lpthread -lm)
# Either separate options with ";", or each options must be quoted separately
# DO NOT PUT ALL OPTION QUOTED AT ONCE , COMPILATION COULD FAILED !
# ----------------------------------------------------------------------------
-set(COMPILE_OPTIONS
--Wall
--Wextra
--Wconversion
--Wno-unused-parameter
--Wno-sign-compare
--Wno-sign-conversion
--Werror=maybe-uninitialized
--Werror=implicit-function-declaration
--ffunction-sections
--fdata-sections
--fPIC
+#set(COMPILE_OPTIONS
+#-Wall
+#-Wextra
+#-Wconversion
+#-Wno-unused-parameter
+#-Wno-sign-compare
+#-Wno-sign-conversion
+#-Werror=maybe-uninitialized
+#-Werror=implicit-function-declaration
+#-ffunction-sections
+#-fdata-sections
+#-fPIC
# Personal compilation options
--DMAX_SND_CARD=16 # should be more than enough even in luxury vehicule
--DMAX_LINEAR_DB_SCALE=24 # until 24db volume normalisation use a simple linear scale
--DTLV_BYTE_SIZE=256 # Alsa use 4096 as default but 256 should fit most sndcards
--DCONTROL_MAXPATH_LEN=255
- CACHE STRING "Compilation flags")
+#-DMAX_SND_CARD=16 # should be more than enough even in luxury vehicule
+#-DMAX_LINEAR_DB_SCALE=24 # until 24db volume normalisation use a simple linear scale
+#-DTLV_BYTE_SIZE=256 # Alsa use 4096 as default but 256 should fit most sndcards
+#-DCONTROL_MAXPATH_LEN=255
+# CACHE STRING "Compilation flags")
+
+add_compile_options(-DAFB_BINDING_VERSION=2)
+add_compile_options(-DMAX_SND_CARD=16) # should be more than enough even in luxury vehicule
+add_compile_options(-DMAX_LINEAR_DB_SCALE=24) # until 24db volume normalisation use a simple linear scale
+add_compile_options(-DTLV_BYTE_SIZE=256) # Alsa use 4096 as default but 256 should fit most sndcards
+add_compile_options(-DCONTROL_MAXPATH_LEN=255)
+
#set(C_COMPILE_OPTIONS "" CACHE STRING "Compilation flags for C language.")
#set(CXX_COMPILE_OPTIONS "" CACHE STRING "Compilation flags for C++ language.")
#set(PROFILING_COMPILE_OPTIONS