Changeset - f9696d0db6f1
[Not reviewed]
0 3 0
Vitaly Takmazov - 13 years ago 2012-11-28 07:02:27
vitalyster@gmail.com
enable twitter and libcommuni builds in windows
3 files changed with 11 insertions and 4 deletions:
0 comments (0 inline, 0 general)
backends/libcommuni/CMakeLists.txt
Show inline comments
 
cmake_minimum_required(VERSION 2.6)
 
FILE(GLOB SRC *.cpp)
 
FILE(GLOB HEADERS *.h)
 
QT4_WRAP_CPP(SRC ${HEADERS})
 
QT4_WRAP_CPP(SRC ${HEADERS} OPTIONS -DBOOST_TT_HAS_OPERATOR_HPP_INCLUDED)
 
ADD_EXECUTABLE(spectrum2_libcommuni_backend ${SRC})
 
 
if (NOT WIN32)
 
target_link_libraries(spectrum2_libcommuni_backend ${IRC_LIBRARY} ${QT_LIBRARIES} transport pthread)
 
 
else ()
 
target_link_libraries(spectrum2_libcommuni_backend ${IRC_LIBRARY} ${QT_LIBRARIES} transport)
 
endif()
 
INSTALL(TARGETS spectrum2_libcommuni_backend RUNTIME DESTINATION bin)
 
backends/twitter/TwitterPlugin.h
Show inline comments
 
@@ -11,11 +11,12 @@
 
#include "transport/threadpool.h"
 

	
 
#include "Swiften/Swiften.h"
 
#ifndef _WIN32
 
#include "unistd.h"
 
#include "signal.h"
 
#include "sys/wait.h"
 
#include "sys/signal.h"
 

	
 
#endif
 
#include <boost/algorithm/string.hpp>
 
#include <boost/signal.hpp>
 
#include <boost/thread.hpp>
backends/twitter/main.cpp
Show inline comments
 
#include "TwitterPlugin.h"
 
DEFINE_LOGGER(logger, "Twitter Backend");
 

	
 
#ifndef _WIN32
 
static void spectrum_sigchld_handler(int sig)
 
{
 
	int status;
 
@@ -16,16 +17,18 @@ static void spectrum_sigchld_handler(int sig)
 
		perror(errmsg);
 
	}
 
}
 
#endif
 

	
 

	
 
int main (int argc, char* argv[]) {
 
	std::string host;
 
	int port;
 

	
 
#ifndef _WIN32
 
	if (signal(SIGCHLD, spectrum_sigchld_handler) == SIG_ERR) {
 
		std::cout << "SIGCHLD handler can't be set\n";
 
		return -1;
 
	}
 
#endif
 

	
 
	std::string error;
 
	Config *cfg = Config::createFromArgs(argc, argv, error, host, port);
0 comments (0 inline, 0 general)