Navigation


Changeset 1159:05f74dc19c49 in freeDiameter for libfdcore


Ignore:
Timestamp:
May 31, 2013, 12:20:27 PM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Include source rev number in version information when available

Location:
libfdcore
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • libfdcore/CMakeLists.txt

    r1077 r1159  
    3535        server.c
    3636        tcp.c
     37        version.c
    3738        )
    3839
     
    5354# Include path
    5455INCLUDE_DIRECTORIES(${LFDCORE_INCLUDES})
     56INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
    5557
    5658# Build the executable
    5759ADD_LIBRARY(libfdcore SHARED ${FDCORE_SRC} ${FDCORE_GEN_SRC})
     60ADD_DEPENDENCIES(libfdcore version_information)
    5861
    5962# Avoid the liblib name, and set the version
  • libfdcore/core.c

    r1142 r1159  
    166166/* Public interfaces */
    167167
    168 /* Return a string describing the version of the library */
    169 const char *fd_core_version(void)
    170 {
    171         return _stringize(FD_PROJECT_VERSION_MAJOR) "." _stringize(FD_PROJECT_VERSION_MINOR) "." _stringize(FD_PROJECT_VERSION_REV);
    172 }
    173 
    174168/* Initialize the libfdcore internals. This also initializes libfdproto */
    175169int fd_core_initialize(void)
     
    189183        }
    190184       
    191         LOG_N("libfdproto initialized.");
    192        
    193185        /* Name this thread */
    194186        fd_log_threadname("Main");
     187       
     188        LOG_N("libfdproto '%s' initialized.", fd_libproto_version);
    195189       
    196190        /* Initialize gcrypt and gnutls */
     
    227221        core_state_set(CORE_LIBS_INIT);
    228222       
     223        LOG_N("libfdcore '%s' initialized.", fd_core_version);
     224       
     225       
    229226        /* Next thing is to parse the config, leave this for a different function */
    230227        return 0;
Note: See TracChangeset for help on using the changeset viewer.