Set the initial library versions to 0.1.
authorZhigang Gong <zhigang.gong@linux.intel.com>
Tue, 19 Mar 2013 11:39:13 +0000 (19:39 +0800)
committerZhigang Gong <zhigang.gong@linux.intel.com>
Wed, 10 Apr 2013 06:52:33 +0000 (14:52 +0800)
We have two libraries here, one is the gen backend and the other
is libcl runtime library. We set both initial versions to 0.1.

Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Reviewed-by: Lu Guanqun <guanqun.lu@intel.com>
CMakeLists.txt
backend/CMakeLists.txt
backend/src/GBEConfig.h.in [new file with mode: 0644]
src/OCLConfig.h.in [new file with mode: 0644]

index f580ac0..7f37be9 100644 (file)
@@ -8,6 +8,13 @@
 
 CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0)
 PROJECT(OCL)
+set (LIBCL_VERSION_MAJOR 0)
+set (LIBCL_VERSION_MINOR 1)
+
+configure_file (
+  "src/OCLConfig.h.in"
+  "src/OCLConfig.h"
+)
 
 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
 
@@ -49,7 +56,7 @@ ELSE (USE_FULSIM)
 ENDIF (USE_FULSIM)
 
 SET(CMAKE_CXX_FLAGS "-Wall -Wno-invalid-offsetof -mfpmath=sse --no-rtti -Wcast-align -std=c++0x -msse2 -msse3 -mssse3 -msse4.1 ")
-SET(CMAKE_C_FLAGS "-Wall -mfpmath=sse -msse2 -Wcast-align -msse2 -msse3 -mssse3 -msse4.1 ")
+SET(CMAKE_C_FLAGS "-Wall -mfpmath=sse -msse2 -Wcast-align -msse2 -msse3 -mssse3 -msse4.1")
 
 # Front end stuff we need
 #INCLUDE(CMake/FindLLVM.cmake)
index 9c83fbb..89f3c4a 100644 (file)
@@ -1,4 +1,11 @@
 project (GBE)
+set (LIBGBE_VERSION_MAJOR 0)
+set (LIBGBE_VERSION_MINOR 1)
+
+configure_file (
+  "src/GBEConfig.h.in"
+  "src/GBEConfig.h"
+)
 
 cmake_minimum_required (VERSION 2.6.0)
 
diff --git a/backend/src/GBEConfig.h.in b/backend/src/GBEConfig.h.in
new file mode 100644 (file)
index 0000000..369b184
--- /dev/null
@@ -0,0 +1,3 @@
+// the configured options and settings for LIBGBE
+#define LIBGBE_VERSION_MAJOR @LIBGBE_VERSION_MAJOR@
+#define LIBGBE_VERSION_MINOR @LIBGBE_VERSION_MINOR@
diff --git a/src/OCLConfig.h.in b/src/OCLConfig.h.in
new file mode 100644 (file)
index 0000000..cfd0378
--- /dev/null
@@ -0,0 +1,3 @@
+// the configured options and settings for LIBCL
+#define LIBCL_VERSION_MAJOR @LIBCL_VERSION_MAJOR@
+#define LIBCL_VERSION_MINOR @LIBCL_VERSION_MINOR@