1 wlproto(IVI_CON ivi-controller)
4 pkg_check_modules(AFB REQUIRED afb-daemon)
5 pkg_check_modules(SD REQUIRED libsystemd>=222)
7 # We do not want a prefix for our module
8 set(CMAKE_SHARED_MODULE_PREFIX "")
11 OUTPUT afb_binding_api.hpp afb_binding_glue.inl
12 DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/../generate-binding-glue.py
13 COMMAND python ${CMAKE_CURRENT_SOURCE_DIR}/../generate-binding-glue.py)
15 add_library(winman MODULE
29 afb_binding_glue.inl layers.cpp layers.hpp controller_hooks.hpp config.cpp config.hpp)
31 target_include_directories(winman
38 target_link_libraries(winman
44 target_compile_definitions(winman
47 # We do not want source location of messages
48 AFB_BINDING_PRAGMA_NO_VERBOSE_DETAILS
49 WINMAN_VERSION_STRING="${PACKAGE_VERSION}"
50 _GNU_SOURCE) # XXX should I define this here?!
52 if(NOT ${CMAKE_BUILD_TYPE} STREQUAL "Release")
53 target_compile_definitions(winman
58 target_compile_options(winman
60 -Wall -Wextra -Wno-unused-parameter -Wno-comment)
62 set_target_properties(winman
64 INTERPROCEDURAL_OPTIMIZATION ON
68 CXX_STANDARD_REQUIRED ON
72 C_STANDARD_REQUIRED ON
74 LINK_FLAGS "-Wl,--version-script=../../export.map")
77 set_target_properties(winman
79 LINK_FLAGS "-Wl,--version-script=../../export.map -lc++")
82 if (NOT ${SANITIZER_MODE} STREQUAL "none" AND NOT ${SANITIZER_MODE} STREQUAL "")
83 target_compile_options(winman
85 -fsanitize=${SANITIZER_MODE} -g -fno-omit-frame-pointer)
86 set_target_properties(winman
88 LINK_FLAGS "-fsanitize=${SANITIZER_MODE} -g")