move module version into src/Makefile

This commit is contained in:
Michael Davidsaver
2016-01-26 12:51:45 -05:00
parent d77ba8d622
commit 3edffa1d31
4 changed files with 25 additions and 6 deletions
+1
View File
@@ -4,6 +4,7 @@ SRC_DIRS += $(PVACCESS_SRC)/pva
INC += pvaConstants.h
INC += pvaVersion.h
INC += pvaVersionNum.h
INC += clientFactory.h
LIBSRCS += pvaVersion.cpp
+1 -6
View File
@@ -22,12 +22,7 @@
#include <shareLib.h>
// module version
// TODO to be generated, etc.
#define EPICS_PVA_MAJOR_VERSION 4
#define EPICS_PVA_MINOR_VERSION 2
#define EPICS_PVA_MAINTENANCE_VERSION 0
#define EPICS_PVA_DEVELOPMENT_FLAG 1
#include "pvaVersionNum.h"
namespace epics {
namespace pvAccess {
+7
View File
@@ -0,0 +1,7 @@
#ifndef VERSION_H_
# error include pvaVersion.h, not this header
#endif
#define EPICS_PVA_MAJOR_VERSION @EPICS_PVA_MAJOR_VERSION@
#define EPICS_PVA_MINOR_VERSION @EPICS_PVA_MINOR_VERSION@
#define EPICS_PVA_MAINTENANCE_VERSION @EPICS_PVA_MAINTENANCE_VERSION@
#define EPICS_PVA_DEVELOPMENT_FLAG @EPICS_PVA_DEVELOPMENT_FLAG@