diff options
author | Chad Versace <chad.versace@linux.intel.com> | 2012-08-19 21:50:30 -0700 |
---|---|---|
committer | Chad Versace <chad.versace@linux.intel.com> | 2012-08-23 10:08:40 -0700 |
commit | 56802167155a1aa552f876379267147f10a105c4 (patch) | |
tree | be1a1752f5e9268939003247575afb7edb163ea9 /include | |
parent | c413957caeb78a23c674ba4e6dfbe750808d1c4c (diff) |
include: Add header waffle_version.h
This header defines WAFFLE_{MAJOR,MINOR,PATCH}_VERSION in order to allow
users to determine the version at configuration and compile time. This
also allows CMake to detect the Waffle's version on systems that don't
have pkgconfig, namely Windows.
Note: This prepares for the 1.0 release.
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/CMakeLists.txt | 8 | ||||
-rw-r--r-- | include/waffle/.gitignore | 1 | ||||
-rw-r--r-- | include/waffle/waffle.h | 2 | ||||
-rw-r--r-- | include/waffle/waffle_version.h.in | 5 |
4 files changed, 16 insertions, 0 deletions
diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt index fb65097..4a402e6 100644 --- a/include/CMakeLists.txt +++ b/include/CMakeLists.txt @@ -1,3 +1,10 @@ +configure_file(waffle/waffle_version.h.in + ${CMAKE_CURRENT_SOURCE_DIR}/waffle/waffle_version.h + @ONLY) + + #install(FILES waffle/waffle_version.h + # DESTINATION ${waffle_install_includedir}/${waffle_libname}) + install(FILES waffle/waffle.h waffle/waffle_attrib_list.h waffle/waffle_config.h @@ -10,6 +17,7 @@ install(FILES waffle/waffle.h waffle/waffle_glx.h waffle/waffle_init.h waffle/waffle_portability.h + waffle/waffle_version.h waffle/waffle_wayland.h waffle/waffle_window.h waffle/waffle_x11_egl.h diff --git a/include/waffle/.gitignore b/include/waffle/.gitignore new file mode 100644 index 0000000..d8b9da8 --- /dev/null +++ b/include/waffle/.gitignore @@ -0,0 +1 @@ +waffle_version.h diff --git a/include/waffle/waffle.h b/include/waffle/waffle.h index 0b85c50..6158af3 100644 --- a/include/waffle/waffle.h +++ b/include/waffle/waffle.h @@ -33,6 +33,8 @@ #pragma once +#include "waffle_version.h" + #include "waffle_attrib_list.h" #include "waffle_config.h" #include "waffle_context.h" diff --git a/include/waffle/waffle_version.h.in b/include/waffle/waffle_version.h.in new file mode 100644 index 0000000..a048e13 --- /dev/null +++ b/include/waffle/waffle_version.h.in @@ -0,0 +1,5 @@ +#pragma once + +#define WAFFLE_MAJOR_VERSION @waffle_major_version@ +#define WAFFLE_MINOR_VERSION @waffle_minor_version@ +#define WAFFLE_PATCH_VERSION @waffle_patch_version@ |