summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/yahoo
diff options
context:
space:
mode:
authorsamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-22 20:12:04 +0000
committersamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-22 20:12:04 +0000
commitac87680632b4fb6582d1391b042eff7f0305c0a2 (patch)
treebfeee57d104a1bbc7c387d35190fa55d692115b7 /kopete/protocols/yahoo
parentaca844682f86c04f6b67b23de2a820fb0c63a32e (diff)
downloadtdenetwork-ac87680632b4fb6582d1391b042eff7f0305c0a2.tar.gz
tdenetwork-ac87680632b4fb6582d1391b042eff7f0305c0a2.zip
[kdenetwork/kopete] added cmake support
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1233119 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kopete/protocols/yahoo')
-rw-r--r--kopete/protocols/yahoo/CMakeLists.txt49
-rw-r--r--kopete/protocols/yahoo/icons/CMakeLists.txt12
-rw-r--r--kopete/protocols/yahoo/libkyahoo/CMakeLists.txt48
-rw-r--r--kopete/protocols/yahoo/libkyahoo/ConfigureChecks.cmake16
-rw-r--r--kopete/protocols/yahoo/ui/CMakeLists.txt30
5 files changed, 155 insertions, 0 deletions
diff --git a/kopete/protocols/yahoo/CMakeLists.txt b/kopete/protocols/yahoo/CMakeLists.txt
new file mode 100644
index 00000000..124fc32a
--- /dev/null
+++ b/kopete/protocols/yahoo/CMakeLists.txt
@@ -0,0 +1,49 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( libkyahoo )
+add_subdirectory( ui )
+add_subdirectory( icons )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}/ui
+ ${CMAKE_BINARY_DIR}/kopete/libkopete/ui
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/libkyahoo
+ ${CMAKE_CURRENT_SOURCE_DIR}/ui
+ ${CMAKE_SOURCE_DIR}/kopete/libkopete
+ ${CMAKE_SOURCE_DIR}/kopete/libkopete/ui
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES yahooconferenceui.rc yahoochatui.rc DESTINATION ${DATA_INSTALL_DIR}/kopete_yahoo )
+install( FILES kopete_yahoo.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### kopete_yahoo (module) #####################
+
+tde_add_kpart( kopete_yahoo AUTOMOC
+ SOURCES
+ yahooprotocol.cpp yahooeditaccount.cpp yahooaddcontact.cpp
+ yahooaccount.cpp yahoocontact.cpp yahooconferencemessagemanager.cpp
+ yahoochatsession.cpp yahooverifyaccount.cpp yahoowebcam.cpp
+ LINK kyahoo-static kopeteyahooui-static kopeteui-static kopete-shared kopete_videodevice-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kopete/protocols/yahoo/icons/CMakeLists.txt b/kopete/protocols/yahoo/icons/CMakeLists.txt
new file mode 100644
index 00000000..ba51467b
--- /dev/null
+++ b/kopete/protocols/yahoo/icons/CMakeLists.txt
@@ -0,0 +1,12 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_install_icons( DESTINATION ${DATA_INSTALL_DIR}/kopete/icons )
diff --git a/kopete/protocols/yahoo/libkyahoo/CMakeLists.txt b/kopete/protocols/yahoo/libkyahoo/CMakeLists.txt
new file mode 100644
index 00000000..a4ba8ba0
--- /dev/null
+++ b/kopete/protocols/yahoo/libkyahoo/CMakeLists.txt
@@ -0,0 +1,48 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include( ConfigureChecks.cmake )
+
+if( HAVE_INTTYPES_H )
+ add_definitions( -DHAVE_INTTYPES_H )
+elseif( HAVE_STDINT_H )
+ add_definitions( -DHAVE_STDINT_H )
+endif()
+
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+
+##### kyahoo (static) ###########################
+
+tde_add_library( kyahoo STATIC_PIC AUTOMOC
+ SOURCES
+ client.cpp task.cpp connector.cpp inputprotocolbase.cpp
+ ymsgprotocol.cpp ymsgtransfer.cpp transfer.cpp
+ yahoobytestream.cpp bytestream.cpp yahooclientstream.cpp
+ yahooconnector.cpp safedelete.cpp stream.cpp sha1.c
+ md5.c crypt.c coreprotocol.cpp logintask.cpp libyahoo.c
+ yahoo_fn.c listtask.cpp statusnotifiertask.cpp
+ mailnotifiertask.cpp messagereceivertask.cpp
+ sendnotifytask.cpp sendmessagetask.cpp logofftask.cpp
+ changestatustask.cpp modifybuddytask.cpp picturenotifiertask.cpp
+ requestpicturetask.cpp yahoobuddyiconloader.cpp
+ stealthtask.cpp sendpicturetask.cpp webcamtask.cpp
+ conferencetask.cpp sendauthresptask.cpp pingtask.cpp
+ yabtask.cpp yabentry.cpp modifyyabtask.cpp chatsessiontask.cpp
+ sendfiletask.cpp filetransfernotifiertask.cpp
+ receivefiletask.cpp yahoochattask.cpp
+)
diff --git a/kopete/protocols/yahoo/libkyahoo/ConfigureChecks.cmake b/kopete/protocols/yahoo/libkyahoo/ConfigureChecks.cmake
new file mode 100644
index 00000000..e7af0c6c
--- /dev/null
+++ b/kopete/protocols/yahoo/libkyahoo/ConfigureChecks.cmake
@@ -0,0 +1,16 @@
+#################################################
+#
+# (C) 2010 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+check_include_file( inttypes.h HAVE_INTTYPES_H )
+check_include_file( stdint.h HAVE_STDINT_H )
+
+check_include_file( string.h HAVE_STRING_H )
+check_include_file( strings.h HAVE_STRINGS_H )
diff --git a/kopete/protocols/yahoo/ui/CMakeLists.txt b/kopete/protocols/yahoo/ui/CMakeLists.txt
new file mode 100644
index 00000000..4da1fb8a
--- /dev/null
+++ b/kopete/protocols/yahoo/ui/CMakeLists.txt
@@ -0,0 +1,30 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/..
+ ${CMAKE_SOURCE_DIR}/kopete/libkopete
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+
+##### kopeteyahooui (static) ####################
+
+tde_add_library( kopeteyahooui STATIC_PIC AUTOMOC
+ SOURCES
+ yahooadd.ui yahooeditaccountbase.ui yahooinvitelistbase.ui
+ yahooinvitelistimpl.cpp empty.cpp yahooverifyaccountbase.ui
+ yahoostealthsetting.ui yahoowebcamdialog.cpp yahoogeneralinfowidget.ui
+ yahoouserinfodialog.cpp yahooworkinfowidget.ui
+ yahoootherinfowidget.ui
+)