[kdenetwork/ksirc] added cmake support

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1254232 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
samelian 13 years ago
parent 0ce518fe82
commit 46224eafb0

@ -103,6 +103,7 @@ option( BUILD_KPF "Build kpf" ${BUILD_ALL} )
option( BUILD_KPPP "Build kppp" ${BUILD_ALL} ) option( BUILD_KPPP "Build kppp" ${BUILD_ALL} )
option( BUILD_KRDC "Build krdc" ${BUILD_ALL} ) option( BUILD_KRDC "Build krdc" ${BUILD_ALL} )
option( BUILD_KRFB "Build krfb" ${BUILD_ALL} ) option( BUILD_KRFB "Build krfb" ${BUILD_ALL} )
option( BUILD_KSIRC "Build ksirc" ${BUILD_ALL} )
option( BUILD_LIBRSS "Build librss" ${BUILD_ALL} ) option( BUILD_LIBRSS "Build librss" ${BUILD_ALL} )
@ -137,6 +138,7 @@ tde_conditional_add_subdirectory( BUILD_KPF kpf )
tde_conditional_add_subdirectory( BUILD_KPPP kppp ) tde_conditional_add_subdirectory( BUILD_KPPP kppp )
tde_conditional_add_subdirectory( BUILD_KRDC krdc ) tde_conditional_add_subdirectory( BUILD_KRDC krdc )
tde_conditional_add_subdirectory( BUILD_KRFB krfb ) tde_conditional_add_subdirectory( BUILD_KRFB krfb )
tde_conditional_add_subdirectory( BUILD_KSIRC ksirc )
tde_conditional_add_subdirectory( BUILD_LIBRSS librss ) tde_conditional_add_subdirectory( BUILD_LIBRSS librss )

@ -0,0 +1,72 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
# FIXME KDE_CXXFLAGS = $(USE_RTTI) $(USE_EXCEPTIONS)
add_subdirectory( KSTicker )
add_subdirectory( KSProgress )
add_subdirectory( KSPrefs )
add_subdirectory( KSOpenkSirc )
add_subdirectory( img )
add_subdirectory( icons )
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_BINARY_DIR}/KSOpenkSirc
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_BINARY_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
install( PROGRAMS
dsirc
DESTINATION ${BIN_INSTALL_DIR} )
install( FILES
ksirc.pl filters.pl autodcc.pl sirc.help.gz relnotes eventsrc
DESTINATION ${DATA_INSTALL_DIR}/ksirc )
install( FILES
ksircrc
DESTINATION ${CONFIG_INSTALL_DIR} )
install( FILES
ksirc.desktop
DESTINATION ${XDG_APPS_INSTALL_DIR} )
##### ksirc (kdeinit) ###########################
tde_add_kdeinit_executable( ksirc AUTOMOC
SOURCES
toplevel.cpp charSelector.cpp chanButtons.cpp ksirc.cpp alistbox.cpp
ahistlineedit.cpp iocontroller.cpp NewWindowDialog.cpp
messageReceiver.cpp ioBroadcast.cpp ksircprocess.cpp
servercontroller.cpp FilterRuleWidget.ui FilterRuleEditor.cpp
ioDiscard.cpp ioDCC.cpp ioLAG.cpp ioNotify.cpp ssfeprompt.cpp
ssfepromptdata.cpp usercontrolmenu.cpp baserules.cpp chanparser.cpp
objFinder.cpp displayMgrSDI.cpp displayMgrMDI.cpp mditoplevel.cpp
ksopts.cpp topic.cpp ksview.cpp logfile.cpp kstextview.cpp
colorpicker.cpp ksparser.cpp dccManagerbase.ui dccManager.cpp
dccToplevel.cpp dockservercontroller.cpp nickColourMaker.cpp
dccNewbase.ui dccNew.cpp
LINK
ksprefs-static ksprogress-static ksopenksirc-static ksticker-static
kio-shared
)

@ -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}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
##### other data ################################
install( FILES servers.txt servers.ini DESTINATION ${DATA_INSTALL_DIR}/ksirc )
##### ksopenksirc (static) ######################
tde_add_library( ksopenksirc STATIC_PIC AUTOMOC
SOURCES
open_ksirc.cpp open_ksircData.ui serverFileParser.cpp enter_combo.cpp
)

@ -48,7 +48,7 @@ open_ksirc::open_ksirc
// changes are written to ~/.kde/share/apps/ksirc/servers.txt // changes are written to ~/.kde/share/apps/ksirc/servers.txt
TQString filename = locate("appdata", "servers.txt"); TQString filename = locate("appdata", "servers.txt");
serverFileParser::readDatafile( filename ); serverFileParser::readDatafile( filename.ascii() );
Groups.setAutoDelete(TRUE); Groups.setAutoDelete(TRUE);
@ -137,8 +137,8 @@ void open_ksirc::insertGroupList()
Server *serv; Server *serv;
for ( serv=Groups.first(); serv != 0; serv=Groups.next() ) { for ( serv=Groups.first(); serv != 0; serv=Groups.next() ) {
if (tempgroups.find(serv->group()) == -1) if (tempgroups.find(serv->group().ascii()) == -1)
tempgroups.inSort( serv->group() ); tempgroups.inSort( serv->group().ascii() );
} }
ComboB_ServerGroup->insertItem(i18n( "Recent") ); ComboB_ServerGroup->insertItem(i18n( "Recent") );
@ -158,7 +158,7 @@ void open_ksirc::insertServerList( const char * group )
Server *serv; Server *serv;
for ( serv=Groups.first(); serv != 0; serv=Groups.next() ) { for ( serv=Groups.first(); serv != 0; serv=Groups.next() ) {
if ( !qstrcmp(serv->group(), group) ) { if ( !qstrcmp(serv->group().ascii(), group) ) {
newListBox->insertItem( serv->server(), 0 ); newListBox->insertItem( serv->server(), 0 );
} }
} }
@ -188,7 +188,7 @@ void open_ksirc::setServer( const TQString &serveraddress )
portlist = serv->ports(); portlist = serv->ports();
for ( p=portlist.last(); p != 0; p=portlist.prev() ) { for ( p=portlist.last(); p != 0; p=portlist.prev() ) {
newListBox->insertItem( p->portnum() ); newListBox->insertItem( p->portnum() );
if (strcmp(p->portnum(), "6667") == 0) if (strcmp(p->portnum().ascii(), "6667") == 0)
defaultport = TRUE; defaultport = TRUE;
} }
LineE_Password->setText( serv->password() ); LineE_Password->setText( serv->password() );
@ -249,7 +249,7 @@ TQString open_ksirc::decryptPassword( const TQString &scrambled )
void open_ksirc::setGroup( const TQString &group ) void open_ksirc::setGroup( const TQString &group )
{ {
insertServerList( group ); insertServerList( group.ascii() );
if (ComboB_ServerName->count() > 0) { if (ComboB_ServerName->count() > 0) {
TQString blah = TQString(ComboB_ServerName->text( 0 )); TQString blah = TQString(ComboB_ServerName->text( 0 ));
setServer(blah); setServer(blah);
@ -284,7 +284,7 @@ void open_ksirc::clickConnect()
port = ComboB_ServerPort->currentText(); port = ComboB_ServerPort->currentText();
for ( serv=Groups.first(); serv != 0; serv=Groups.next() ) { for ( serv=Groups.first(); serv != 0; serv=Groups.next() ) {
if (strcmp(serv->server(), server) == 0) { if (strcmp(serv->server().ascii(), server.ascii()) == 0) {
script = serv->script(); script = serv->script();
} }
break; break;

@ -0,0 +1,31 @@
#################################################
#
# (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}/..
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
##### ksprefs (static) ##########################
tde_add_library( ksprefs STATIC_PIC AUTOMOC
SOURCES
ksprefs.cpp page_colorsbase.ui page_generalbase.ui
page_rmbmenubase.ui page_servchanbase.ui page_startupbase.ui
page_colors.cpp page_general.cpp page_rmbmenu.cpp page_servchan.cpp
page_startup.cpp page_font.cpp page_autoconnectbase.ui
page_autoconnect.cpp page_irccolorsbase.ui page_irccolors.cpp
page_looknfeelbase.ui page_looknfeel.cpp page_shortcutsbase.ui
page_shortcuts.cpp
)

@ -0,0 +1,26 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
# FIXME KDE_CXXFLAGS = $(USE_RTTI) $(USE_EXCEPTIONS)
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
##### ksprogress (static) #######################
tde_add_library( ksprogress STATIC_PIC AUTOMOC
SOURCES
ksprogress.cpp ksprogressdata.cpp
)

@ -0,0 +1,24 @@
#################################################
#
# (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}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
##### ksticker (static) #########################
tde_add_library( ksticker STATIC_PIC AUTOMOC
SOURCES
ksticker.cpp speeddialog.cpp speeddialogData.cpp kspainter.cpp
)

@ -0,0 +1,13 @@
#################################################
#
# (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}/ksirc/icons )
tde_install_icons( ksirc )

@ -0,0 +1,22 @@
#################################################
#
# (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( emoticons )
install( FILES
server.xpm channel.xpm channels.xpm ksirc_a.xpm ksirc_b.xpm
arrow.png greenpin.png madsmiley.png smiley.png sadsmiley.png
blueball.png star.png bluepin.png info.png info1.png mini-run.png
ksirc.png sdi.png mdi.png dcc.png kick.png mode.png quit.png X.png
dccget.png minus.png notice.png servinfo.png action.png dccsend.png
ominus.png topic.png bminus.png elipsis.png oplus.png bplus.png
error.png part.png ctcpping.png join.png plus.png
DESTINATION ${DATA_INSTALL_DIR}/ksirc/pics )

@ -0,0 +1,16 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
install( FILES
biggrin.png clown.png cry.png devil.png frown.png heart.png
loveit.png puh.png puh2.png redface.png sadley.png slime.png
smile.png wink.png yummie.png
DESTINATION ${DATA_INSTALL_DIR}/ksirc/pics/emoticons )
Loading…
Cancel
Save