Sfoglia il codice sorgente

define macro STARPU_RELEASE_VERSION for the last number of the revision number x.y.z

Nathalie Furmento 12 anni fa
parent
commit
a73b6fbe56
4 ha cambiato i file con 9 aggiunte e 0 eliminazioni
  1. 1 0
      ChangeLog
  2. 3 0
      configure.ac
  3. 4 0
      doc/chapters/api.texi
  4. 1 0
      include/starpu_config.h.in

+ 1 - 0
ChangeLog

@@ -126,6 +126,7 @@ Small features:
   * New configure option --enable-mpi-progression-hook to enable the
     activity polling method for StarPU-MPI.
   * Permit to disable sequential consistency for a given task.
+  * New macro STARPU_RELEASE_VERSION
 
 Changes:
   * Fix the block filter functions.

+ 3 - 0
configure.ac

@@ -25,11 +25,14 @@ dnl Versioning.
 
 STARPU_MAJOR_VERSION="`echo $PACKAGE_VERSION | cut -d . -f 1`"
 STARPU_MINOR_VERSION="`echo $PACKAGE_VERSION | cut -d . -f 2`"
+STARPU_RELEASE_VERSION="`echo $PACKAGE_VERSION | cut -d . -f 3`"
 AC_SUBST([STARPU_MAJOR_VERSION])
 AC_SUBST([STARPU_MINOR_VERSION])
+AC_SUBST([STARPU_RELEASE_VERSION])
 AC_SUBST([STARPU_EFFECTIVE_VERSION])
 AC_DEFINE_UNQUOTED([STARPU_MAJOR_VERSION], [$STARPU_MAJOR_VERSION], [Major version number of StarPU.])
 AC_DEFINE_UNQUOTED([STARPU_MINOR_VERSION], [$STARPU_MINOR_VERSION], [Minor version number of StarPU.])
+AC_DEFINE_UNQUOTED([STARPU_RELEASE_VERSION], [$STARPU_RELEASE_VERSION], [Release version number of StarPU.])
 
 . "$srcdir/STARPU-VERSION"
 AC_SUBST([LIBSTARPU_INTERFACE_CURRENT])

+ 4 - 0
doc/chapters/api.texi

@@ -47,6 +47,10 @@ Define the major version of StarPU
 Define the minor version of StarPU
 @end defmac
 
+@defmac STARPU_RELEASE_VERSION
+Define the release version of StarPU
+@end defmac
+
 @node Initialization and Termination
 @section Initialization and Termination
 

+ 1 - 0
include/starpu_config.h.in

@@ -20,6 +20,7 @@
 
 #undef STARPU_MAJOR_VERSION
 #undef STARPU_MINOR_VERSION
+#undef STARPU_RELEASE_VERSION
 
 #undef STARPU_USE_CPU
 #undef STARPU_USE_CUDA