parent
e952c17a7c
commit
3031fcead5
@ -0,0 +1,19 @@
|
|||||||
|
#########################################
|
||||||
|
# #
|
||||||
|
# Improvements and feedback are welcome #
|
||||||
|
# #
|
||||||
|
# This file is released under GPL >=2 #
|
||||||
|
# #
|
||||||
|
#########################################
|
||||||
|
|
||||||
|
cmake_minimum_required( VERSION 3.1 )
|
||||||
|
|
||||||
|
|
||||||
|
##### include our cmake modules #########
|
||||||
|
|
||||||
|
include( TDEL10n )
|
||||||
|
|
||||||
|
|
||||||
|
##### create translation templates ######
|
||||||
|
|
||||||
|
tde_l10n_auto_add_subdirectories( )
|
@ -0,0 +1,80 @@
|
|||||||
|
############################################
|
||||||
|
# #
|
||||||
|
# Improvements and feedbacks are welcome #
|
||||||
|
# #
|
||||||
|
# This file is released under GPL >= 3 #
|
||||||
|
# #
|
||||||
|
############################################
|
||||||
|
|
||||||
|
|
||||||
|
cmake_minimum_required( VERSION 3.1 )
|
||||||
|
|
||||||
|
|
||||||
|
#### general package setup
|
||||||
|
|
||||||
|
project( twin-style-fahrenheit )
|
||||||
|
|
||||||
|
|
||||||
|
#### include essential cmake modules
|
||||||
|
|
||||||
|
include( FindPkgConfig )
|
||||||
|
include( CheckFunctionExists )
|
||||||
|
include( CheckSymbolExists )
|
||||||
|
include( CheckIncludeFile )
|
||||||
|
include( CheckLibraryExists )
|
||||||
|
include( CheckCSourceCompiles )
|
||||||
|
include( CheckCXXSourceCompiles )
|
||||||
|
|
||||||
|
|
||||||
|
#### include our cmake modules
|
||||||
|
|
||||||
|
include( TDEMacros )
|
||||||
|
|
||||||
|
|
||||||
|
##### set version number ########################
|
||||||
|
|
||||||
|
tde_set_project_version( )
|
||||||
|
|
||||||
|
|
||||||
|
##### setup install paths
|
||||||
|
|
||||||
|
include( TDESetupPaths )
|
||||||
|
tde_setup_paths( )
|
||||||
|
|
||||||
|
|
||||||
|
##### user-requested modules
|
||||||
|
|
||||||
|
option( BUILD_ALL "Build all" ON )
|
||||||
|
option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} )
|
||||||
|
|
||||||
|
|
||||||
|
##### optional stuff
|
||||||
|
|
||||||
|
option( WITH_ALL_OPTIONS "Enable all optional support" OFF )
|
||||||
|
option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" ${WITH_ALL_OPTIONS} )
|
||||||
|
|
||||||
|
|
||||||
|
##### 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 "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" )
|
||||||
|
set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" )
|
||||||
|
|
||||||
|
|
||||||
|
##### directories
|
||||||
|
|
||||||
|
add_subdirectory( client )
|
||||||
|
tde_conditional_add_project_translations( BUILD_TRANSLATIONS )
|
||||||
|
|
||||||
|
|
||||||
|
##### write configure files
|
||||||
|
|
||||||
|
configure_file( config.h.cmake config.h @ONLY )
|
||||||
|
|
@ -0,0 +1,25 @@
|
|||||||
|
###########################################
|
||||||
|
# #
|
||||||
|
# Improvements and feedback are welcome #
|
||||||
|
# #
|
||||||
|
# This file is released under GPL >= 3 #
|
||||||
|
# #
|
||||||
|
###########################################
|
||||||
|
|
||||||
|
# required stuff
|
||||||
|
find_package( TQt )
|
||||||
|
find_package( TDE )
|
||||||
|
|
||||||
|
tde_setup_architecture_flags( )
|
||||||
|
|
||||||
|
include(TestBigEndian)
|
||||||
|
test_big_endian(WORDS_BIGENDIAN)
|
||||||
|
|
||||||
|
tde_setup_largefiles( )
|
||||||
|
|
||||||
|
|
||||||
|
##### check for gcc visibility support
|
||||||
|
|
||||||
|
if( WITH_GCC_VISIBILITY )
|
||||||
|
tde_setup_gcc_visibility( )
|
||||||
|
endif( WITH_GCC_VISIBILITY )
|
@ -1,65 +1,16 @@
|
|||||||
Example Installation in a Nutshell:
|
Basic Installation
|
||||||
====================================
|
==================
|
||||||
|
|
||||||
1) Type 'make -f Makefile.cvs'
|
twin-style-fahrenheit relies on cmake to build.
|
||||||
|
|
||||||
2) Type './configure'
|
Here are suggested default options:
|
||||||
|
|
||||||
3) Type 'make'
|
-DCMAKE_INSTALL_PREFIX="/opt/trinity" \
|
||||||
|
-DCONFIG_INSTALL_DIR="/etc/trinity" \
|
||||||
4) Type (as root) 'make install'
|
-DSYSCONF_INSTALL_DIR="/etc/trinity" \
|
||||||
|
-DXDG_MENU_INSTALL_DIR="/etc/xdg/menus" \
|
||||||
Example Installation in More Detail:
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
=====================================
|
-DCMAKE_VERBOSE_MAKEFILE="ON" \
|
||||||
|
-DCMAKE_SKIP_RPATH="OFF" \
|
||||||
0) Make sure that the prerequisite KDE 3.2 development libraries and
|
-DBUILD_ALL="ON" \
|
||||||
headers are installed first. These can be found at
|
-DWITH_ALL_OPTIONS="ON"
|
||||||
<http://www.kde.org>.
|
|
||||||
|
|
||||||
1) Unzip and untar the package into its own directory. Change into
|
|
||||||
this directory, and read the README file. (I'm assuming that
|
|
||||||
you've read this, the INSTALL file :-))
|
|
||||||
|
|
||||||
2) Type './configure --help", and peruse the configure options
|
|
||||||
available. It may be necessary to use one or more of these options
|
|
||||||
on your system.
|
|
||||||
|
|
||||||
3) Type './configure' to configure the software for your system. If
|
|
||||||
you're using `csh' on an old version of System V, you might need
|
|
||||||
to type sh ./configure' instead.
|
|
||||||
|
|
||||||
4) Type 'make' to compile the package.
|
|
||||||
|
|
||||||
5) If you are not logged in as root, type 'su' and enter the root
|
|
||||||
password to switch over to the root account. This is not necessary
|
|
||||||
if you configured the software to install to your home directory/
|
|
||||||
|
|
||||||
6) Type 'make install' to install the software.
|
|
||||||
|
|
||||||
7) Activate the styles, decorations and color schemes through the
|
|
||||||
KDE Control Center or the Preferences menu.
|
|
||||||
|
|
||||||
8) You can uninstall the software by typing 'make uninstall'.
|
|
||||||
|
|
||||||
A Note on the KDE Library
|
|
||||||
========================
|
|
||||||
|
|
||||||
If you are having problems configuring the software, first make sure
|
|
||||||
that the required KDE 3.2 or greater libraries are installed. Several
|
|
||||||
systems have broken this into several packages. You will need both
|
|
||||||
the runtime and the development packages.
|
|
||||||
|
|
||||||
If you still have problems, set the TDEDIR environment variable and
|
|
||||||
the --prefix configure option to the location where you installed
|
|
||||||
KDE. Also make sure that you are using GNU make and not the standard
|
|
||||||
make everyone else uses.
|
|
||||||
|
|
||||||
Rebuilding the Configuration
|
|
||||||
============================
|
|
||||||
|
|
||||||
If you ever need to rebuild the configuration files, type the
|
|
||||||
following in thebase directory of the distribution:
|
|
||||||
make -f Makefile.cvs
|
|
||||||
|
|
||||||
You will need the current automake/autoconf set of programs.
|
|
||||||
|
|
||||||
|
@ -0,0 +1,12 @@
|
|||||||
|
##### create translation templates ##############
|
||||||
|
|
||||||
|
tde_l10n_create_template(
|
||||||
|
CATALOG "messages/twin-style-fahrenheit"
|
||||||
|
SOURCES .
|
||||||
|
X-POT ${CMAKE_SOURCE_DIR}/../../../core/tde-i18n/template/messages/tdebase/twin_clients.pot
|
||||||
|
)
|
||||||
|
|
||||||
|
tde_l10n_create_template(
|
||||||
|
CATALOG "desktop_files/twin-style-fahrenheit-desktops"
|
||||||
|
SOURCES *.desktop
|
||||||
|
)
|
@ -0,0 +1,41 @@
|
|||||||
|
tde_import( twin )
|
||||||
|
|
||||||
|
include_directories(
|
||||||
|
${CMAKE_BINARY_DIR}
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
${TDE_INCLUDE_DIR}
|
||||||
|
${TQT_INCLUDE_DIRS}
|
||||||
|
)
|
||||||
|
|
||||||
|
link_directories(
|
||||||
|
${TQT_LIBRARY_DIRS}
|
||||||
|
${TDE_LIBRARY_DIRS}
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
add_subdirectory( pics )
|
||||||
|
|
||||||
|
|
||||||
|
##### twin_fahrenheit (kpart)
|
||||||
|
|
||||||
|
tde_add_kpart( twin_fahrenheit AUTOMOC
|
||||||
|
|
||||||
|
SOURCES
|
||||||
|
fahrenheitclient.cc
|
||||||
|
fahrenheitclient.h
|
||||||
|
LINK
|
||||||
|
tdecore-shared
|
||||||
|
tdeui-shared
|
||||||
|
tdecorations-shared
|
||||||
|
|
||||||
|
DESTINATION ${PLUGIN_INSTALL_DIR}
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
##### other data
|
||||||
|
|
||||||
|
tde_create_translated_desktop(
|
||||||
|
SOURCE fahrenheit.desktop
|
||||||
|
DESTINATION ${DATA_INSTALL_DIR}/twin
|
||||||
|
)
|
@ -1,5 +1,4 @@
|
|||||||
# KDE Desktop Entry
|
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Encoding=UTF-8
|
Encoding=UTF-8
|
||||||
Name=Fahrenheit
|
Name=Fahrenheit
|
||||||
X-TDE-Library=twin3_fahrenheit
|
X-TDE-Library=twin_fahrenheit
|
||||||
|
@ -0,0 +1,4 @@
|
|||||||
|
install(
|
||||||
|
FILES close.png help.png maximize.png minimize.png minmax.png sticky.png unsticky.png
|
||||||
|
DESTINATION ${DATA_INSTALL_DIR}/twin/fahrenheit
|
||||||
|
)
|
@ -0,0 +1,8 @@
|
|||||||
|
#define VERSION "@VERSION@"
|
||||||
|
|
||||||
|
// Defined if you have fvisibility and fvisibility-inlines-hidden support.
|
||||||
|
#cmakedefine __KDE_HAVE_GCC_VISIBILITY 1
|
||||||
|
|
||||||
|
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
||||||
|
significant byte first (like Motorola and SPARC, unlike Intel). */
|
||||||
|
#cmakedefine WORDS_BIGENDIAN @WORDS_BIGENDIAN@
|
Loading…
Reference in new issue