mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-05 13:28:02 +02:00
Removed unused cmake packages.
This commit is contained in:
parent
a8dad42954
commit
a96fc838b9
5 changed files with 0 additions and 1296 deletions
|
|
@ -35,8 +35,6 @@ endif (CYGWIN)
|
|||
if (WIN32)
|
||||
# include local header first to avoid using old installed header
|
||||
set (CMAKE_INCLUDE_PATH ${CMAKE_INCLUDE_PATH} ${CMAKE_SOURCE_DIR}/..)
|
||||
find_package(KDEWIN)
|
||||
find_package(KDEWIN_Packager)
|
||||
find_package(LibIconv)
|
||||
include(Win32Macros)
|
||||
addExplorerWrapper(${CMAKE_PROJECT_NAME})
|
||||
|
|
@ -609,7 +607,3 @@ endif(DBUS_DISABLE_CHECKS)
|
|||
MESSAGE(" ")
|
||||
|
||||
INCLUDE(modules/CPackInstallConfig.cmake)
|
||||
|
||||
if (KDEWIN_PACKAGER_FOUND)
|
||||
KDEWIN_PACKAGER(${CMAKE_PROJECT_NAME} ${DBUS_VERSION} "ipc library" "")
|
||||
endif (KDEWIN_PACKAGER_FOUND)
|
||||
|
|
|
|||
|
|
@ -1,42 +0,0 @@
|
|||
if (WIN32)
|
||||
|
||||
# check if GNUWIN32_DIR is already set
|
||||
# (e.g. by command line argument or the calling script)
|
||||
if(NOT GNUWIN32_DIR)
|
||||
# check for enviroment variable
|
||||
file(TO_CMAKE_PATH "$ENV{GNUWIN32_DIR}" GNUWIN32_DIR)
|
||||
if(NOT GNUWIN32_DIR)
|
||||
# search in the default program install folder
|
||||
file(TO_CMAKE_PATH "$ENV{PROGRAMFILES}" _progFiles)
|
||||
find_file(GNUWIN32_DIR_tmp gnuwin32 win32libs
|
||||
PATHS
|
||||
"${_progFiles}"
|
||||
"C:/" "D:/" "E:/" "F:/" "G:/"
|
||||
)
|
||||
set(GNUWIN32_DIR ${GNUWIN32_DIR_tmp})
|
||||
endif(NOT GNUWIN32_DIR)
|
||||
endif(NOT GNUWIN32_DIR)
|
||||
|
||||
if (GNUWIN32_DIR)
|
||||
set(GNUWIN32_INCLUDE_DIR ${GNUWIN32_DIR}/include)
|
||||
set(GNUWIN32_LIBRARY_DIR ${GNUWIN32_DIR}/lib)
|
||||
set(GNUWIN32_BINARY_DIR ${GNUWIN32_DIR}/bin)
|
||||
set(CMAKE_INCLUDE_PATH ${CMAKE_INCLUDE_PATH} ${GNUWIN32_INCLUDE_DIR})
|
||||
set(CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} ${GNUWIN32_LIBRARY_DIR})
|
||||
set(GNUWIN32_FOUND TRUE)
|
||||
else (GNUWIN32_DIR)
|
||||
set(GNUWIN32_FOUND)
|
||||
endif (GNUWIN32_DIR)
|
||||
|
||||
if (GNUWIN32_FOUND)
|
||||
if (NOT GNUWIN32_FIND_QUIETLY)
|
||||
message(STATUS "Found GNUWIN32: ${GNUWIN32_DIR}")
|
||||
endif (NOT GNUWIN32_FIND_QUIETLY)
|
||||
else (GNUWIN32_FOUND)
|
||||
if (GNUWIN32_FIND_REQUIRED)
|
||||
message(SEND_ERROR "Could NOT find GNUWIN32")
|
||||
endif (GNUWIN32_FIND_REQUIRED)
|
||||
endif (GNUWIN32_FOUND)
|
||||
|
||||
endif (WIN32)
|
||||
|
||||
|
|
@ -1,56 +0,0 @@
|
|||
# - Try to find the install path of the required win32 supplementary libraries
|
||||
#
|
||||
# used environment vars
|
||||
# KDEWIN_DIR - kdewin root dir
|
||||
#
|
||||
# this will define
|
||||
# KDEWIN_FOUND - system has KDEWIN
|
||||
# KDEWIN_DIR - the KDEWIN root installation dir
|
||||
#
|
||||
# Copyright (c) 2007, Ralf Habacker, <ralf.habacker@freenet.de>
|
||||
#
|
||||
# Redistribution and use is allowed according to the terms of the BSD license.
|
||||
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
||||
|
||||
if (WIN32)
|
||||
IF (NOT KDEWIN_DIR)
|
||||
# check for enviroment variable
|
||||
file(TO_CMAKE_PATH "$ENV{KDEWIN_DIR}" KDEWIN_DIR)
|
||||
if(NOT KDEWIN_DIR)
|
||||
file(TO_CMAKE_PATH "$ENV{PROGRAMFILES}" _progFiles)
|
||||
if (MINGW)
|
||||
set (DIR "kdewin-mingw")
|
||||
else (MINGW)
|
||||
set (DIR "kdewin-msvc")
|
||||
endif (MINGW)
|
||||
|
||||
# search in the default program install folder
|
||||
find_file(KDEWIN_DIR_tmp ${DIR} kdewin kdewin32 gnuwin32 win32libs
|
||||
PATHS
|
||||
"${_progFiles}"
|
||||
)
|
||||
set (KDEWIN_DIR ${KDEWIN_DIR_tmp})
|
||||
endif (NOT KDEWIN_DIR)
|
||||
if (KDEWIN_DIR)
|
||||
message(STATUS "Found windows supplementary package location: ${KDEWIN_DIR}")
|
||||
endif (KDEWIN_DIR)
|
||||
endif (NOT KDEWIN_DIR)
|
||||
|
||||
# this must be set every time
|
||||
if (KDEWIN_DIR)
|
||||
# add include path and library to all targets, this is required because
|
||||
# cmake's 2.4.6 FindZLib.cmake does not use CMAKE_REQUIRED... vars
|
||||
set(CMAKE_INCLUDE_PATH ${CMAKE_INCLUDE_PATH} ${KDEWIN_DIR}/include)
|
||||
set(CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} ${KDEWIN_DIR}/lib)
|
||||
|
||||
set (KDEWIN_FOUND 1)
|
||||
else(KDEWIN_DIR)
|
||||
message(STATUS "Could not find the location of the windows supplementary packages which is \n"
|
||||
"\t\tenvironment variable KDEWIN_DIR\n"
|
||||
"\t\t<ProgramFiles>/${DIR}\n"
|
||||
"\t\t<ProgramFiles>/kdewin\n"
|
||||
"\t\t<ProgramFiles>/kdewin32\n"
|
||||
"\t\t<ProgramFiles>/gnuwin32\n")
|
||||
endif(KDEWIN_DIR)
|
||||
|
||||
endif (WIN32)
|
||||
|
|
@ -1,156 +0,0 @@
|
|||
#
|
||||
# KDEWIN packager support http://download.cegit.de/kde-windows/installer
|
||||
#
|
||||
# The kdewin packager is searched in the following pathes and order
|
||||
#
|
||||
# path specified by the environment dir KDEWIN_PACKAGER_DIR
|
||||
# <ProgramFiles>/kdewin-packager
|
||||
# <ProgramFiles>/kdewin-installer
|
||||
#
|
||||
# The macro KDEWIN_PACKAGER provides package building support and should be
|
||||
# added to the top level CMakeLists.txt as shown below
|
||||
#
|
||||
# if (KDEWIN_PACKAGER_FOUND)
|
||||
# KDEWIN_PACKAGER(
|
||||
# "projectname"
|
||||
# "version"
|
||||
# "description"
|
||||
# "additional options"
|
||||
# )
|
||||
# endif (KDEWIN_PACKAGER_FOUND)
|
||||
|
||||
# The macro KDEWIN_PACKAGER adds three additional makefile targets, which could be
|
||||
# called using the regular make tool
|
||||
#
|
||||
# kdewin_package
|
||||
# - build kdewin package with currently used compiler and build type
|
||||
# kdewin_package_debug_and_release
|
||||
# - build kdewin debug and release package with currently used compiler
|
||||
# kdewin_package_debug_and_release_mingw_and_msvc
|
||||
# - build kdewin debug and release package with mingw and msvc compiler
|
||||
#
|
||||
#
|
||||
#
|
||||
# Copyright (c) 2006-2007, Ralf Habacker
|
||||
#
|
||||
# Redistribution and use is allowed according to the terms of the BSD license.
|
||||
#
|
||||
|
||||
if (WIN32)
|
||||
if(NOT KDEWIN_PACKAGER_DIR)
|
||||
# check for enviroment variable
|
||||
file(TO_CMAKE_PATH "$ENV{KDEWIN_PACKAGER_DIR}" KDEWIN_PACKAGER_DIR)
|
||||
if(NOT KDEWIN_PACKAGER_DIR)
|
||||
# search in the default program install folder
|
||||
file(TO_CMAKE_PATH "$ENV{PROGRAMFILES}" _progFiles)
|
||||
find_file(KDEWIN_PACKAGER_DIR_tmp kdewin-packager kdewin-installer
|
||||
PATHS
|
||||
"${_progFiles}"
|
||||
)
|
||||
set(KDEWIN_PACKAGER_DIR ${KDEWIN_PACKAGER_DIR_tmp})
|
||||
endif(NOT KDEWIN_PACKAGER_DIR)
|
||||
endif(NOT KDEWIN_PACKAGER_DIR)
|
||||
|
||||
if (KDEWIN_PACKAGER_DIR)
|
||||
|
||||
find_program(KDEWIN_PACKAGER_EXECUTABLE kdewin-packager
|
||||
PATHS
|
||||
${KDEWIN_PACKAGER_DIR}/bin
|
||||
)
|
||||
|
||||
set(KDEWIN_PACKAGER_FOUND TRUE)
|
||||
else (KDEWIN_PACKAGER_DIR)
|
||||
set(KDEWIN_PACKAGER_FOUND)
|
||||
endif (KDEWIN_PACKAGER_DIR)
|
||||
|
||||
if (KDEWIN_PACKAGER_FOUND)
|
||||
if (NOT KDEWIN_PACKAGER_FIND_QUIETLY)
|
||||
message(STATUS "Found KDEWIN Packager: ${KDEWIN_PACKAGER_DIR}")
|
||||
endif (NOT KDEWIN_PACKAGER_FIND_QUIETLY)
|
||||
else (KDEWIN_PACKAGER_FOUND)
|
||||
if (KDEWIN_PACKAGER_FIND_REQUIRED)
|
||||
message(FATAL_ERROR "Could NOT find KDEWIN PAckager")
|
||||
endif (KDEWIN_PACKAGER_FIND_REQUIRED)
|
||||
endif (KDEWIN_PACKAGER_FOUND)
|
||||
|
||||
endif (WIN32)
|
||||
|
||||
MACRO (KDEWIN_PACKAGER _name _version _notes _options)
|
||||
if (KDEWIN_PACKAGER_FOUND)
|
||||
if (MSVC)
|
||||
set (type "msvc")
|
||||
else (MSVC)
|
||||
set (type "mingw")
|
||||
endif (MSVC)
|
||||
|
||||
add_custom_target(kdewin_package
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
-DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/temp -P ${CMAKE_BINARY_DIR}/cmake_install.cmake
|
||||
COMMAND ${KDEWIN_PACKAGER_EXECUTABLE}
|
||||
-name ${_name}
|
||||
-root ${CMAKE_BINARY_DIR}/temp
|
||||
-srcroot ${CMAKE_SOURCE_DIR}
|
||||
-version ${_version}
|
||||
-notes "${_notes}"
|
||||
-type ${type}
|
||||
${_options}
|
||||
# FIXME: cleanup does not work
|
||||
#COMMAND rmdir /Q /S ${CMAKE_BINARY_DIR}\temp
|
||||
)
|
||||
add_custom_target(kdewin_package_debug_and_release
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
-H$(CMAKE_SOURCE_DIR)
|
||||
-B$(CMAKE_BINARY_DIR)
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
COMMAND ${CMAKE_MAKE_PROGRAM}
|
||||
clean
|
||||
COMMAND ${CMAKE_MAKE_PROGRAM}
|
||||
install/local
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
-H$(CMAKE_SOURCE_DIR)
|
||||
-B$(CMAKE_BINARY_DIR)
|
||||
-DCMAKE_BUILD_TYPE=Debug
|
||||
COMMAND ${CMAKE_MAKE_PROGRAM}
|
||||
clean
|
||||
COMMAND ${CMAKE_MAKE_PROGRAM}
|
||||
install/local
|
||||
COMMAND ${KDEWIN_PACKAGER_EXECUTABLE}
|
||||
-name ${_name}
|
||||
-root ${CMAKE_BINARY_DIR}/temp
|
||||
-srcroot ${CMAKE_SOURCE_DIR}
|
||||
-version ${_version}
|
||||
-notes "${_notes}"
|
||||
-type ${type}
|
||||
${_options}
|
||||
# FIXME: cleanup does not work
|
||||
#COMMAND rmdir /Q /S ${CMAKE_BINARY_DIR}\temp
|
||||
)
|
||||
set (CONTENT "
|
||||
if \"%1\" == \"package_only\" goto package_only
|
||||
|
||||
del CMakeCache.txt
|
||||
rmdir /Q /S ${CMAKE_BINARY_DIR}/temp
|
||||
${CMAKE_COMMAND} ${CMAKE_SOURCE_DIR} -G \"MinGW Makefiles\" -DCMAKE_BUILD_TYPE=Release
|
||||
mingw32-make
|
||||
${CMAKE_COMMAND} -DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/temp -P cmake_install.cmake
|
||||
${CMAKE_COMMAND} ${CMAKE_SOURCE_DIR} -G \"MinGW Makefiles\" -DCMAKE_BUILD_TYPE=Debug
|
||||
mingw32-make
|
||||
${CMAKE_COMMAND} -DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/temp -P cmake_install.cmake
|
||||
del CMakeCache.txt
|
||||
${CMAKE_COMMAND} ${CMAKE_SOURCE_DIR} -G \"NMake Makefiles\" -DCMAKE_BUILD_TYPE=Release
|
||||
nmake
|
||||
${CMAKE_COMMAND} -DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/temp -P cmake_install.cmake
|
||||
${CMAKE_COMMAND} ${CMAKE_SOURCE_DIR} -G \"NMake Makefiles\" -DCMAKE_BUILD_TYPE=Debug
|
||||
nmake
|
||||
${CMAKE_COMMAND} -DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/temp -P cmake_install.cmake
|
||||
:package_only
|
||||
${KDEWIN_PACKAGER_EXECUTABLE} -name ${_name} -root ${CMAKE_BINARY_DIR}/temp -srcroot ${CMAKE_SOURCE_DIR} -version ${_version} -notes \"${_notes}\" ${_options}
|
||||
"
|
||||
)
|
||||
write_file(${CMAKE_BINARY_DIR}/kdewin_package_debug_and_release_mingw_and_msvc.bat "${CONTENT}")
|
||||
add_custom_target(kdewin_package_debug_and_release_mingw_and_msvc
|
||||
COMMAND ${CMAKE_BINARY_DIR}/kdewin_package_debug_and_release_mingw_and_msvc.bat
|
||||
)
|
||||
endif (KDEWIN_PACKAGER_FOUND)
|
||||
ENDMACRO (KDEWIN_PACKAGER)
|
||||
|
||||
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue