X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2FCMakeLists.txt;h=1a1066ec91a9010ffe185e8d1669d46693ba8dbc;hb=397ad714d8a0ddc3f0b9d5cbcbd68aec9cbe55d0;hp=4a0eafe4939201f0834610b8fb41924c5af3ca3f;hpb=77fcaa36178e739044b8ce4e68388440c4379a74;p=staging%2Fwindowmanager.git diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 4a0eafe..1a1066e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,25 +1,39 @@ wlproto(IVI_CON ivi-controller) include(FindPkgConfig) -pkg_check_modules(AFB REQUIRED afb-daemon==1.0) +pkg_check_modules(AFB REQUIRED afb-daemon) pkg_check_modules(SD REQUIRED libsystemd>=222) # We do not want a prefix for our module set(CMAKE_SHARED_MODULE_PREFIX "") +add_custom_command( + OUTPUT afb_binding_api.hpp afb_binding_glue.inl + DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/../generate-binding-glue.py + COMMAND python ${CMAKE_CURRENT_SOURCE_DIR}/../generate-binding-glue.py) + add_library(winman MODULE main.cpp wayland.cpp wayland.hpp util.cpp util.hpp - ${IVI_CON_PROTO}) + layout.cpp + layout.hpp + ${IVI_CON_PROTO} + json_helper.cpp + json_helper.hpp + app.hpp app.cpp + result.hpp + afb_binding_api.hpp + afb_binding_glue.inl layers.cpp layers.hpp) target_include_directories(winman PRIVATE ${AFB_INCLUDE_DIRS} ${SD_INCLUDE_DIRS} - ../include) + ../include + ../src) target_link_libraries(winman PRIVATE @@ -29,6 +43,9 @@ target_link_libraries(winman target_compile_definitions(winman PRIVATE + AFB_BINDING_VERSION=2 + # We do not want source location of messages + AFB_BINDING_PRAGMA_NO_VERBOSE_DETAILS WINMAN_VERSION_STRING="${PACKAGE_VERSION}" _GNU_SOURCE) # XXX should I define this here?! @@ -56,6 +73,12 @@ set_target_properties(winman LINK_FLAGS "-Wl,--version-script=../../export.map") +if (LINK_LIBCXX) + set_target_properties(winman + PROPERTIES + LINK_FLAGS "-Wl,--version-script=../../export.map -lc++") +endif() + if (NOT ${SANITIZER_MODE} STREQUAL "none" AND NOT ${SANITIZER_MODE} STREQUAL "") target_compile_options(winman PRIVATE