Changeset - edfa4ec64489
[Not reviewed]
0 2 0
Chel Sea (chain) - 13 years ago 2012-11-12 22:35:02
chain@rpgfiction.net
make Twitter optional (by using ENABLE_TWITTER)
2 files changed with 13 insertions and 7 deletions:
0 comments (0 inline, 0 general)
CMakeLists.txt
Show inline comments
 
@@ -23,7 +23,7 @@ option(ENABLE_PQXX "Build with Postgres supoort" ON)
 
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_TWITTER "Build Twitter plugin" ON)
 
option(ENABLE_YAHOO2 "Build Libyahoo2 plugin" ON)
 

	
 
option(ENABLE_DOCS "Build Docs" ON)
 
@@ -373,10 +373,16 @@ if (PROTOBUF_FOUND)
 
				message("Skype plugin      : no (user disabled)")
 
			endif()
 
		endif()
 
		if(ENABLE_TWITTER)
 
			message("Twitter plugin    : yes")
 
		else(ENABLE_TWITTER)
 
			message("Twitter plugin    : no (user disabled)")
 
		endif()
 
	else()
 
		message("Frotz plugin      : no")
 
		message("SMSTools3 plugin  : no")
 
		message("Skype plugin      : no")
 
		message("Frotz plugin      : no (does not run on Win32)")
 
		message("SMSTools3 plugin  : no (does not run on Win32)")
 
		message("Skype plugin      : no (does not run on Win32)")
 
		message("Twitter plugin    : no (does not run on Win32)")
 
	endif()
 

	
 
 	if(YAHOO2_FOUND)
 
@@ -391,8 +397,6 @@ if (PROTOBUF_FOUND)
 
 	endif()
 

	
 
	message("Swiften plugin    : yes")
 
    message("Twitter plugin    : yes")
 

	
 
else()
 
	message("Network plugins   : no (install libprotobuf-dev)")
 
	message("Libpurple plugin  : no (install libpurple and libprotobuf-dev)")
backends/CMakeLists.txt
Show inline comments
 
@@ -18,7 +18,9 @@ if (NOT WIN32)
 
 	if(YAHOO2_FOUND)
 
		ADD_SUBDIRECTORY(libyahoo2)
 
 	endif()
 
	ADD_SUBDIRECTORY(twitter)
 
	if(ENABLE_TWITTER)
 
		ADD_SUBDIRECTORY(twitter)
 
	endif()
 
	if (${LIBDBUSGLIB_FOUND})
 
		ADD_SUBDIRECTORY(skype)
 
	endif()
0 comments (0 inline, 0 general)