diff --git a/cmake/backbone b/cmake/backbone index 1a86690..df96ceb 160000 --- a/cmake/backbone +++ b/cmake/backbone @@ -1 +1 @@ -Subproject commit 1a86690f4b44f1c781da8fbb15723bf3089236e3 +Subproject commit df96ceb0b067844d341f0405db7c10def84d772c diff --git a/cpack/CMakeLists.txt b/cpack/CMakeLists.txt index 91ee3c5..97d5a01 100644 --- a/cpack/CMakeLists.txt +++ b/cpack/CMakeLists.txt @@ -6,5 +6,4 @@ SET (REDHAT_SECTION "Development/Libraries") SET (LICENSE "LGPLv3+") SET (WIN32_UNINSTALL_NAME "GobjPlug") # <= 8 symbols for the name -LIST (APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake) -INCLUDE (CPackCommon) +INCLUDE (CPackCommonRules) diff --git a/pkg-config/CMakeLists.txt b/pkg-config/CMakeLists.txt index 8eb3c8a..f644fc4 100644 --- a/pkg-config/CMakeLists.txt +++ b/pkg-config/CMakeLists.txt @@ -1,4 +1,4 @@ -INCLUDE (PkgConfigCommon) +INCLUDE (PkgConfigCommonRules) SET (PkgConfigLibs "-L\${libdir}") IF (WIN32) @@ -12,6 +12,6 @@ ELSE (WIN32) ENDIF (WIN32) CONFIGURE_FILE ( - "${CMAKE_CURRENT_SOURCE_DIR}/pkg-config.pc.in" + "${CMAKE_SOURCE_DIR}/cmake/backbone/templates/pkg-config.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_LOWERCASE_NAME}-${MAJOR}.pc" ) diff --git a/pkg-config/pkg-config.pc.in b/pkg-config/pkg-config.pc.in deleted file mode 100644 index ad5264d..0000000 --- a/pkg-config/pkg-config.pc.in +++ /dev/null @@ -1,11 +0,0 @@ -prefix=@PkgConfigPrefix@ -exec_prefix=@PkgConfigExecPrefix@ -libdir=@PkgConfigLibDir@ -includedir=@PkgConfigIncludeDir@ - -Name: @PkgConfigName@ -Description: @PkgConfigDescription@ -Version: @PkgConfigVersion@ -Libs: @PkgConfigLibs@ -Libs.private: @PkgConfigLibsPrivate@ -Cflags: @PkgConfigCflags@ diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt index 946851e..c191c1b 100644 --- a/po/CMakeLists.txt +++ b/po/CMakeLists.txt @@ -1,41 +1 @@ -SET (GETTEXT_PACKAGE "${PROJECT_LOWERCASE_NAME_ABI}") -ADD_DEFINITIONS (-DGETTEXT_PACKAGE="${GETTEXT_PACKAGE}") - -IF (WIN32) - SET (LOCALEDIR "") -ELSE () - SET (LOCALEDIR "${CMAKE_INSTALL_PREFIX}/share/locale") -ENDIF () - -SET (CUSTOM_LOCALEDIR "" CACHE STRING "Directory to install l10n files into") - -IF (NOT CUSTOM_LOCALEDIR STREQUAL "") - SET (LOCALEDIR "${CUSTOM_LOCALEDIR}") - MESSAGE(STATUS "Using LOCALEDIR=${LOCALEDIR}") -ENDIF () - -ADD_DEFINITIONS (-DLOCALEDIR="${LOCALEDIR}") -SET (LOCALE_INSTALL_DIR "share/locale") -LIST (APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake) -INCLUDE (MacroOptionalAddSubdirectory) -FIND_PACKAGE (Gettext REQUIRED) - -MACRO_OPTIONAL_ADD_SUBDIRECTORY (langs) - -# configure a header file for Gettext -SET (VERSION ${MAJOR}.${MINOR}.${PATCH}) -SET (PROJECT_LOWERCASE_NAME_ABI "${PROJECT_LOWERCASE_NAME}-${MAJOR}") - -STRING (TOUPPER "${CMAKE_PROJECT_NAME}" GettextUniqueHeader) -SET (GettextPackageNameAbi "${PROJECT_LOWERCASE_NAME_ABI}") -CONFIGURE_FILE ( - "gettext-config.h.in" - "${PROJECT_BINARY_DIR}/po/gettext-config.h" - ) - -IF (NOT GETTEXT_MSGMERGE_EXECUTABLE) - MESSAGE (FATAL_ERROR "Please install msgmerge binary") -ENDIF (NOT GETTEXT_MSGMERGE_EXECUTABLE) -IF (NOT GETTEXT_MSGFMT_EXECUTABLE) - MESSAGE(FATAL_ERROR "Please install msgmerge binary") -ENDIF (NOT GETTEXT_MSGFMT_EXECUTABLE) +INCLUDE (GettextCommonRules) diff --git a/po/gettext-config.h.in b/po/gettext-config.h.in deleted file mode 100644 index 7dd3e38..0000000 --- a/po/gettext-config.h.in +++ /dev/null @@ -1,11 +0,0 @@ -#ifndef @GettextUniqueHeader@_H -#define @GettextUniqueHeader@_H - -#define GETTEXT_PACKAGE "@GettextPackageNameAbi@" -#include - -#ifdef WIN32 -#define _(String) dgettext (GETTEXT_PACKAGE, String) -#endif - -#endif // @GettextUniqueHeader@_H diff --git a/po/langs/CMakeLists.txt b/po/langs/CMakeLists.txt deleted file mode 100644 index 33bcd87..0000000 --- a/po/langs/CMakeLists.txt +++ /dev/null @@ -1,2 +0,0 @@ -ADD_SUBDIRECTORY (ru) -# ADD_SUBDIRECTORY (de) diff --git a/po/langs/ru/CMakeLists.txt b/po/langs/ru/CMakeLists.txt deleted file mode 100644 index 3c6832c..0000000 --- a/po/langs/ru/CMakeLists.txt +++ /dev/null @@ -1,2 +0,0 @@ -FILE (GLOB _po_files *.po) -GETTEXT_PROCESS_PO_FILES (ru ALL INSTALL_DESTINATION ${LOCALE_INSTALL_DIR} PO_FILES ${_po_files} ) diff --git a/po/ru/CMakeLists.txt b/po/ru/CMakeLists.txt new file mode 100644 index 0000000..0b6020c --- /dev/null +++ b/po/ru/CMakeLists.txt @@ -0,0 +1 @@ +INCLUDE (GettextLangRules) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 2979b1a..a3d801f 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,5 +1,3 @@ -INCLUDE_DIRECTORIES (${CMAKE_BINARY_DIR}/po) - ADD_SUBDIRECTORY (host-iface) ADD_SUBDIRECTORY (plugin-iface) ADD_SUBDIRECTORY (loader)