Changeset 320:53f912ce0f4e in freeDiameter
- Timestamp:
- May 19, 2010, 3:09:27 PM (14 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
CMakeLists.txt
r313 r320 7 7 SET(FD_PROJECT_NAME freeDiameter) 8 8 SET(FD_PROJECT_BINARY freeDiameterd) 9 SET(FD_PROJECT_COPYRIGHT "Copyright (c) 2008-2009, WIDE Project (www.wide.ad.jp) and NICT (www.nict.go.jp)") 10 11 # Version of the source code 9 12 SET(FD_PROJECT_VERSION_MAJOR 1) 10 13 SET(FD_PROJECT_VERSION_MINOR 0) 11 14 SET(FD_PROJECT_VERSION_REV 0) 12 SET(FD_PROJECT_COPYRIGHT "Copyright (c) 2008-2009, WIDE Project (www.wide.ad.jp) and NICT (www.nict.go.jp)") 15 16 # Version of the API with the library 17 SET(FD_PROJECT_VERSION_API 1) 13 18 14 19 # Some subfolders may have tests -
INSTALL.Ubuntu
r319 r320 55 55 =========================================== 56 56 57 You can alternatively do:57 # You can alternatively do: 58 58 apt-get -y install mercurial cmake make gcc bison flex libsctp-dev libgnutls-dev libgcrypt-dev libpq-dev ssl-cert debhelper 59 59 cd /usr/src -
freeDiameter/CMakeLists.txt
r316 r320 43 43 fdd.tab.h 44 44 ) 45 46 # Save the list of files for the tests 47 SET(FD_COMMON_SRC ${FD_COMMON_SRC} PARENT_SCOPE) 48 SET(FD_COMMON_GEN_SRC ${FD_COMMON_GEN_SRC} PARENT_SCOPE) 49 45 50 46 51 # Require GNU TLS for building the daemon … … 55 60 INCLUDE_DIRECTORIES(${GCRYPT_INCLUDE_DIR}) 56 61 57 # Building the executable 62 63 # Build the executable 58 64 ADD_EXECUTABLE(freeDiameterd ${FD_COMMON_SRC} ${FD_COMMON_GEN_SRC} main.c) 65 66 # The version 67 SET_TARGET_PROPERTIES(freeDiameterd PROPERTIES 68 VERSION ${FD_PROJECT_VERSION_MAJOR}.${FD_PROJECT_VERSION_MINOR}.${FD_PROJECT_VERSION_REV}) 59 69 60 70 # Add this to workaround an apparent bug in FreeBSD cmake (already defined in Linux) … … 64 74 LINK_DIRECTORIES(${CURRENT_BINARY_DIR}/../libfreeDiameter) 65 75 TARGET_LINK_LIBRARIES(freeDiameterd libfreeDiameter ${FD_LIBS}) 66 67 # Save the list of files, if needed68 SET(FD_COMMON_SRC ${FD_COMMON_SRC} PARENT_SCOPE)69 SET(FD_COMMON_GEN_SRC ${FD_COMMON_GEN_SRC} PARENT_SCOPE)70 76 71 77 # The unary tests directory -
include/freeDiameter/freeDiameter-host.h.in
r304 r320 66 66 # define FD_PROJECT_VERSION_REV 0 67 67 #endif /*FD_PROJECT_VERSION_REV*/ 68 /* HG_VERSION */ 69 /* PACKAGE_HG_REVISION */ 68 #cmakedefine FD_PROJECT_VERSION_API @FD_PROJECT_VERSION_API@ 69 #ifndef FD_PROJECT_VERSION_API 70 # define FD_PROJECT_VERSION_API 0 71 #endif /*FD_PROJECT_VERSION_API*/ 70 72 #cmakedefine FD_PROJECT_COPYRIGHT "@FD_PROJECT_COPYRIGHT@" 71 73 -
include/freeDiameter/libfreeDiameter.h
r304 r320 39 39 * It provides the tools to manipulate Diameter messages and related data. 40 40 * This file should always be included as #include <freeDiameter/libfreeDiameter.h> 41 * 42 * If any change is made to this file, you must increment the FD_PROJECT_VERSION_API version. 41 43 * 42 44 * The file contains the following parts: -
libfreeDiameter/CMakeLists.txt
r316 r320 17 17 ) 18 18 19 # Save the list of files for testcases in the daemon's directory 20 SET(LFD_SRC ${LFD_SRC} PARENT_SCOPE) 21 19 22 # Build as a shared library 20 23 ADD_LIBRARY(libfreeDiameter SHARED ${LFD_SRC}) 21 24 22 # Avoid the liblib name 23 SET_TARGET_PROPERTIES(libfreeDiameter PROPERTIES OUTPUT_NAME "freeDiameter") 25 # Avoid the liblib name, and set the version 26 SET_TARGET_PROPERTIES(libfreeDiameter PROPERTIES 27 OUTPUT_NAME "freeDiameter" 28 SOVERSION ${FD_PROJECT_VERSION_API} 29 VERSION ${FD_PROJECT_VERSION_MAJOR}.${FD_PROJECT_VERSION_MINOR}.${FD_PROJECT_VERSION_REV}) 24 30 25 31 # The library itself needs other libraries 26 32 TARGET_LINK_LIBRARIES(libfreeDiameter ${LFD_LIBS}) 27 28 # Save the list of files for testcases in the daemon's directory29 SET(LFD_SRC ${LFD_SRC} PARENT_SCOPE)30 33 31 34
Note: See TracChangeset
for help on using the changeset viewer.