Changeset - 1548f91d4022
[Not reviewed]
0 2 0
Chel Sea (chain) - 13 years ago 2012-11-12 02:41:17
chain@rpgfiction.net
Make Libyahoo2 backend optional (by using ENABLE_YAHOO2)
2 files changed with 15 insertions and 16 deletions:
0 comments (0 inline, 0 general)
CMakeLists.txt
Show inline comments
 
@@ -24,7 +24,7 @@ option(ENABLE_IRC "Build IRC plugin" ON)
 
option(ENABLE_PURPLE "Build Libpurple plugin" ON)
 
option(ENABLE_SKYPE "Build Skype plugin" ON)
 
#option(ENABLE_TWITTER "Build Twitter plugin" ON)
 
#option(ENABLE_YAHOO2 "Build Yahoo plugin" ON)
 
option(ENABLE_YAHOO2 "Build Libyahoo2 plugin" ON)
 

	
 
option(ENABLE_DOCS "Build Docs" ON)
 
option(ENABLE_LOG "Build with logging using Log4cxx" ON)
 
@@ -211,10 +211,10 @@ set(dbus_DIR "${CMAKE_SOURCE_DIR}/cmake_modules")
 
find_package(dbus)
 
endif()
 

	
 
#if(ENABLE_YAHOO2)
 
#	set(yahoo2_DIR "${CMAKE_SOURCE_DIR}/cmake_modules")
 
#	find_package(yahoo2)
 
#endif()
 
if(ENABLE_YAHOO2)
 
	set(yahoo2_DIR "${CMAKE_SOURCE_DIR}/cmake_modules")
 
	find_package(yahoo2)
 
endif()
 

	
 
####### Miscallanous ######
 

	
 
@@ -379,17 +379,16 @@ if (PROTOBUF_FOUND)
 
		message("Skype plugin      : no")
 
	endif()
 

	
 
#	We have our own copy now...
 
# 	if(YAHOO2_FOUND)
 
	if(ENABLE_YAHOO2)
 
 	if(YAHOO2_FOUND)
 
		message("Libyahoo2 plugin  : yes")
 
# 		include_directories(${YAHOO2_INCLUDE_DIR})
 
 		include_directories(${YAHOO2_INCLUDE_DIR})
 
	else()
 
		message("Libyahoo2 plugin  : no")
 
	endif()
 
# 	else()
 
# 		message("Libyahoo2 plugin  : no (install libyahoo2-devel)")
 
# 	endif()
 
		if(ENABLE_YAHOO2)
 
			message("Libyahoo2 plugin  : no (install libyahoo2-devel)")
 
		else(ENABLE_YAHOO2)
 
			message("Libyahoo2 plugin  : no (user disabled)")
 
		endif()
 
 	endif()
 

	
 
	message("Swiften plugin    : yes")
 
    message("Twitter plugin    : yes")
backends/CMakeLists.txt
Show inline comments
 
@@ -15,9 +15,9 @@ if (PROTOBUF_FOUND)
 
if (NOT WIN32)
 
	ADD_SUBDIRECTORY(smstools3)
 
	ADD_SUBDIRECTORY(frotz)
 
# 	if(YAHOO2_FOUND)
 
 	if(YAHOO2_FOUND)
 
		ADD_SUBDIRECTORY(libyahoo2)
 
# 	endif()
 
 	endif()
 
	ADD_SUBDIRECTORY(twitter)
 
	if (${LIBDBUSGLIB_FOUND})
 
		ADD_SUBDIRECTORY(skype)
0 comments (0 inline, 0 general)