summaryrefslogtreecommitdiffstats
path: root/lskat
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2016-02-25 06:23:55 +0300
committerSlávek Banko <slavek.banko@axis.cz>2016-03-14 23:04:06 +0100
commitc70db62d3671e524d23ac974d296eb218159b000 (patch)
tree08d8ed5d0c7c170a7940bcbb80989b99ead98447 /lskat
parent133cc7035dbdcaf812d8370f729530fa60547f92 (diff)
downloadtdegames-c70db62d3671e524d23ac974d296eb218159b000.tar.gz
tdegames-c70db62d3671e524d23ac974d296eb218159b000.zip
Initial cmake conversion
Diffstat (limited to 'lskat')
-rw-r--r--lskat/CMakeLists.txt16
-rw-r--r--lskat/grafix/CMakeLists.txt6
-rw-r--r--lskat/lskat/CMakeLists.txt34
-rw-r--r--lskat/lskat/KRSocket.cpp12
-rw-r--r--lskat/lskatproc/CMakeLists.txt23
-rw-r--r--lskat/lskatproc/docs/CMakeLists.txt1
-rw-r--r--lskat/lskatproc/docs/en/CMakeLists.txt1
7 files changed, 87 insertions, 6 deletions
diff --git a/lskat/CMakeLists.txt b/lskat/CMakeLists.txt
new file mode 100644
index 00000000..ac533468
--- /dev/null
+++ b/lskat/CMakeLists.txt
@@ -0,0 +1,16 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+add_subdirectory( lskat )
+add_subdirectory( grafix )
+add_subdirectory( lskatproc )
+
+##### icons #####################################
+
+tde_install_icons( lskat )
+
+
+##### other data ################################
+
+install( FILES lskat.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
diff --git a/lskat/grafix/CMakeLists.txt b/lskat/grafix/CMakeLists.txt
new file mode 100644
index 00000000..5ce6d96a
--- /dev/null
+++ b/lskat/grafix/CMakeLists.txt
@@ -0,0 +1,6 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+install( FILES background.png deck1.png deck2.png deck3.png deck4.png t1.png
+ t2.png t3.png t4.png t5.png tback.png type1.png type2.png type3.png
+ DESTINATION ${DATA_INSTALL_DIR}/lskat/grafix
+)
diff --git a/lskat/lskat/CMakeLists.txt b/lskat/lskat/CMakeLists.txt
new file mode 100644
index 00000000..81ec42e7
--- /dev/null
+++ b/lskat/lskat/CMakeLists.txt
@@ -0,0 +1,34 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/libtdegames
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### lskat (executable) ########################
+
+tde_add_executable( lskat AUTOMOC
+ SOURCES msgdlg.cpp networkdlg.cpp namedlg.cpp KRemoteConnect.cpp KRSocket.cpp
+ TDEProcessConnect.cpp KMessageEntry.cpp KInteractiveConnect.cpp
+ KInputChildProcess.cpp KEMessage.cpp KEInput.cpp KConnectEntry.cpp
+ KChildConnect.cpp lskatview.cpp lskatdoc.cpp lskat.cpp main.cpp
+ networkdlgbase.ui
+ LINK tdecore-shared tdeui-shared tdeio-shared tdegames-shared tdednssd-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES lskatui.rc
+ DESTINATION ${DATA_INSTALL_DIR}/lskat
+)
diff --git a/lskat/lskat/KRSocket.cpp b/lskat/lskat/KRSocket.cpp
index 9b904ac3..a508989b 100644
--- a/lskat/lskat/KRSocket.cpp
+++ b/lskat/lskat/KRSocket.cpp
@@ -188,7 +188,7 @@ bool KRServerSocket::init( const char *_path,int optname,int value,int level )
// Heni - 05042000
if (optname>0)
{
- kde_socklen_t len=sizeof(value);
+ socklen_t len=sizeof(value);
if (-1==setsockopt(sock,level,optname,(char*)&value,len ))
{
kdWarning() << "Could not set socket options." << endl;
@@ -251,7 +251,7 @@ bool KRServerSocket::init( unsigned short int _port,int optname,int value,int le
// Heni - 05042000
if (optname>0)
{
- kde_socklen_t len=sizeof(value);
+ socklen_t len=sizeof(value);
if (-1==setsockopt(sock,level,optname,(char*)&value,len ))
{
kdWarning() << "Could not set socket options." << endl;
@@ -308,7 +308,7 @@ unsigned short int KRServerSocket::port()
if ( domain != PF_INET )
return false;
- ksockaddr_in name; kde_socklen_t len = sizeof(name);
+ ksockaddr_in name; socklen_t len = sizeof(name);
getsockname(sock, (struct sockaddr *) &name, &len);
return ntohs(get_sin_port(name));
}
@@ -318,7 +318,7 @@ unsigned long KRServerSocket::ipv4_addr()
if ( domain != PF_INET )
return 0;
- sockaddr_in name; kde_socklen_t len = sizeof(name);
+ sockaddr_in name; socklen_t len = sizeof(name);
getsockname(sock, (struct sockaddr *) &name, &len);
if (name.sin_family == AF_INET) // It's IPv4
return ntohl(name.sin_addr.s_addr);
@@ -337,7 +337,7 @@ void KRServerSocket::slotAccept( int )
ksockaddr_in clientname;
int new_sock;
- kde_socklen_t size = sizeof(clientname);
+ socklen_t size = sizeof(clientname);
if ((new_sock = accept (sock, (struct sockaddr *) &clientname, &size)) < 0)
{
@@ -352,7 +352,7 @@ void KRServerSocket::slotAccept( int )
struct sockaddr_un clientname;
int new_sock;
- kde_socklen_t size = sizeof(clientname);
+ socklen_t size = sizeof(clientname);
if ((new_sock = accept (sock, (struct sockaddr *) &clientname, &size)) < 0)
{
diff --git a/lskat/lskatproc/CMakeLists.txt b/lskat/lskatproc/CMakeLists.txt
new file mode 100644
index 00000000..5c9bb6a1
--- /dev/null
+++ b/lskat/lskatproc/CMakeLists.txt
@@ -0,0 +1,23 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### lskatproc (executable) ####################
+
+tde_add_executable( lskatproc AUTOMOC
+ SOURCES lskatproc.cpp KChildConnect.cpp KInputChildProcess.cpp KEMessage.cpp
+ KMessageEntry.cpp main.cpp
+ LINK tdecore-shared tdeui-shared tdeio-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
diff --git a/lskat/lskatproc/docs/CMakeLists.txt b/lskat/lskatproc/docs/CMakeLists.txt
new file mode 100644
index 00000000..89a876b0
--- /dev/null
+++ b/lskat/lskatproc/docs/CMakeLists.txt
@@ -0,0 +1 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
diff --git a/lskat/lskatproc/docs/en/CMakeLists.txt b/lskat/lskatproc/docs/en/CMakeLists.txt
new file mode 100644
index 00000000..89a876b0
--- /dev/null
+++ b/lskat/lskatproc/docs/en/CMakeLists.txt
@@ -0,0 +1 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer