moved version information to freerdp/version.h
authorBernhard Miklautz <bmiklautz@thinstuff.at>
Wed, 6 Nov 2013 16:29:33 +0000 (17:29 +0100)
committerBernhard Miklautz <bmiklautz@thinstuff.at>
Wed, 6 Nov 2013 16:29:33 +0000 (17:29 +0100)
fixed #1465

.gitignore
CMakeLists.txt
client/common/cmdline.c
config.h.in
include/CMakeLists.txt
include/freerdp/version.h.in [new file with mode: 0644]
libfreerdp/core/freerdp.c

index e56bbf2..cc98e1a 100755 (executable)
@@ -17,6 +17,7 @@ _CPack_Packages
 LICENSE.txt
 external/*
 !external/README
+include/freerdp/version.h
 
 *.a.objlist.cmake
 *.a.objlist
index a5052f1..05af433 100755 (executable)
@@ -462,6 +462,7 @@ set(FREERDP_EXTENSION_PATH "${CMAKE_INSTALL_FULL_LIBDIR}/freerdp/extensions")
 
 # Include directories
 include_directories(${CMAKE_CURRENT_BINARY_DIR})
+include_directories(${CMAKE_CURRENT_BINARY_DIR}/include)
 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
 
 # Configure files
index 19ea410..5d4365a 100644 (file)
@@ -33,6 +33,7 @@
 #include <freerdp/locale/keyboard.h>
 
 #include <freerdp/client/cmdline.h>
+#include <freerdp/version.h>
 
 #include "compatibility.h"
 
index d1eac49..839ec0d 100755 (executable)
@@ -1,15 +1,6 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
-#define FREERDP_VERSION_MAJOR ${FREERDP_VERSION_MAJOR}
-#define FREERDP_VERSION_MINOR ${FREERDP_VERSION_MINOR}
-#define FREERDP_VERSION_REVISION ${FREERDP_VERSION_REVISION}
-#define FREERDP_VERSION_SUFFIX "${FREERDP_VERSION_SUFFIX}"
-#define FREERDP_API_VERSION "${FREERDP_API_VERSION}"
-#define FREERDP_VERSION "${FREERDP_VERSION}"
-#define FREERDP_VERSION_FULL "${FREERDP_VERSION_FULL}"
-#define GIT_REVISION "${GIT_REVISION}"
-
 #define FREERDP_DATA_PATH "${FREERDP_DATA_PATH}"
 #define FREERDP_KEYMAP_PATH "${FREERDP_KEYMAP_PATH}"
 #define FREERDP_PLUGIN_PATH "${FREERDP_PLUGIN_PATH}"
index ec64d17..033a463 100644 (file)
@@ -17,6 +17,8 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/freerdp/version.h.in ${CMAKE_CURRENT_BINARY_DIR}/freerdp/version.h)
+
 file(GLOB FREERDP_HEADERS "freerdp/*.h")
 install(FILES ${FREERDP_HEADERS} DESTINATION include/freerdp COMPONENT headers)
 
diff --git a/include/freerdp/version.h.in b/include/freerdp/version.h.in
new file mode 100644 (file)
index 0000000..e16fd0c
--- /dev/null
@@ -0,0 +1,32 @@
+/**
+ * FreeRDP: A Remote Desktop Protocol Implementation
+ * Version includes
+ *
+ * Copyright 2013 Thinstuff Technologies GmbH
+ * Copyright 2013 Bernhard Miklautz <bmiklautz@thinstuff.at>
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+#ifndef _FREERDP_VERSION_H_
+#define _FREERDP_VERSION_H_
+
+#define FREERDP_VERSION_MAJOR ${FREERDP_VERSION_MAJOR}
+#define FREERDP_VERSION_MINOR ${FREERDP_VERSION_MINOR}
+#define FREERDP_VERSION_REVISION ${FREERDP_VERSION_REVISION}
+#define FREERDP_VERSION_SUFFIX "${FREERDP_VERSION_SUFFIX}"
+#define FREERDP_API_VERSION "${FREERDP_API_VERSION}"
+#define FREERDP_VERSION "${FREERDP_VERSION}"
+#define FREERDP_VERSION_FULL "${FREERDP_VERSION_FULL}"
+#define GIT_REVISION "${GIT_REVISION}"
+
+#endif // _FREERDP_VERSION_H_
index b0b8651..852743b 100644 (file)
@@ -39,6 +39,7 @@
 #include <freerdp/error.h>
 #include <freerdp/event.h>
 #include <freerdp/locale/keyboard.h>
+#include <freerdp/version.h>
 
 /* connectErrorCode is 'extern' in error.h. See comment there.*/