Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

CPack debian packaging #3583

Merged
merged 32 commits into from
Dec 17, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
e949962
cpack: generate modular debian packages
robaerd Dec 5, 2020
1e88436
cpack: add debian package descriptions
robaerd Dec 5, 2020
74186bf
cpack: add missing debian package properties
robaerd Dec 6, 2020
ff1ad5f
package: add hardening flags, fix install location
robaerd Dec 6, 2020
b09f918
cpack: fix libraries in wrong packages
robaerd Dec 7, 2020
c3159cc
cpack: add debian control files
robaerd Dec 8, 2020
ac17b16
cpack: remove rpath
robaerd Dec 8, 2020
c9fcabb
cmake: remove debug messages
robaerd Dec 8, 2020
e210171
style: reformat with cmake-format 0.6.3
robaerd Dec 8, 2020
66cd977
package: move script to packaging folder
robaerd Dec 8, 2020
9b56875
doc: add release notes
robaerd Dec 8, 2020
9293bc7
cmake: add symlink kdb.1 to kdb-static.1
robaerd Dec 10, 2020
d7817d4
packaging: add copyright file for debian
robaerd Dec 10, 2020
5d0d079
cpack: install debian copyright file on debian based distros
robaerd Dec 11, 2020
22cf55f
cpack: add elektra-dbg package
robaerd Dec 11, 2020
ab4a1b1
doc: convert THIRD_PARTY_LICENSES into dep5 format
robaerd Dec 11, 2020
37aad1e
cpack: add maintainer and missing package dependency
robaerd Dec 11, 2020
06877ff
style: reformat
robaerd Dec 11, 2020
2121a44
cmake: add docu for component parameter
robaerd Dec 11, 2020
e324b22
cmake: fix incompatibility with cmake 3.5
robaerd Dec 11, 2020
7223844
cmake: fix error on optional macro parameter
robaerd Dec 11, 2020
7f02c6b
style: reformat
robaerd Dec 11, 2020
ab6d936
packaging: apply suggestions from review
robaerd Dec 12, 2020
6681054
doc: change copyright field to reference authors file
robaerd Dec 12, 2020
97da809
packaging: add debian changelog
robaerd Dec 12, 2020
546d7a0
packaging: change folder structure
robaerd Dec 12, 2020
882feb3
news: add cpack as highlight to release notes
robaerd Dec 13, 2020
9446af2
doc: add myself to authors.md
robaerd Dec 13, 2020
b72b85a
packaging: add default component elektra-misc
robaerd Dec 13, 2020
959ac98
style: reformat
robaerd Dec 13, 2020
71bc1ce
news: fix release notes format
robaerd Dec 13, 2020
e9f83c4
packaging: apply suggestions from review
robaerd Dec 15, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ endif (CMAKE_VERSION VERSION_LESS 3.9)
set (CMAKE_MACOSX_RPATH 1)
set (CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")

set (
CMAKE_INSTALL_DEFAULT_COMPONENT_NAME
"elektra-misc"
CACHE STRING "Default component name" FORCE)
Copy link
Contributor

@markus2330 markus2330 Dec 17, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this really need to be in the cache? If yes, put it to scripts/cmake/ElektraCache.cmake and use mark_as_advanced as it is not something a normal user wants to change.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apparently a previous configuration issue led me to cache this variable. This is definetly not needed and a mistake from my side. I will fix this in the upcoming PR, since this one is already merged, if this is fine for you.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, of course it can be fixed with the next PR. But it would be good if it will be fixed before the release as cmake cache variables are user-facing (to maintainers) and should be documented and so on. So better to never introduce this cache variable to any release. Anyway: would be great to have RPM+DEB for next release. Is it your plan to do so?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was currently working on extending the release automation (ABI tests, external test suites etc) but I can of course also create RPM packages for this release. With our current CPack setup this probably shouldn't be that much work.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


# additional modules for loading libraries
set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/scripts/cmake/Modules/")

Expand Down Expand Up @@ -85,9 +90,6 @@ set (SO_VERSION 4)
set (SO_VERSION_TOOLS 2)
set (SO_VERSION_GETENV 0)

# needs version above
include (scripts/cmake/ElektraPackaging.cmake)

# ensure KDB_DB_SYSTEM is an absolute path
if (NOT IS_ABSOLUTE "${KDB_DB_SYSTEM}")
set (KDB_DB_SYSTEM "${CMAKE_INSTALL_PREFIX}/${KDB_DB_SYSTEM}")
Expand Down Expand Up @@ -129,3 +131,6 @@ install (
FILES LICENSE.md
DESTINATION ${TARGET_DOCUMENTATION_TEXT_FOLDER}
COMPONENT libelektra4)

# needs to be included last to collect all install components
include (scripts/cmake/ElektraPackaging.cmake)
4 changes: 2 additions & 2 deletions doc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ macro (do_doc target folder file install)
if (ARG_COMPONENT)
set (HAS_COMPONENT ${ARG_COMPONENT})
else ()
set (HAS_COMPONENT "elektra-misc")
set (HAS_COMPONENT ${CMAKE_INSTALL_DEFAULT_COMPONENT_NAME})
endif ()

# sometimes doxygen is too slow and fails with "Could not create output directory .../doc/html"
Expand Down Expand Up @@ -97,7 +97,7 @@ if (DOXYGEN_FOUND)
set (outputs ${OUTPUT_DIRECTORY}/html/index.html ${OUTPUT_DIRECTORY}/man/man3elektra/kdb.3elektra)

if (WITH_LATEX)
do_doc (latex ${OUTPUT_DIRECTORY}/latex/ refman.tex ${TARGET_DOCUMENTATION_LATEX_FOLDER})
do_doc (latex ${OUTPUT_DIRECTORY}/latex/ refman.tex ${TARGET_DOCUMENTATION_LATEX_FOLDER} COMPONENT elektra-doc)
add_dependencies (latex man3 html)
list (APPEND outputs ${OUTPUT_DIRECTORY}/latex/refman.tex)

Expand Down
61 changes: 51 additions & 10 deletions scripts/cmake/ElektraPackaging.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
set (PACKAGE_NAME "elektra")
set (CPACK_PACKAGE_NAME "${PACKAGE_NAME}")
set (PACKAGE_URL "https://www.libelektra.org/")
set (PACKAGE_BUGREPORT "https://bugs.libelektra.org/")

Expand All @@ -14,7 +13,7 @@ set (CPACK_DEBIAN_PACKAGE_MAINTAINER "Robert Sowula <[email protected]>")
set (CPACK_OUTPUT_FILE_PREFIX "packages")

set (
CPACK_COMPONENTS_ALL
DEBIAN_PACKAGES
libelektra4
libelektra4-all
libelektra4-full
Expand All @@ -25,13 +24,16 @@ set (
libelektra4-curl
libelektra4-dbus
libelektra-dev
libelektra4-java
libelektra4-journald
libelektra4-lua
libelektra4-python
libelektra4-xerces
libelektra4-xmltool
libelektra4-yajl
libelektra4-yamlcpp
libelektra4-zeromq
java-elektra
lua-elektra
python3-elektra
elektra-bin
Expand All @@ -40,21 +42,30 @@ set (
elektra-qt-gui
elektra-tests
elektra-dbg
elektra-misc)
${CMAKE_INSTALL_DEFAULT_COMPONENT_NAME})

set (COMPONENTS_WITHOUT_DBGSYM elektra-doc elektra-dbg libelektra-dev libelektra4-all elektra-bin-extra)
set (
COMPONENTS_WITHOUT_DBGSYM
elektra-doc
elektra-dbg
libelektra-dev
libelektra4-all
libelektra4-yamlcpp
elektra-bin-extra
java-elektra
${CMAKE_INSTALL_DEFAULT_COMPONENT_NAME})

set (ALL_PLUGINS "")
foreach (component ${CPACK_COMPONENTS_ALL})
foreach (component ${DEBIAN_PACKAGES})
if (component MATCHES "^libelektra4-.*")
list (APPEND ALL_PLUGINS "${component}")
endif ()
endforeach ()
string (REPLACE ";" ", " ALL_PLUGINS_STR "${ALL_PLUGINS}")

set (DBG_PACKAGE_NAMES "")
foreach (component ${CPACK_COMPONENTS_ALL})
if (NOT component IN_LIST COMPONENTS_WITHOUT_DBGSYM AND NOT component STREQUAL "elektra-misc")
foreach (component ${DEBIAN_PACKAGES})
if (NOT component IN_LIST COMPONENTS_WITHOUT_DBGSYM)
list (APPEND DBG_PACKAGE_NAMES "${component}-dbgsym")
endif ()
endforeach ()
Expand Down Expand Up @@ -108,6 +119,7 @@ if (UNIX)
if (NOT LSB_DISTRIB)
set (LSB_DISTRIB "unix")
endif (NOT LSB_DISTRIB)
message (STATUS "CMAKE_INSTALL_DEFAULT_COMPONENT_NAME: ${CMAKE_INSTALL_DEFAULT_COMPONENT_NAME}")

# For Debian-based distros we want to create DEB packages.
if ("${LSB_DISTRIB}" MATCHES "Ubuntu|Debian")
Expand Down Expand Up @@ -268,13 +280,34 @@ if (UNIX)
set (CPACK_DEBIAN_LIBELEKTRA4-JOURNALD_PACKAGE_SECTION "libs")
set (CPACK_DEBIAN_LIBELEKTRA4-JOURNALD_DEBUGINFO_PACKAGE "ON")

set (CPACK_DEBIAN_LIBELEKTRA4-YAMLCPP_PACKAGE_NAME "libelektra4-yamlcpp")
set (CPACK_COMPONENT_LIBELEKTRA4-YAMLCPP_DISPLAY_NAME "libelektra4-yamlcpp")
set (CPACK_COMPONENT_LIBELEKTRA4-YAMLCPP_DESCRIPTION "This package contains the 'yamlcpp' plugin.")
set (CPACK_COMPONENT_LIBELEKTRA4-YAMLCPP_DEPENDS "libelektra4")
set (CPACK_DEBIAN_LIBELEKTRA4-YAMLCPP_PACKAGE_SECTION "libs")

set (CPACK_DEBIAN_LIBELEKTRA4-LUA_PACKAGE_NAME "libelektra4-lua")
set (CPACK_COMPONENT_LIBELEKTRA4-LUA_DISPLAY_NAME "libelektra4-lua")
set (CPACK_COMPONENT_LIBELEKTRA4-LUA_DESCRIPTION "This package contains the 'lua' plugin.")
set (CPACK_COMPONENT_LIBELEKTRA4-LUA_DEPENDS "libelektra4")
set (CPACK_DEBIAN_LIBELEKTRA4-LUA_PACKAGE_SECTION "libs")
set (CPACK_DEBIAN_LIBELEKTRA4-LUA_DEBUGINFO_PACKAGE "ON")

set (CPACK_DEBIAN_LIBELEKTRA4-JAVA_PACKAGE_NAME "libelektra4-java")
set (CPACK_COMPONENT_LIBELEKTRA4-JAVA_DISPLAY_NAME "libelektra4-java")
set (CPACK_COMPONENT_LIBELEKTRA4-JAVA_DESCRIPTION "This package contains the 'jni' plugin.")
set (CPACK_COMPONENT_LIBELEKTRA4-JAVA_DEPENDS "libelektra4" "java-elektra")
set (CPACK_DEBIAN_LIBELEKTRA4-JAVA_PACKAGE_DEPENDS "default-jdk")
set (CPACK_DEBIAN_LIBELEKTRA4-JAVA_PACKAGE_SECTION "libs")
set (CPACK_DEBIAN_LIBELEKTRA4-JAVA_DEBUGINFO_PACKAGE "ON")

set (CPACK_DEBIAN_JAVA-ELEKTRA_PACKAGE_NAME "java-elektra")
set (CPACK_COMPONENT_JAVA-ELEKTRA_DISPLAY_NAME "java-elektra")
set (CPACK_COMPONENT_JAVA-ELEKTRA_DESCRIPTION "This package contains the Java bindings.")
set (CPACK_COMPONENT_JAVA-ELEKTRA_DEPENDS "libelektra4")
set (CPACK_DEBIAN_JAVA-ELEKTRA_PACKAGE_DEPENDS "default-jdk")
set (CPACK_DEBIAN_JAVA-ELEKTRA_PACKAGE_SECTION "java")

set (CPACK_DEBIAN_LUA-ELEKTRA_PACKAGE_NAME "lua-elektra")
set (CPACK_COMPONENT_LUA-ELEKTRA_DISPLAY_NAME "lua-elektra")
set (CPACK_COMPONENT_LUA-ELEKTRA_DESCRIPTION "This package contains the Lua bindings.")
Expand Down Expand Up @@ -369,11 +402,13 @@ if (UNIX)
"libelektra4-augeas"
"libelektra4-dbus"
"libelektra4-zeromq"
"libelektra4-java"
"libelektra4-lua"
"libelektra4-python"
"libelektra4-xmltool"
"libelektra4-xerces"
"libelektra4-yajl"
"libelektra4-yamlcpp"
"lua-elektra"
"elektra-bin"
"elektra-qt-gui"
Expand All @@ -400,11 +435,10 @@ if (UNIX)
"This package contains all files not part of any of the released Elektra packages.")
set (CPACK_DEBIAN_ELEKTRA-MISC_PACKAGE_ARCHITECTURE "all")
set (CPACK_DEBIAN_ELEKTRA-MISC_PACKAGE_SECTION "misc")
set (CPACK_DEBIAN_ELEKTRA-MISC_DEBUGINFO_PACKAGE "ON")

# install copyright file
configure_file ("${CMAKE_SOURCE_DIR}/doc/THIRD-PARTY-LICENSES" "${CMAKE_BINARY_DIR}/doc/copyright" COPYONLY)
foreach (component ${CPACK_COMPONENTS_ALL})
foreach (component ${DEBIAN_PACKAGES})
install (
FILES "${CMAKE_BINARY_DIR}/doc/copyright"
COMPONENT ${component}
Expand All @@ -420,7 +454,7 @@ if (UNIX)

add_custom_target (changelog ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/changelog.Debian.gz")

foreach (component ${CPACK_COMPONENTS_ALL})
foreach (component ${DEBIAN_PACKAGES})
install (
FILES "${CMAKE_CURRENT_BINARY_DIR}/changelog.Debian.gz"
COMPONENT ${component}
Expand Down Expand Up @@ -473,3 +507,10 @@ set (
"%ignore /usr/share/man")

include (CPack)

foreach (component ${CPACK_COMPONENTS_ALL})
if (NOT component IN_LIST DEBIAN_PACKAGES)
message (SEND_ERROR "Component ${component} is not
part of DEBIAN_PACKAGES (ElektraPackaging.cmake). Please add it to this list, so the dependencies can be derived correctly.")
endif ()
endforeach ()
2 changes: 1 addition & 1 deletion scripts/cmake/Modules/LibAddLib.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function (add_lib name)
if (ARG_COMPONENT)
set (HAS_COMPONENT ${ARG_COMPONENT})
else ()
set (HAS_COMPONENT "elektra-misc")
set (HAS_COMPONENT "${CMAKE_INSTALL_DEFAULT_COMPONENT_NAME}")
endif ()

add_library (elektra-${name}-objects OBJECT ${ARG_SOURCES})
Expand Down
2 changes: 1 addition & 1 deletion scripts/cmake/Modules/LibAddMacros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ function (generate_manpage NAME)
if (ARG_COMPONENT)
set (HAS_COMPONENT ${ARG_COMPONENT})
else ()
set (HAS_COMPONENT "elektra-misc")
set (HAS_COMPONENT ${CMAKE_INSTALL_DEFAULT_COMPONENT_NAME})
endif ()

set (MAN_PAGE_LOCATION "doc/man/man${SECTION}/${NAME}.${SECTION}")
Expand Down
2 changes: 1 addition & 1 deletion scripts/cmake/Modules/LibAddPlugin.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ function (add_plugin PLUGIN_SHORT_NAME)
if (ARG_COMPONENT)
set (HAS_COMPONENT ${ARG_COMPONENT})
else ()
set (HAS_COMPONENT "elektra-misc")
set (HAS_COMPONENT "${CMAKE_INSTALL_DEFAULT_COMPONENT_NAME}")
endif ()

if (ADDTESTING_PHASE)
Expand Down
4 changes: 0 additions & 4 deletions scripts/kdb/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,13 @@ endforeach (file ${IN_FILES})

set (COMPONENT_BIN_EXTRA_FILES "find-tools" "mount-list-all-files" "mountpoint-info")

set (NOT_INCLUDE "cmerge-config-files" "install-config-file")

file (GLOB ALL_FILES *)
list (REMOVE_ITEM ALL_FILES ${IN_FILES})
list (REMOVE_ITEM ALL_FILES "${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt")
foreach (file ${ALL_FILES})
get_filename_component (file_we "${file}" NAME_WE)
if ("${file_we}" IN_LIST COMPONENT_BIN_EXTRA_FILES)
set (HAS_COMPONENT elektra-bin-extra)
elseif ("${file_we}" IN_LIST NOT_INCLUDE)
set (HAS_COMPONENT "")
else ()
set (HAS_COMPONENT elektra-bin)
endif ()
Expand Down
4 changes: 2 additions & 2 deletions scripts/packaging/package.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/sh

ELEKTRA_PLUGINS='ALL;mozprefs;multifile;-gitresolver;-jni;-ruby;-haskell;-yamlcpp;toml'
ELEKTRA_PLUGINS='ALL;mozprefs;multifile;-gitresolver;jni;-ruby;-haskell;yamlcpp;toml'
ELEKTRA_TOOLS='ALL'
ELEKTRA_BINDINGS='cpp;lua;python;INTERCEPT'
ELEKTRA_BINDINGS='cpp;lua;python;jna;INTERCEPT'

# workaround for hardening flags
CPPFLAGS=$(dpkg-buildflags --get CPPFLAGS)
Expand Down
9 changes: 3 additions & 6 deletions src/bindings/glib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,9 @@ target_compile_options (${GELEKTRA_LIBRARY} PUBLIC ${GOBJECT_CFLAGS_OTHER})
target_link_libraries (${GELEKTRA_LIBRARY} PUBLIC elektra-core elektra-kdb)
target_link_libraries (${GELEKTRA_LIBRARY} PUBLIC ${GOBJECT_LDFLAGS})

install (TARGETS ${GELEKTRA_LIBRARY} LIBRARY DESTINATION lib${LIB_SUFFIX} COMPONENT elektra-misc)
install (TARGETS ${GELEKTRA_LIBRARY} LIBRARY DESTINATION lib${LIB_SUFFIX})

install (
FILES ${GELEKTRA_HDR_FILES}
DESTINATION include/${TARGET_INCLUDE_FOLDER}
COMPONENT elektra-misc)
install (FILES ${GELEKTRA_HDR_FILES} DESTINATION include/${TARGET_INCLUDE_FOLDER})

configure_file ("${CMAKE_CURRENT_SOURCE_DIR}/gelektra-constants.h.in" "${CMAKE_CURRENT_BINARY_DIR}/gelektra-constants.h" @ONLY)

Expand All @@ -56,7 +53,7 @@ configure_file ("${CMAKE_CURRENT_SOURCE_DIR}/gelektra.pc.in" "${CMAKE_CURRENT_BI
install (
FILES "${CMAKE_CURRENT_BINARY_DIR}/${GELEKTRA_LIBRARY}.pc"
DESTINATION lib${LIB_SUFFIX}/${TARGET_PKGCONFIG_FOLDER}
COMPONENT elektra-misc)
COMPONENT libelektra-dev)

if (BUILD_TESTING)
add_subdirectory (tests)
Expand Down
4 changes: 2 additions & 2 deletions src/bindings/gsettings/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ if (GELEKTRA_LIBRARY)
include_directories (${CMAKE_BINARY_DIR}/src/include/)
target_link_libraries (elektrasettings ${GLIB_LIBRARIES} ${GMODULE_LIBRARIES} ${GIO_LIBRARIES} ${GELEKTRA_LIBRARY} elektra-core)
if (INSTALL_SYSTEM_FILES)
install (TARGETS elektrasettings LIBRARY DESTINATION ${GIO_MODULE_DIR} COMPONENT elektra-misc)
install (TARGETS elektrasettings LIBRARY DESTINATION ${GIO_MODULE_DIR})
endif ()
else ()
pkg_get_variable (GIO_MODULE_DIR gio-2.0 giomoduledir)
Expand All @@ -67,7 +67,7 @@ else ()
endif ()
include_directories (${GELEKTRA_INCLUDE_DIRS})
target_link_libraries (elektrasettings ${GLIB_LIBRARIES} ${GMODULE_LIBRARIES} ${GIO_LIBRARIES} ${GELEKTRA_LIBRARIES})
install (TARGETS elektrasettings LIBRARY DESTINATION ${GIO_MODULE_DIR} COMPONENT elektra-misc)
install (TARGETS elektrasettings LIBRARY DESTINATION ${GIO_MODULE_DIR})
endif ()

if (CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR)
Expand Down
2 changes: 1 addition & 1 deletion src/bindings/intercept/env/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ else ()
set (NAME elektrify-getenv)

generate_readme (${NAME})
generate_manpage (kdb-${NAME} FILENAME ${CMAKE_CURRENT_SOURCE_DIR}/README.md)
generate_manpage (kdb-${NAME} FILENAME ${CMAKE_CURRENT_SOURCE_DIR}/README.md COMPONENT elektra-bin)
include_directories (${CMAKE_CURRENT_BINARY_DIR})

add_subdirectory (src)
Expand Down
7 changes: 2 additions & 5 deletions src/bindings/io/doc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,9 @@ target_include_directories (${IO_VARIANT_LIBRARY} PUBLIC ${CMAKE_CURRENT_SOURCE_
# ~~~
target_link_elektra (${IO_VARIANT_LIBRARY} elektra-io)

install (TARGETS ${IO_VARIANT_LIBRARY} LIBRARY DESTINATION lib${LIB_SUFFIX} COMPONENT elektra-misc)
install (TARGETS ${IO_VARIANT_LIBRARY} LIBRARY DESTINATION lib${LIB_SUFFIX})

install (
FILES ${IO_VARIANT_HDR_FILES}
DESTINATION include/${TARGET_INCLUDE_FOLDER}
COMPONENT elektra-misc)
install (FILES ${IO_VARIANT_HDR_FILES} DESTINATION include/${TARGET_INCLUDE_FOLDER})

# configure_file ( "${CMAKE_CURRENT_SOURCE_DIR}/${IO_VARIANT_LIBRARY}.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/${IO_VARIANT_LIBRARY}.pc" @ONLY )

Expand Down
2 changes: 1 addition & 1 deletion src/bindings/io/ev/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ else () # Build library
install (
FILES "${CMAKE_CURRENT_BINARY_DIR}/${IO_VARIANT_LIBRARY}.pc"
DESTINATION lib${LIB_SUFFIX}/${TARGET_PKGCONFIG_FOLDER}
COMPONENT elektra-misc)
COMPONENT libelektra-dev)

# Build test
set (testexename testio_${BINDING_VARIANT})
Expand Down
2 changes: 1 addition & 1 deletion src/bindings/io/glib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ else ()
install (
FILES "${CMAKE_CURRENT_BINARY_DIR}/${IO_VARIANT_LIBRARY}.pc"
DESTINATION lib${LIB_SUFFIX}/${TARGET_PKGCONFIG_FOLDER}
COMPONENT elektra-misc)
COMPONENT libelektra-dev)

# Build test
set (testexename testio_${BINDING_VARIANT})
Expand Down
2 changes: 1 addition & 1 deletion src/bindings/io/uv/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ else ()
install (
FILES "${CMAKE_CURRENT_BINARY_DIR}/${IO_UV_LIBRARY}.pc"
DESTINATION lib${LIB_SUFFIX}/${TARGET_PKGCONFIG_FOLDER}
COMPONENT elektra-misc)
COMPONENT libelektra-dev)

# Build test
set (TESTEXENAME testio_${BINDING_VARIANT})
Expand Down
6 changes: 3 additions & 3 deletions src/bindings/jna/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ if (Java_JAVAC_EXECUTABLE)
WORKING_DIRECTORY libelektra4j
DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/libelektra4j/pom.xml" ${JNA_BINDING_SOURCE_FILES})

create_lib_symlink (libelektra4j-${KDB_VERSION}.jar libelektra4j.jar JAVA)
create_lib_symlink (libelektra4j-${KDB_VERSION}.pom.xml libelektra4j.pom.xml JAVA)
create_lib_symlink (libelektra4j-${KDB_VERSION}.jar libelektra4j.jar java-elektra JAVA)
create_lib_symlink (libelektra4j-${KDB_VERSION}.pom.xml libelektra4j.pom.xml java-elektra JAVA)

add_custom_target (jna ALL
DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/libelektra4j/target/libelektra4j-${KDB_VERSION}.jar")
Expand All @@ -112,7 +112,7 @@ if (Java_JAVAC_EXECUTABLE)
FILES "${CMAKE_CURRENT_BINARY_DIR}/libelektra4j/target/libelektra4j-${KDB_VERSION}.jar"
"${CMAKE_CURRENT_BINARY_DIR}/libelektra4j/libelektra4j-${KDB_VERSION}.pom.xml"
DESTINATION "share/java"
COMPONENT elektra-misc)
COMPONENT java-elektra)

# and add maven test to execute with ctest in the testing phase
if ((CMAKE_SYSTEM_NAME STREQUAL "Darwin") AND NOT (CMAKE_SYSTEM_VERSION VERSION_LESS 15))
Expand Down
7 changes: 2 additions & 5 deletions src/bindings/swig/ruby/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,8 @@ else ()
message (STATUS "Ruby module install path: ${RUBY_MODULE_INSTALL_DIR}")
endif ()

install (TARGETS swig-ruby swig-ruby-tools LIBRARY DESTINATION ${RUBY_LIB_INSTALL_DIR} COMPONENT elektra-misc)
install (
FILES ${CMAKE_CURRENT_SOURCE_DIR}/kdb.rb ${CMAKE_CURRENT_SOURCE_DIR}/kdbtools.rb
DESTINATION ${RUBY_MODULE_INSTALL_DIR}
COMPONENT elektra-misc)
install (TARGETS swig-ruby swig-ruby-tools LIBRARY DESTINATION ${RUBY_LIB_INSTALL_DIR})
install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/kdb.rb ${CMAKE_CURRENT_SOURCE_DIR}/kdbtools.rb DESTINATION ${RUBY_MODULE_INSTALL_DIR})

include_directories (${CMAKE_CURRENT_SOURCE_DIR})
if (BUILD_TESTING)
Expand Down
Loading