Commit aab383a6 authored by Ralf Habacker's avatar Ralf Habacker

added new variable DBUS_BUILD_TIMESTAMP

parent f27dd9b8
...@@ -10,6 +10,11 @@ endif (DBUS_PATCH_VERSION) ...@@ -10,6 +10,11 @@ endif (DBUS_PATCH_VERSION)
set (DBUS_VERSION_STRING "${DBUS_VERSION}") set (DBUS_VERSION_STRING "${DBUS_VERSION}")
if (NOT DBUS_BUILD_TIMESTAMP)
message(STATUS "FIXME set DBUS_BUILD_TIMESTAMP to current date or fix current time stamp generation for having actual build date in version file info")
set (DBUS_BUILD_TIMESTAMP 20091231)
endif (NOT DBUS_BUILD_TIMESTAMP)
# we need to be up to date # we need to be up to date
CMAKE_MINIMUM_REQUIRED(VERSION 2.4.4 FATAL_ERROR) CMAKE_MINIMUM_REQUIRED(VERSION 2.4.4 FATAL_ERROR)
if(COMMAND cmake_policy) if(COMMAND cmake_policy)
...@@ -593,6 +598,10 @@ message(" Console auth dir: ${DBUS_CONSOLE_AUTH_DIR} " ...@@ -593,6 +598,10 @@ message(" Console auth dir: ${DBUS_CONSOLE_AUTH_DIR} "
message(" System bus user: ${DBUS_USER} ") message(" System bus user: ${DBUS_USER} ")
message(" 'make check' socket dir: ${TEST_SOCKET_DIR} ") message(" 'make check' socket dir: ${TEST_SOCKET_DIR} ")
endif (WIN32) endif (WIN32)
if (MSVC)
message(" build timestamp: ${DBUS_BUILD_TIMESTAMP} ")
endif (MSVC)
MESSAGE(" ") MESSAGE(" ")
if (DBUS_BUILD_TESTS) if (DBUS_BUILD_TESTS)
message("NOTE: building with unit tests increases the size of the installed library and renders it insecure.") message("NOTE: building with unit tests increases the size of the installed library and renders it insecure.")
......
...@@ -230,11 +230,8 @@ set(libdbus_HEADERS ...@@ -230,11 +230,8 @@ set(libdbus_HEADERS
) )
if (MSVC) if (MSVC)
set (BUILD_FILEVERSION ${DBUS_MAJOR_VERSION},${DBUS_MINOR_VERSION},${DBUS_MICRO_VERSION},${DBUS_PATCH_VERSION}) set (BUILD_FILEVERSION ${DBUS_MAJOR_VERSION},${DBUS_MINOR_VERSION},${DBUS_MICRO_VERSION},${DBUS_PATCH_VERSION})
set (BUILD_TIMESTAMP ${DBUS_BUILD_TIMESTAMP})
# no idea how to create the current date as string
message(STATUS "FIXME create the current date as string in dbus/CMakeLists.txt")
set (BUILD_TIMESTAMP 20091205)
configure_file(${DBUS_DIR}/versioninfo.rc.in ${CMAKE_CURRENT_BINARY_DIR}/versioninfo.rc) configure_file(${DBUS_DIR}/versioninfo.rc.in ${CMAKE_CURRENT_BINARY_DIR}/versioninfo.rc)
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/afxres.h "") file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/afxres.h "")
list(APPEND libdbus_SOURCES versioninfo.rc) list(APPEND libdbus_SOURCES versioninfo.rc)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment