Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

Revision 4fb3a2414f350f4f4a278dc8e9d01a1bb0b2f70d authored by Jan Möbius on 15 February 2022, 08:59:43 UTC, committed by Jan Möbius on 15 February 2022, 08:59:43 UTC
Added Qt version
1 parent 44f6761
  • Files
  • Changes
  • 667a888
  • /
  • VCI
  • /
  • VCIOutput.cmake
Raw File Download

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • revision
  • directory
  • content
revision badge
swh:1:rev:4fb3a2414f350f4f4a278dc8e9d01a1bb0b2f70d
directory badge
swh:1:dir:b857ff45a28a124d5ce203b6b70ebd44235e2b94
content badge
swh:1:cnt:dee0a6c248d939c8fce211514c8296abfc02dc76

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • revision
  • directory
  • content
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
VCIOutput.cmake
# fill string with spaces
macro (vci_format_string str length return)
    string (LENGTH "${str}" _str_len)
    math (EXPR _add_chr "${length} - ${_str_len}")
    set (${return} "${str}")
    while (_add_chr GREATER 0)
        set (${return} "${${return}} ")
        math (EXPR _add_chr "${_add_chr} - 1")
    endwhile ()
endmacro ()

# print message with color escape sequences if CMAKE_COLOR_MAKEFILE is set
string (ASCII 27 _escape)
function (vci_color_message _str)
    if (CMAKE_COLOR_MAKEFILE AND NOT WIN32)
        message (${_str})
    else ()
        string (REGEX REPLACE "${_escape}.[0123456789;]*m" "" __str ${_str})
        message (${__str})
    endif ()
endfunction ()

# info header
function (vci_print_configure_header _id _name)
    vci_format_string ("${_name}" 40 _project)
    if ( ${_id}_VERSION )
        vci_format_string ("${${_id}_VERSION}" 40 _version)
    else()
        vci_format_string ("${PROJECT_VERSION}" 40 _version)
    endif()
    vci_color_message ("\n${_escape}[40;37m************************************************************${_escape}[0m")
    vci_color_message ("${_escape}[40;37m* ${_escape}[1;31mVCI ${_escape}[0;40;34mBuildsystem${_escape}[0m${_escape}[40;37m                                          *${_escape}[0m")
    vci_color_message ("${_escape}[40;37m*                                                          *${_escape}[0m")
    vci_color_message ("${_escape}[40;37m* Package : ${_escape}[32m${_project} ${_escape}[37m      *${_escape}[0m")
    vci_color_message ("${_escape}[40;37m* Version : ${_escape}[32m${_version} ${_escape}[37m      *${_escape}[0m")

    if ( NOT WIN32 )
      # Just artistic. remove 2 spaces for release to make it look nicer ;-)
      if (${CMAKE_BUILD_TYPE} MATCHES "Debug")    
         vci_color_message ("${_escape}[40;37m* Type    : ${_escape}[32m${CMAKE_BUILD_TYPE} ${_escape}[37m                                         *${_escape}[0m")
      else()
         vci_color_message ("${_escape}[40;37m* Type    : ${_escape}[32m${CMAKE_BUILD_TYPE} ${_escape}[37m                                       *${_escape}[0m")
      endif()
    endif()

    vci_color_message ("${_escape}[40;37m************************************************************${_escape}[0m")
endfunction ()

# info line
function (vci_print_configure_footer)
    vci_color_message ("${_escape}[40;37m************************************************************${_escape}[0m\n")
endfunction ()

The diff you're trying to view is too large. Only the first 1000 changed files have been loaded.
Showing with 0 additions and 0 deletions (0 / 0 diffs computed)
swh spinner

Computing file changes ...

back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API