Fixed compilation problems + support for latest swiften
This commit is contained in:
parent
53353b28b8
commit
c1cbd2d161
3 changed files with 18 additions and 10 deletions
|
@ -40,6 +40,14 @@ namespace Swift {
|
|||
return 0;
|
||||
}
|
||||
|
||||
Swift::TLSContextFactory* getTLSContextFactory() const {
|
||||
return 0;
|
||||
}
|
||||
|
||||
Swift::ProxyProvider* getProxyProvider() const {
|
||||
return 0;
|
||||
}
|
||||
|
||||
private:
|
||||
TimerFactory* timerFactory;
|
||||
ConnectionFactory* connectionFactory;
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
if (PROTOBUF_FOUND)
|
||||
add_custom_target(pb
|
||||
${PROTOBUF_PROTOC_EXECUTABLE}
|
||||
--cpp_out ${CMAKE_CURRENT_BINARY_DIR} --proto_path ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}/protocol.proto
|
||||
COMMENT "Running C++ protocol buffer compiler on protocol.proto"
|
||||
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/protocol.proto
|
||||
VERBATIM )
|
||||
ADD_CUSTOM_COMMAND(
|
||||
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/protocol.pb.cc ${CMAKE_CURRENT_BINARY_DIR}/protocol.pb.h
|
||||
COMMAND ${PROTOBUF_PROTOC_EXECUTABLE} --cpp_out ${CMAKE_CURRENT_BINARY_DIR} --proto_path ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}/protocol.proto
|
||||
COMMENT "Running C++ protocol buffer compiler on protocol.proto"
|
||||
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/protocol.proto
|
||||
)
|
||||
ADD_CUSTOM_TARGET(pb DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/protocol.pb.cc)
|
||||
endif()
|
||||
|
||||
FILE(GLOB HEADERS *.h protocol.h)
|
||||
|
|
|
@ -17,12 +17,11 @@ include_directories(${POPT_INCLUDE_DIR})
|
|||
|
||||
|
||||
|
||||
|
||||
if (PROTOBUF_FOUND)
|
||||
ADD_LIBRARY(transport SHARED ${HEADERS} ${SRC} ${SWIFTEN_SRC} ../include/transport/protocol.pb.cc)
|
||||
ADD_DEPENDENCIES(transport pb)
|
||||
ADD_LIBRARY(transport SHARED ${HEADERS} ${SRC} ${SWIFTEN_SRC} ../include/transport/protocol.pb.cc)
|
||||
ADD_DEPENDENCIES(transport pb)
|
||||
else()
|
||||
ADD_LIBRARY(transport SHARED ${HEADERS} ${SRC} ${SWIFTEN_SRC})
|
||||
ADD_LIBRARY(transport SHARED ${HEADERS} ${SRC} ${SWIFTEN_SRC})
|
||||
endif()
|
||||
|
||||
ADD_DEFINITIONS(-fPIC)
|
||||
|
|
Loading…
Add table
Reference in a new issue