Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit 9ffcfe47af
)
r14.0.x
parent
b82854c10b
commit
561f5a4760
@ -0,0 +1,84 @@
|
|||||||
|
#################################################
|
||||||
|
#
|
||||||
|
# (C) 2016 Golubev Alexander
|
||||||
|
# fatzer2 (AT) gmail.com
|
||||||
|
#
|
||||||
|
# Improvements and feedback are welcome
|
||||||
|
#
|
||||||
|
# This file is released under GPL >= 2
|
||||||
|
#
|
||||||
|
#################################################
|
||||||
|
|
||||||
|
cmake_minimum_required( VERSION 2.8 )
|
||||||
|
|
||||||
|
|
||||||
|
##### general package setup #####################
|
||||||
|
|
||||||
|
project( filelight )
|
||||||
|
|
||||||
|
|
||||||
|
##### include essential cmake modules ###########
|
||||||
|
|
||||||
|
include( FindPkgConfig )
|
||||||
|
include( CheckIncludeFile )
|
||||||
|
include( CheckLibraryExists )
|
||||||
|
# @Add othere required cmake modules here@
|
||||||
|
#
|
||||||
|
# EXAMPLE:
|
||||||
|
# include( CheckTypeSize )
|
||||||
|
# include( CheckCSourceCompiles )
|
||||||
|
# include( CheckCXXSourceCompiles )
|
||||||
|
|
||||||
|
|
||||||
|
##### 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 ############################
|
||||||
|
|
||||||
|
# EXAMPLE:
|
||||||
|
# option( WITH_XSCREENSAVER "Enable xscreensaver support" ${WITH_ALL_OPTIONS} )
|
||||||
|
|
||||||
|
|
||||||
|
##### user requested modules ####################
|
||||||
|
|
||||||
|
option( BUILD_ALL "Build all" OFF )
|
||||||
|
option( BUILD_DOC "Build documentation" ${BUILD_ALL} )
|
||||||
|
option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} )
|
||||||
|
|
||||||
|
|
||||||
|
##### configure checks ##########################
|
||||||
|
|
||||||
|
include( ConfigureChecks.cmake )
|
||||||
|
|
||||||
|
|
||||||
|
###### global compiler settings #################
|
||||||
|
|
||||||
|
add_definitions(
|
||||||
|
-DHAVE_CONFIG_H
|
||||||
|
)
|
||||||
|
|
||||||
|
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
|
||||||
|
set( CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined" )
|
||||||
|
set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" )
|
||||||
|
|
||||||
|
|
||||||
|
##### filelight directories #####################
|
||||||
|
|
||||||
|
add_subdirectory( src )
|
||||||
|
add_subdirectory( misc )
|
||||||
|
tde_conditional_add_subdirectory( BUILD_DOC doc )
|
||||||
|
tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
|
||||||
|
|
||||||
|
|
||||||
|
##### write configure files #####################
|
||||||
|
|
||||||
|
configure_file( config.h.cmake config.h @ONLY )
|
@ -0,0 +1,48 @@
|
|||||||
|
#################################################
|
||||||
|
#
|
||||||
|
# (C) 2012 Golubev Alexander
|
||||||
|
# fatzer2 (AT) gmail.com
|
||||||
|
#
|
||||||
|
# Improvements and feedback are welcome
|
||||||
|
#
|
||||||
|
# This file is released under GPL >= 2
|
||||||
|
#
|
||||||
|
#################################################
|
||||||
|
|
||||||
|
# required stuff
|
||||||
|
tde_setup_architecture_flags( )
|
||||||
|
find_package( TQt )
|
||||||
|
find_package( TDE )
|
||||||
|
|
||||||
|
|
||||||
|
##### check for gcc visibility support #########
|
||||||
|
# FIXME
|
||||||
|
# This should check for [T]Qt3 visibility support
|
||||||
|
|
||||||
|
if( WITH_GCC_VISIBILITY )
|
||||||
|
if( NOT UNIX )
|
||||||
|
tde_message_fatal(FATAL_ERROR "\ngcc visibility support was requested, but your system is not *NIX" )
|
||||||
|
endif( NOT UNIX )
|
||||||
|
set( __KDE_HAVE_GCC_VISIBILITY 1 )
|
||||||
|
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden")
|
||||||
|
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden")
|
||||||
|
endif( WITH_GCC_VISIBILITY )
|
||||||
|
|
||||||
|
|
||||||
|
# gettext
|
||||||
|
if( BUILD_TRANSLATIONS )
|
||||||
|
include( FindGettext )
|
||||||
|
if( GETTEXT_FOUND )
|
||||||
|
set( MSGFMT_EXECUTABLE ${GETTEXT_MSGFMT_EXECUTABLE}
|
||||||
|
CACHE FILEPATH "path to msgfmt executable" )
|
||||||
|
endif( GETTEXT_FOUND )
|
||||||
|
|
||||||
|
if( NOT MSGFMT_EXECUTABLE )
|
||||||
|
tde_message_fatal( "msgfmt is required but was not found on your system." )
|
||||||
|
endif( NOT MSGFMT_EXECUTABLE )
|
||||||
|
endif( BUILD_TRANSLATIONS )
|
||||||
|
|
||||||
|
|
||||||
|
# Check for mntent.h
|
||||||
|
check_include_file( "mntent.h" HAVE_MNTENT_H )
|
||||||
|
|
@ -0,0 +1,3 @@
|
|||||||
|
#cmakedefine VERSION "@VERSION@"
|
||||||
|
|
||||||
|
#cmakedefine HAVE_MNTENT_H
|
@ -0,0 +1,3 @@
|
|||||||
|
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
|
||||||
|
|
||||||
|
tde_auto_add_subdirectories( )
|
@ -0,0 +1,6 @@
|
|||||||
|
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
|
||||||
|
|
||||||
|
tde_create_handbook(
|
||||||
|
DESTINATION filelight
|
||||||
|
LANG da
|
||||||
|
)
|
@ -0,0 +1,6 @@
|
|||||||
|
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
|
||||||
|
|
||||||
|
tde_create_handbook(
|
||||||
|
DESTINATION filelight
|
||||||
|
LANG es
|
||||||
|
)
|
@ -0,0 +1,6 @@
|
|||||||
|
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
|
||||||
|
|
||||||
|
tde_create_handbook(
|
||||||
|
DESTINATION filelight
|
||||||
|
LANG et
|
||||||
|
)
|
@ -0,0 +1,3 @@
|
|||||||
|
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
|
||||||
|
tde_create_handbook( DESTINATION filelight )
|
||||||
|
|
@ -0,0 +1,6 @@
|
|||||||
|
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
|
||||||
|
|
||||||
|
tde_create_handbook(
|
||||||
|
DESTINATION filelight
|
||||||
|
LANG it
|
||||||
|
)
|
@ -0,0 +1,6 @@
|
|||||||
|
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
|
||||||
|
|
||||||
|
tde_create_handbook(
|
||||||
|
DESTINATION filelight
|
||||||
|
LANG pt
|
||||||
|
)
|
@ -0,0 +1,6 @@
|
|||||||
|
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
|
||||||
|
|
||||||
|
tde_create_handbook(
|
||||||
|
DESTINATION filelight
|
||||||
|
LANG ru
|
||||||
|
)
|
@ -0,0 +1,6 @@
|
|||||||
|
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
|
||||||
|
|
||||||
|
tde_create_handbook(
|
||||||
|
DESTINATION filelight
|
||||||
|
LANG sv
|
||||||
|
)
|
@ -0,0 +1,22 @@
|
|||||||
|
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
|
||||||
|
|
||||||
|
tde_install_icons( )
|
||||||
|
|
||||||
|
|
||||||
|
##### other data ################################
|
||||||
|
|
||||||
|
install( FILES filelight_part.desktop
|
||||||
|
DESTINATION ${SERVICES_INSTALL_DIR}
|
||||||
|
)
|
||||||
|
|
||||||
|
install( FILES filelight.desktop
|
||||||
|
DESTINATION ${XDG_APPS_INSTALL_DIR}
|
||||||
|
)
|
||||||
|
|
||||||
|
install( FILES filelightrc
|
||||||
|
DESTINATION ${CONFIG_INSTALL_DIR}
|
||||||
|
)
|
||||||
|
|
||||||
|
install( FILES filelight_partui.rc filelightui.rc
|
||||||
|
DESTINATION ${DATA_INSTALL_DIR}/filelight
|
||||||
|
)
|
@ -0,0 +1,3 @@
|
|||||||
|
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
|
||||||
|
|
||||||
|
tde_auto_add_subdirectories( )
|
@ -0,0 +1,3 @@
|
|||||||
|
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
|
||||||
|
|
||||||
|
tde_create_translation( LANG az )
|
@ -0,0 +1,3 @@
|
|||||||
|
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
|
||||||
|
|
||||||
|
tde_create_translation( LANG bg )
|
@ -0,0 +1,3 @@
|
|||||||
|
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
|
||||||
|
|
||||||
|
tde_create_translation( LANG br )
|
@ -0,0 +1,3 @@
|
|||||||
|
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
|
||||||
|
|
||||||
|
tde_create_translation( LANG ca )
|
@ -0,0 +1,3 @@
|
|||||||
|
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
|
||||||
|
|
||||||
|
tde_create_translation( LANG cs )
|
@ -0,0 +1,3 @@
|
|||||||
|
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
|
||||||
|
|
||||||
|
tde_create_translation( LANG cy )
|
@ -0,0 +1,3 @@
|
|||||||
|
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
|
||||||
|
|
||||||
|
tde_create_translation( LANG da )
|
@ -0,0 +1,3 @@
|
|||||||
|
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
|
||||||
|
|
||||||
|
tde_create_translation( LANG de )
|
@ -0,0 +1,3 @@
|
|||||||
|
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
|
||||||
|
|
||||||
|
tde_create_translation( LANG el )
|
@ -0,0 +1,3 @@
|
|||||||
|
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
|
||||||
|
|
||||||
|
tde_create_translation( LANG en_GB )
|
@ -0,0 +1,3 @@
|
|||||||
|
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
|
||||||
|
|
||||||
|
tde_create_translation( LANG es )
|
@ -0,0 +1,3 @@
|
|||||||
|
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
|
||||||
|
|
||||||
|
tde_create_translation( LANG et )
|
@ -0,0 +1,3 @@
|
|||||||
|
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
|
||||||
|
|
||||||
|
tde_create_translation( LANG fr )
|
@ -0,0 +1,3 @@
|
|||||||
|
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
|
||||||
|
|
||||||
|
tde_create_translation( LANG ga )
|
@ -0,0 +1,3 @@
|
|||||||
|
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
|
||||||
|
|
||||||
|
tde_create_translation( LANG gl )
|
@ -0,0 +1,3 @@
|
|||||||
|
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
|
||||||
|
|
||||||
|
tde_create_translation( LANG is )
|
@ -0,0 +1,3 @@
|
|||||||
|
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
|
||||||
|
|
||||||
|
tde_create_translation( LANG it )
|
@ -0,0 +1,3 @@
|
|||||||
|
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
|
||||||
|
|
||||||
|
tde_create_translation( LANG ja )
|
@ -0,0 +1,3 @@
|
|||||||
|
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
|
||||||
|
|
||||||
|
tde_create_translation( LANG ka )
|
@ -0,0 +1,3 @@
|
|||||||
|
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
|
||||||
|
|
||||||
|
tde_create_translation( LANG lt )
|
@ -0,0 +1,3 @@
|
|||||||
|
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
|
||||||
|
|
||||||
|
tde_create_translation( LANG nb )
|
@ -0,0 +1,3 @@
|
|||||||
|
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
|
||||||
|
|
||||||
|
tde_create_translation( LANG nl )
|
@ -0,0 +1,3 @@
|
|||||||
|
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
|
||||||
|
|
||||||
|
tde_create_translation( LANG pl )
|
@ -0,0 +1,3 @@
|
|||||||
|
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
|
||||||
|
|
||||||
|
tde_create_translation( LANG pt )
|
@ -0,0 +1,3 @@
|
|||||||
|
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
|
||||||
|
|
||||||
|
tde_create_translation( LANG pt_BR )
|
@ -0,0 +1,3 @@
|
|||||||
|
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
|
||||||
|
|
||||||
|
tde_create_translation( LANG ro )
|
@ -0,0 +1,3 @@
|
|||||||
|
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
|
||||||
|
|
||||||
|
tde_create_translation( LANG ru )
|
@ -0,0 +1,3 @@
|
|||||||
|
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
|
||||||
|
|
||||||
|
tde_create_translation( LANG rw )
|
@ -0,0 +1,3 @@
|
|||||||
|
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
|
||||||
|
|
||||||
|
tde_create_translation( LANG sr )
|
@ -0,0 +1,3 @@
|
|||||||
|
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
|
||||||
|
|
||||||
|
tde_create_translation( LANG sr@Latn )
|
@ -0,0 +1,3 @@
|
|||||||
|
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
|
||||||
|
|
||||||
|
tde_create_translation( LANG sv )
|
@ -0,0 +1,3 @@
|
|||||||
|
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
|
||||||
|
|
||||||
|
tde_create_translation( LANG ta )
|
@ -0,0 +1,3 @@
|
|||||||
|
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
|
||||||
|
|
||||||
|
tde_create_translation( LANG tr )
|
@ -0,0 +1,3 @@
|
|||||||
|
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
|
||||||
|
|
||||||
|
tde_create_translation( LANG uk )
|
@ -0,0 +1,4 @@
|
|||||||
|
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
|
||||||
|
|
||||||
|
add_subdirectory( app )
|
||||||
|
add_subdirectory( part )
|
@ -0,0 +1,32 @@
|
|||||||
|
#################################################
|
||||||
|
#
|
||||||
|
# (C) 2016 Golubev Alexander
|
||||||
|
# fatzer2 (AT) gmail.com
|
||||||
|
#
|
||||||
|
# Improvements and feedback are welcome
|
||||||
|
#
|
||||||
|
# This file is released under GPL >= 2
|
||||||
|
#
|
||||||
|
#################################################
|
||||||
|
|
||||||
|
include_directories(
|
||||||
|
${CMAKE_BINARY_DIR}
|
||||||
|
${CMAKE_SOURCE_DIR}/src
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
${TDE_INCLUDE_DIR}
|
||||||
|
${TQT_INCLUDE_DIRS}
|
||||||
|
)
|
||||||
|
|
||||||
|
link_directories(
|
||||||
|
${TQT_LIBRARY_DIRS}
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
##### filelight (executable) ####################
|
||||||
|
|
||||||
|
tde_add_executable( filelight AUTOMOC
|
||||||
|
SOURCES historyAction.cpp mainWindow.cpp main.cpp
|
||||||
|
LINK tdeui-shared tdeparts-shared
|
||||||
|
DESTINATION ${BIN_INSTALL_DIR}
|
||||||
|
)
|
@ -0,0 +1,36 @@
|
|||||||
|
#################################################
|
||||||
|
#
|
||||||
|
# (C) 2016 Golubev Alexander
|
||||||
|
# fatzer2 (AT) gmail.com
|
||||||
|
#
|
||||||
|
# Improvements and feedback are welcome
|
||||||
|
#
|
||||||
|
# This file is released under GPL >= 2
|
||||||
|
#
|
||||||
|
#################################################
|
||||||
|
|
||||||
|
add_subdirectory( radialMap )
|
||||||
|
|
||||||
|
include_directories(
|
||||||
|
${CMAKE_BINARY_DIR}
|
||||||
|
${CMAKE_SOURCE_DIR}/src
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
${TDE_INCLUDE_DIR}
|
||||||
|
${TQT_INCLUDE_DIRS}
|
||||||
|
)
|
||||||
|
|
||||||
|
link_directories(
|
||||||
|
${TQT_LIBRARY_DIRS}
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
##### libfilelight (kpart) ######################
|
||||||
|
|
||||||
|
tde_add_kpart( libfilelight AUTOMOC
|
||||||
|
SOURCES dialog.ui part.cpp scan.cpp progressBox.cpp Config.cpp
|
||||||
|
settingsDialog.cpp fileTree.cpp localLister.cpp remoteLister.cpp
|
||||||
|
summaryWidget.cpp
|
||||||
|
LINK radialmap-static tdeui-shared tdeio-shared tdeparts-shared
|
||||||
|
DESTINATION ${PLUGIN_INSTALL_DIR}
|
||||||
|
)
|
@ -0,0 +1,31 @@
|
|||||||
|
#################################################
|
||||||
|
#
|
||||||
|
# (C) 2016 Golubev Alexander
|
||||||
|
# fatzer2 (AT) gmail.com
|
||||||
|
#
|
||||||
|
# Improvements and feedback are welcome
|
||||||
|
#
|
||||||
|
# This file is released under GPL >= 2
|
||||||
|
#
|
||||||
|
#################################################
|
||||||
|
|
||||||
|
include_directories(
|
||||||
|
${CMAKE_BINARY_DIR}
|
||||||
|
${CMAKE_SOURCE_DIR}/src/part
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
${TDE_INCLUDE_DIR}
|
||||||
|
${TQT_INCLUDE_DIRS}
|
||||||
|
)
|
||||||
|
|
||||||
|
link_directories(
|
||||||
|
${TQT_LIBRARY_DIRS}
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
##### radialmap (static) ########################
|
||||||
|
|
||||||
|
tde_add_library( radialmap STATIC_PIC AUTOMOC
|
||||||
|
SOURCES widget.cpp builder.cpp map.cpp widgetEvents.cpp labels.cpp
|
||||||
|
segmentTip.cpp
|
||||||
|
)
|
Loading…
Reference in new issue