Sha256: 4cf3a44ad25ba7fced7a7424a08994d894baa083c5fdc2ef2e8d7ebc784ad998

Contents?: true

Size: 1.53 KB

Versions: 8

Compression:

Stored size: 1.53 KB

Contents

find_program(GIT git)
if(GIT)
  execute_process(
    COMMAND git rev-parse HEAD
    WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
    OUTPUT_STRIP_TRAILING_WHITESPACE
    OUTPUT_VARIABLE BACKEND_GIT_REVISION)
endif()

string(TIMESTAMP BACKEND_BUILD_TIMESTAMP "%Y-%m-%d %H:%M:%S" UTC)
configure_file(${PROJECT_SOURCE_DIR}/build_version.hxx.in ${PROJECT_BINARY_DIR}/generated/build_version.hxx @ONLY)
configure_file(${PROJECT_SOURCE_DIR}/build_config.hxx.in ${PROJECT_BINARY_DIR}/generated/build_config.hxx @ONLY)

file(
  GENERATE
  OUTPUT ${PROJECT_BINARY_DIR}/generated/build_info.hxx
  CONTENT
    "
#pragma once
#define BACKEND_COMPILE_DEFINITIONS \"$<TARGET_PROPERTY:couchbase,COMPILE_DEFINITIONS>\"
#define BACKEND_COMPILE_FEATURES \"$<TARGET_PROPERTY:couchbase,COMPILE_FEATURES>\"
#define BACKEND_COMPILE_FLAGS \"$<TARGET_PROPERTY:couchbase,COMPILE_FLAGS>\"
#define BACKEND_COMPILE_OPTIONS \"$<TARGET_PROPERTY:couchbase,COMPILE_OPTIONS>\"

#define BACKEND_LINK_DEPENDS \"$<TARGET_PROPERTY:couchbase,LINK_DEPENDS>\"
#define BACKEND_LINK_FLAGS \"$<TARGET_PROPERTY:couchbase,LINK_FLAGS>\"
#define BACKEND_LINK_LIBRARIES \"$<TARGET_PROPERTY:couchbase,LINK_LIBRARIES>\"
#define BACKEND_LINK_OPTIONS \"$<TARGET_PROPERTY:couchbase,LINK_OPTIONS>\"

#define OPENSSL_CRYPTO_LIBRARIES \"${OPENSSL_CRYPTO_LIBRARIES}\"
#define OPENSSL_SSL_LIBRARIES \"${OPENSSL_SSL_LIBRARIES}\"
#define OPENSSL_INCLUDE_DIR \"${OPENSSL_INCLUDE_DIR}\"
#define RUBY_LIBRARY \"${RUBY_LIBRARY}\"
#define RUBY_INCLUDE_DIR \"${RUBY_INCLUDE_DIR}\"

#define CMAKE_BUILD_TYPE \"${CMAKE_BUILD_TYPE}\"
")

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
couchbase-3.1.1 ext/cmake/VersionInfo.cmake
couchbase-3.1.1-universal-darwin-20 ext/cmake/VersionInfo.cmake
couchbase-3.1.0 ext/cmake/VersionInfo.cmake
couchbase-3.0.3 ext/cmake/VersionInfo.cmake
couchbase-3.0.3-universal-darwin-20 ext/cmake/VersionInfo.cmake
couchbase-3.0.2 ext/cmake/VersionInfo.cmake
couchbase-3.0.1-universal-darwin-19 ext/cmake/VersionInfo.cmake
couchbase-3.0.1 ext/cmake/VersionInfo.cmake