#
SET(CYNARA_COMMON_VERSION_MAJOR 0)
-SET(CYNARA_COMMON_VERSION ${CYNARA_COMMON_VERSION_MAJOR}.0.1)
+SET(CYNARA_COMMON_VERSION ${CYNARA_COMMON_VERSION_MAJOR}.4.0)
SET(COMMON_PATH ${CYNARA_PATH}/common)
+INCLUDE_DIRECTORIES(
+ ${CYNARA_PATH}/include
+ )
+
SET(COMMON_SOURCES
+ ${COMMON_PATH}/config/PathConfig.cpp
${COMMON_PATH}/containers/BinaryQueue.cpp
${COMMON_PATH}/log/log.cpp
+ ${COMMON_PATH}/plugin/PluginManager.cpp
${COMMON_PATH}/protocol/ProtocolAdmin.cpp
+ ${COMMON_PATH}/protocol/ProtocolAgent.cpp
${COMMON_PATH}/protocol/ProtocolClient.cpp
${COMMON_PATH}/protocol/ProtocolFrame.cpp
${COMMON_PATH}/protocol/ProtocolFrameHeader.cpp
${COMMON_PATH}/protocol/ProtocolFrameSerializer.cpp
${COMMON_PATH}/protocol/ProtocolSerialization.cpp
${COMMON_PATH}/protocol/ProtocolSignal.cpp
+ ${COMMON_PATH}/request/AdminCheckRequest.cpp
+ ${COMMON_PATH}/request/AgentActionRequest.cpp
+ ${COMMON_PATH}/request/AgentRegisterRequest.cpp
+ ${COMMON_PATH}/request/CancelRequest.cpp
${COMMON_PATH}/request/CheckRequest.cpp
+ ${COMMON_PATH}/request/InsertOrUpdateBucketRequest.cpp
+ ${COMMON_PATH}/request/RemoveBucketRequest.cpp
${COMMON_PATH}/request/RequestTaker.cpp
+ ${COMMON_PATH}/request/SetPoliciesRequest.cpp
${COMMON_PATH}/request/SignalRequest.cpp
+ ${COMMON_PATH}/response/AgentActionResponse.cpp
+ ${COMMON_PATH}/response/AgentRegisterResponse.cpp
+ ${COMMON_PATH}/response/CancelResponse.cpp
${COMMON_PATH}/response/CheckResponse.cpp
+ ${COMMON_PATH}/response/CodeResponse.cpp
${COMMON_PATH}/response/ResponseTaker.cpp
${COMMON_PATH}/sockets/Socket.cpp
${COMMON_PATH}/sockets/SocketClient.cpp
${COMMON_PATH}/types/PolicyBucket.cpp
${COMMON_PATH}/types/PolicyKey.cpp
+ ${COMMON_PATH}/types/PolicyKeyHelpers.cpp
+ ${COMMON_PATH}/types/PolicyResult.cpp
)
IF (CMAKE_BUILD_TYPE MATCHES "DEBUG")
)
ENDIF (CMAKE_BUILD_TYPE MATCHES "DEBUG")
+ADD_DEFINITIONS("-fvisibility=default")
+
ADD_LIBRARY(${TARGET_CYNARA_COMMON} SHARED ${COMMON_SOURCES})
SET_TARGET_PROPERTIES(
${TARGET_CYNARA_COMMON}
PROPERTIES
- COMPILE_FLAGS "-D_GNU_SOURCE -fPIC -fvisibility=default"
SOVERSION ${CYNARA_COMMON_VERSION_MAJOR}
VERSION ${CYNARA_COMMON_VERSION}
)
IF (CMAKE_BUILD_TYPE MATCHES "DEBUG")
SET(CYNARA_DBG_LIBRARIES
${CYNARA_DEP_LIBRARIES}
+ dw
)
ENDIF (CMAKE_BUILD_TYPE MATCHES "DEBUG")
)
INSTALL(TARGETS ${TARGET_CYNARA_COMMON} DESTINATION ${LIB_INSTALL_DIR})
+INSTALL(FILES
+ ${COMMON_PATH}/types/PolicyResult.h
+ ${COMMON_PATH}/types/PolicyType.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}/cynara/types
+ )
+INSTALL(FILES
+ ${COMMON_PATH}/plugin/ExternalPluginInterface.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}/cynara/plugin
+ )