summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/yahoo/libkyahoo
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/protocols/yahoo/libkyahoo')
-rw-r--r--kopete/protocols/yahoo/libkyahoo/CMakeLists.txt48
-rw-r--r--kopete/protocols/yahoo/libkyahoo/ConfigureChecks.cmake16
2 files changed, 64 insertions, 0 deletions
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 )