[applications/dolphin] initial cmake support

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/dolphin@1224085 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
samelian 14 years ago
parent 19954ea994
commit c572894c74

@ -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
#
#################################################
cmake_minimum_required( VERSION 2.6 )
##### general package setup #####################
project( dolphin )
##### include essential cmake modules ###########
include( CheckCXXSourceCompiles )
include( CheckFunctionExists )
include( CheckIncludeFileCXX )
include( CheckStructHasMember )
include( CheckSymbolExists )
include( CheckTypeSize )
include( FindPkgConfig )
##### include our cmake modules #################
set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
include( TDEMacros )
##### setup install paths #######################
include( TDESetupPaths )
tde_setup_paths( )
##### optional stuff ############################
# option( WITH_LIBVISUAL "Enable libvisual support" OFF )
##### configure checks ##########################
include( ConfigureChecks.cmake )
###### global compiler settings #################
add_definitions(
-DHAVE_CONFIG_H
${TQT_CFLAGS_OTHER}
)
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -include tqt.h" )
set( CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined" )
set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" )
##### source directories ########################
add_subdirectory( src )
##### write configure files #####################
configure_file( config.h.cmake config.h @ONLY )

@ -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
#
#################################################
# common required stuff
find_package( Qt )
find_package( TQt )
find_package( TDE )

@ -0,0 +1,64 @@
#################################################
#
# (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( pics )
add_subdirectory( servicemenus )
tde_import( libkonq )
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_BINARY_DIR}
#${CMAKE_SOURCE_DIR}
#${CMAKE_SOURCE_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
tde_install_icons( )
install( FILES d3lphin.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
install( FILES d3lphinui.rc DESTINATION ${DATA_INSTALL_DIR}/d3lphin )
##### d3lphin (executable) ######################
tde_add_executable( d3lphin AUTOMOC
SOURCES
bookmarkselector.cpp bookmarkssettingspage.cpp
bookmarkssidebarpage.cpp
detailsviewsettingspage.cpp dolphin.cpp
dolphincontextmenu.cpp dolphindetailsview.cpp
dolphindetailsviewsettings.cpp
dolphindirlister.cpp dolphiniconsview.cpp
dolphiniconsviewsettings.cpp dolphinsettings.cpp
dolphinsettingsbase.cpp dolphinsettingsdialog.cpp
dolphinstatusbar.cpp dolphinview.cpp
editbookmarkdialog.cpp filterbar.cpp
generalsettingspage.cpp iconsviewsettingspage.cpp
infosidebarpage.cpp itemeffectsmanager.cpp
main.cpp pixmapviewer.cpp progressindicator.cpp
renamedialog.cpp settingspagebase.cpp
sidebarpage.cpp sidebars.cpp sidebarssettings.cpp
statusbarmessagelabel.cpp statusbarspaceinfo.cpp
undomanager.cpp urlbutton.cpp urlnavigator.cpp
urlnavigatorbutton.cpp viewproperties.cpp
viewpropertiesdialog.cpp viewsettingspage.cpp
LINK konq-shared
DESTINATION ${BIN_INSTALL_DIR}
)

@ -329,3 +329,5 @@ BookmarkItem* BookmarkItem::fromKbookmark(const KBookmark& bookmark, const KIcon
QPixmap icon(iconLoader.loadIcon(bookmark.icon(), KIcon::NoGroup, KIcon::SizeMedium));
return new BookmarkItem(icon, bookmark.text(), bookmark.url());
}
#include "bookmarkssidebarpage.moc"

@ -628,3 +628,4 @@ void ServiceButton::slotReleased()
emit requestServiceStart(m_index);
}
#include "infosidebarpage.moc"

@ -0,0 +1,14 @@
#################################################
#
# (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
preview.png
DESTINATION ${DATA_INSTALL_DIR}/d3lphin/icons/hicolor/128x128/actions )

@ -0,0 +1,14 @@
#################################################
#
# (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
preview.png editurl.png
DESTINATION ${DATA_INSTALL_DIR}/d3lphin/icons/hicolor/16x16/actions )

@ -0,0 +1,14 @@
#################################################
#
# (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
preview.png
DESTINATION ${DATA_INSTALL_DIR}/d3lphin/icons/hicolor/22x22/actions )

@ -0,0 +1,14 @@
#################################################
#
# (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
preview.png
DESTINATION ${DATA_INSTALL_DIR}/d3lphin/icons/hicolor/32x32/actions )

@ -0,0 +1,14 @@
#################################################
#
# (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
preview.png
DESTINATION ${DATA_INSTALL_DIR}/d3lphin/icons/hicolor/48x48/actions )

@ -0,0 +1,14 @@
#################################################
#
# (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
preview.png
DESTINATION ${DATA_INSTALL_DIR}/d3lphin/icons/hicolor/64x64/actions )

@ -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_auto_add_subdirectories( )

@ -0,0 +1,40 @@
#################################################
#
# (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
compress.desktop amarok_addaspodcast.desktop
amarok_append.desktop amarok_play_audiocd.desktop
ark_compress.desktop ark_extract.desktop
ark_extract_subdir.desktop d3lphin_su.desktop
edit_as_root.desktop encryptfile.desktop
encryptfolder.desktop floppy_format.desktop
imageconverter.desktop installfont.desktop
jpegorient.desktop k3b_audiocd_rip.desktop
k3b_cd_copy.desktop k3b_create_audio_cd.desktop
k3b_create_video_cd.desktop k3b_dvd_copy.desktop
k3b_handle_empty_cd.desktop k3b_handle_empty_dvd.desktop
k3b_videodvd_rip.desktop k3b_write_bin_image.desktop
k3b_write_iso_image.desktop kdesktopSetAsBackground.desktop
konqgwenview.desktop konsolehere.desktop
mail_as_attachment.desktop media_eject.desktop
media_mount.desktop media_realfolder.desktop
media_safelyremove.desktop media_unmount.desktop
open_in_digikam.desktop run_as_root.desktop smb2rdc.desktop
text-ada-print.desktop text-c++-print.desktop
text-c++h-print.desktop text-ch-print.desktop
text-css-print.desktop text-diff-print.desktop
text-html-print.desktop text-java-print.desktop
text-log-print.desktop text-makefile-print.desktop
text-pas-print.desktop text-perl-print.desktop
text-print.desktop text-python-print.desktop
text-tcl-print.desktop text-tex-print.desktop
text-xml-print.desktop text-xslt-print.desktop
DESTINATION ${DATA_INSTALL_DIR}/d3lphin/servicemenus )

@ -34,3 +34,5 @@ SidebarPage::~SidebarPage()
void SidebarPage::activeViewChanged()
{
}
#include "sidebarpage.moc"

@ -188,3 +188,5 @@ int rightSidebar::indexForName(const QString& name) const
return 0;
}
#include "sidebars.moc"

@ -213,3 +213,5 @@ QColor StatusBarMessageLabel::mixColors(const QColor& c1,
const int blue = (c1.blue() * recip + c2.blue() * percent) / 100;
return QColor(red, green, blue);
}
#include "statusbarmessagelabel.moc"

@ -94,3 +94,5 @@ QColor URLButton::mixColors(const QColor& c1,
const int blue = (c1.blue() + c2.blue()) / 2;
return QColor(red, green, blue);
}
#include "urlbutton.moc"

@ -391,3 +391,5 @@ void URLNavigatorButton::startDrag()
KURLDrag *drag = new KURLDrag(lst, this);
drag->drag();
}
#include "urlnavigatorbutton.moc"

Loading…
Cancel
Save