mirror of
https://github.com/KDE/krfb
synced 2026-07-01 07:41:17 -07:00
Add cmake support
svn path=/trunk/KDE/kdenetwork/doc/krfb/; revision=517205
This commit is contained in:
29
CMakeLists.txt
Normal file
29
CMakeLists.txt
Normal file
@@ -0,0 +1,29 @@
|
||||
kde4_header()
|
||||
|
||||
add_subdirectory( srvloc )
|
||||
add_subdirectory( kinetd )
|
||||
add_subdirectory( libvncserver )
|
||||
add_subdirectory( krfb )
|
||||
add_subdirectory( kcm_krfb )
|
||||
add_subdirectory( krfb_httpd )
|
||||
|
||||
include_directories( ${KDE4_INCLUDE_DIR} ${QT_INCLUDES} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} )
|
||||
|
||||
|
||||
########### install files ###############
|
||||
|
||||
|
||||
kde4_footer()
|
||||
|
||||
|
||||
|
||||
#original Makefile.am contents follow:
|
||||
|
||||
#SUBDIRS = srvloc kinetd libvncserver krfb kcm_krfb krfb_httpd
|
||||
#
|
||||
#EXTRA_DIST = AUTHORS README TODO NOTES DCOP-INTERFACE
|
||||
#
|
||||
## not a GNU package. You can remove this line, if
|
||||
## have all needed files, that a GNU package needs
|
||||
#AUTOMAKE_OPTIONS = foreign
|
||||
#
|
||||
18
doc/CMakeLists.txt
Normal file
18
doc/CMakeLists.txt
Normal file
@@ -0,0 +1,18 @@
|
||||
kde4_header()
|
||||
|
||||
include_directories( ${KDE4_INCLUDE_DIR} ${QT_INCLUDES} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} )
|
||||
|
||||
|
||||
########### install files ###############
|
||||
|
||||
|
||||
kde4_footer()
|
||||
|
||||
|
||||
|
||||
#original Makefile.am contents follow:
|
||||
|
||||
#
|
||||
#KDE_LANG = en
|
||||
#KDE_DOCS = AUTO
|
||||
#
|
||||
52
kcm_krfb/CMakeLists.txt
Normal file
52
kcm_krfb/CMakeLists.txt
Normal file
@@ -0,0 +1,52 @@
|
||||
kde4_header()
|
||||
|
||||
include_directories( ${KDE4_INCLUDE_DIR} ${QT_INCLUDES} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(kcm_krfb_PART_SRCS kcm_krfb.cpp )
|
||||
|
||||
kde4_automoc(${kcm_krfb_PART_SRCS})
|
||||
|
||||
kde4_add_ui_files(kcm_krfb_PART_SRCS configurationwidget.ui )
|
||||
|
||||
kde4_add_plugin(kcm_krfb ${kcm_krfb_PART_SRCS})
|
||||
|
||||
kde4_install_libtool_file( ${PLUGIN_INSTALL_DIR} kcm_krfb )
|
||||
|
||||
target_link_libraries(kcm_krfb ${QT_AND_KDECORE_LIBS} krfbconfig kdeui kio )
|
||||
|
||||
install_targets(${LIB_INSTALL_DIR}/kde4 kcm_krfb )
|
||||
|
||||
|
||||
########### install files ###############
|
||||
|
||||
install_files( ${XDG_APPS_DIR} FILES kcmkrfb.desktop )
|
||||
|
||||
kde4_footer()
|
||||
|
||||
|
||||
|
||||
#original Makefile.am contents follow:
|
||||
|
||||
#METASOURCES = AUTO
|
||||
#
|
||||
## Code
|
||||
#kde_module_LTLIBRARIES = kcm_krfb.la
|
||||
#
|
||||
#kcm_krfb_la_SOURCES = configurationwidget.ui kcm_krfb.cpp
|
||||
#kcm_krfb_la_LDFLAGS = $(all_libraries) $(KDE_PLUGIN) -module
|
||||
#kcm_krfb_la_LIBADD = ../krfb/libkrfbconfig.la $(LIB_KDEUI) -lkio
|
||||
#
|
||||
## Services
|
||||
#xdg_apps_DATA = kcmkrfb.desktop
|
||||
#
|
||||
#EXTRA_DIST = $(kcm_krfb_la_SOURCES)\
|
||||
# $(xdg_apps_DATA)
|
||||
#
|
||||
## set the include path for X, qt and KDE
|
||||
#INCLUDES= -I../krfb $(all_includes)
|
||||
#
|
||||
#messages: rc.cpp
|
||||
# $(XGETTEXT) *.cpp *.h -o $(podir)/kcm_krfb.pot
|
||||
61
kinetd/CMakeLists.txt
Normal file
61
kinetd/CMakeLists.txt
Normal file
@@ -0,0 +1,61 @@
|
||||
kde4_header()
|
||||
|
||||
include_directories( ${CMAKE_SOURCE_DIR}/krfb/srvloc ${KDE4_INCLUDE_DIR} ${QT_INCLUDES} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(kded_kinetd_PART_SRCS kinetd.cpp )
|
||||
|
||||
kde4_automoc(${kded_kinetd_PART_SRCS})
|
||||
|
||||
kde4_add_dcop_skels(kded_kinetd_PART_SRCS kinetd.h )
|
||||
|
||||
kde4_add_plugin(kded_kinetd ${kded_kinetd_PART_SRCS})
|
||||
|
||||
kde4_install_libtool_file( ${PLUGIN_INSTALL_DIR} kded_kinetd )
|
||||
|
||||
target_link_libraries(kded_kinetd ${QT_AND_KDECORE_LIBS} srvloc kio kdnssd )
|
||||
|
||||
install_targets(${LIB_INSTALL_DIR}/kde4 kded_kinetd )
|
||||
|
||||
|
||||
########### install files ###############
|
||||
|
||||
install_files( ${SERVICETYPES_INSTALL_DIR} FILES kinetdmodule.desktop )
|
||||
install_files( ${SERVICES_INSTALL_DIR}/kded FILES kinetd.desktop )
|
||||
|
||||
kde4_footer()
|
||||
|
||||
|
||||
|
||||
#original Makefile.am contents follow:
|
||||
|
||||
#METASOURCES = AUTO
|
||||
#
|
||||
## Code
|
||||
#kde_module_LTLIBRARIES = kded_kinetd.la
|
||||
#
|
||||
#kded_kinetd_la_SOURCES = kinetd.cpp kinetd.skel
|
||||
#kded_kinetd_la_LDFLAGS = $(all_libraries) -module -avoid-version
|
||||
#kded_kinetd_la_LIBADD = ../srvloc/libsrvloc.la $(LIB_KIO) $(LIB_KDNSSD)
|
||||
#
|
||||
## Services
|
||||
#kde_servicetypes_DATA = kinetdmodule.desktop
|
||||
#kdeddir = $(kde_servicesdir)/kded
|
||||
#kded_DATA = kinetd.desktop
|
||||
#
|
||||
#EXTRA_DIST = $(kded_kinetd_la_SOURCES)\
|
||||
# $(kded_DATA) \
|
||||
# $(kde_servicetypes_DATA) \
|
||||
# eventsrc README.debugging
|
||||
#
|
||||
#install-data-local:
|
||||
# $(mkinstalldirs) $(DESTDIR)$(kde_datadir)/kinetd
|
||||
# $(INSTALL_DATA) $(srcdir)/eventsrc $(DESTDIR)$(kde_datadir)/kinetd/eventsrc
|
||||
#
|
||||
## set the include path for X, qt and KDE
|
||||
#INCLUDES= -I$(top_srcdir)/krfb/srvloc $(all_includes)
|
||||
#
|
||||
#messages: rc.cpp
|
||||
# $(XGETTEXT) *.cpp -o $(podir)/kinetd.pot
|
||||
80
krfb/CMakeLists.txt
Normal file
80
krfb/CMakeLists.txt
Normal file
@@ -0,0 +1,80 @@
|
||||
kde4_header()
|
||||
|
||||
include_directories( ${CMAKE_SOURCE_DIR}/krfb/libvncserver ${CMAKE_SOURCE_DIR}/krfb/srvloc ${KDE4_INCLUDE_DIR} ${QT_INCLUDES} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(krfb_SRCS
|
||||
rfbcontroller.cc
|
||||
xupdatescanner.cc
|
||||
main.cpp
|
||||
krfbifaceimpl.cc
|
||||
trayicon.cpp
|
||||
connectiondialog.cc )
|
||||
|
||||
kde4_automoc(${krfb_SRCS})
|
||||
|
||||
kde4_add_ui_files(krfb_SRCS connectionwidget.ui )
|
||||
|
||||
kde4_add_dcop_skels(krfb_SRCS krfbiface.h )
|
||||
|
||||
kde4_add_executable(krfb ${krfb_SRCS})
|
||||
|
||||
target_link_libraries(krfb ${QT_AND_KDECORE_LIBS} krfbconfig vncserver srvloc Xtst kdeui kio )
|
||||
|
||||
install_targets(/bin krfb )
|
||||
|
||||
|
||||
########### install files ###############
|
||||
|
||||
install_files( ${XDG_APPS_DIR} FILES krfb.desktop )
|
||||
install_files( ${DATA_INSTALL_DIR}/krfb FILES eventsrc )
|
||||
install_files( ${DATA_INSTALL_DIR}/krfb/pics FILES eyes-open24.png eyes-closed24.png connection-side-image.png )
|
||||
install_files( ${SERVICES_INSTALL_DIR} FILES kinetd_krfb.desktop )
|
||||
|
||||
kde4_install_icons( ${ICON_INSTALL_DIR} hicolor )
|
||||
|
||||
kde4_footer()
|
||||
|
||||
|
||||
|
||||
#original Makefile.am contents follow:
|
||||
|
||||
#KDE_CXXFLAGS = $(USE_THREADS)
|
||||
#
|
||||
#METASOURCES = AUTO
|
||||
#
|
||||
#noinst_LTLIBRARIES = libkrfbconfig.la
|
||||
#libkrfbconfig_la_SOURCES = configuration.cc configuration.skel invitedialog.cc invitation.cc \
|
||||
# manageinvitations.ui personalinvitewidget.ui \
|
||||
# invitewidget.ui personalinvitedialog.cc
|
||||
#libkrfbconfig_la_LIBADD = ../srvloc/libsrvloc.la $(LIB_KDEUI)
|
||||
#
|
||||
#bin_PROGRAMS = krfb
|
||||
#krfb_SOURCES = rfbcontroller.cc xupdatescanner.cc main.cpp \
|
||||
# connectionwidget.ui krfbifaceimpl.cc krfbiface.skel \
|
||||
# trayicon.cpp connectiondialog.cc
|
||||
#krfb_LDADD = libkrfbconfig.la ../libvncserver/libvncserver.la ../srvloc/libsrvloc.la -lXtst $(LIB_KDEUI) $(LIBJPEG) -lkio
|
||||
#krfb_LDFLAGS = $(all_libraries) $(KDE_RPATH)
|
||||
#
|
||||
#appdatadir = $(kde_datadir)/krfb/pics
|
||||
#appdata_DATA = eyes-open24.png eyes-closed24.png connection-side-image.png
|
||||
#
|
||||
#kde_services_DATA = kinetd_krfb.desktop
|
||||
#
|
||||
#xdg_apps_DATA = krfb.desktop
|
||||
#
|
||||
#appdir = $(kde_datadir)/krfb
|
||||
#app_DATA = eventsrc
|
||||
#
|
||||
#KDE_ICON = krfb
|
||||
#
|
||||
#INCLUDES= -I$(top_srcdir)/krfb/libvncserver -I$(top_srcdir)/krfb/srvloc \
|
||||
# $(all_includes)
|
||||
#
|
||||
#messages: rc.cpp
|
||||
# $(XGETTEXT) rc.cpp *.cpp *.cc -o $(podir)/krfb.pot
|
||||
18
krfb_httpd/CMakeLists.txt
Normal file
18
krfb_httpd/CMakeLists.txt
Normal file
@@ -0,0 +1,18 @@
|
||||
kde4_header()
|
||||
|
||||
include_directories( ${KDE4_INCLUDE_DIR} ${QT_INCLUDES} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} )
|
||||
|
||||
|
||||
########### install files ###############
|
||||
|
||||
install_files( ${SERVICES_INSTALL_DIR} FILES kinetd_krfb_httpd.desktop )
|
||||
|
||||
kde4_footer()
|
||||
|
||||
|
||||
|
||||
#original Makefile.am contents follow:
|
||||
|
||||
#bin_SCRIPTS = krfb_httpd
|
||||
#kde_services_DATA = kinetd_krfb_httpd.desktop
|
||||
#
|
||||
31
libvncserver/CMakeLists.txt
Normal file
31
libvncserver/CMakeLists.txt
Normal file
@@ -0,0 +1,31 @@
|
||||
kde4_header()
|
||||
|
||||
include_directories( ${KDE4_INCLUDE_DIR} ${QT_INCLUDES} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
|
||||
########### install files ###############
|
||||
|
||||
|
||||
kde4_footer()
|
||||
|
||||
|
||||
|
||||
#original Makefile.am contents follow:
|
||||
|
||||
#INCLUDES = $(all_includes)
|
||||
#
|
||||
#noinst_LTLIBRARIES = libvncserver.la
|
||||
#
|
||||
#libvncserver_la_SOURCES = main.c rfbserver.c sraRegion.c auth.c sockets.c \
|
||||
# stats.c corre.c hextile.c rre.c translate.c cutpaste.c \
|
||||
# zlib.c tight.c httpd.c cursor.c font.c \
|
||||
# draw.c selbox.c d3des.c vncauth.c cargs.c
|
||||
#
|
||||
#EXTRA_DIST = CHANGES COPYING README TODO
|
||||
#
|
||||
#AM_CPPFLAGS = -DHAVE_PTHREADS -DALLOW24BPP
|
||||
#AM_CFLAGS = -Wno-unused
|
||||
#
|
||||
34
srvloc/CMakeLists.txt
Normal file
34
srvloc/CMakeLists.txt
Normal file
@@ -0,0 +1,34 @@
|
||||
kde4_header()
|
||||
|
||||
include_directories( ${KDE4_INCLUDE_DIR} ${QT_INCLUDES} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
|
||||
########### install files ###############
|
||||
|
||||
|
||||
kde4_footer()
|
||||
|
||||
|
||||
|
||||
#original Makefile.am contents follow:
|
||||
|
||||
#METASOURCES = AUTO
|
||||
#
|
||||
## Code
|
||||
#noinst_LTLIBRARIES = libsrvloc.la
|
||||
#
|
||||
#libsrvloc_la_SOURCES = kserviceregistry.cpp uuid.cpp \
|
||||
# kinetinterface.cpp kinetinterfacewatcher.cpp \
|
||||
# getifaddrs.cpp
|
||||
#
|
||||
#libsrvloc_la_LIBADD = $(LIB_QT) $(LIB_KDECORE) $(LIB_SLP)
|
||||
#libsrvloc_la_LDFLAGS = $(all_libraries) -no-undefined
|
||||
#noinst_HEADERS = kserviceregistry.h uuid.h \
|
||||
# getifaddrs.h kinetinterface.h kinetinterfacewatcher.h
|
||||
#
|
||||
## set the include path for X, qt and KDE
|
||||
#INCLUDES = $(all_includes)
|
||||
#
|
||||
Reference in New Issue
Block a user