make Twitter optional (by using ENABLE_TWITTER)

This commit is contained in:
chain 2012-11-12 21:18:15 +01:00
parent 1548f91d40
commit 487ad85fad
2 changed files with 13 additions and 7 deletions

View file

@ -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)")

View file

@ -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()