From 02513b77c119cf7453d783b07a0a309d40830049 Mon Sep 17 00:00:00 2001 From: Recep Aslantas Date: Sun, 21 May 2017 01:31:25 +0300 Subject: [PATCH] add version info --- README.md | 2 +- configure.ac | 2 +- include/cglm-version.h | 15 +++++++++++++++ makefile.am | 3 ++- 4 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 include/cglm-version.h diff --git a/README.md b/README.md index 0863821dd..0c70406f2 100644 --- a/README.md +++ b/README.md @@ -155,7 +155,7 @@ Function usage and parameters are documented inside related headers. **TODO:** - [ ] Unit tests - [ ] Unit tests for comparing cglm with glm results -- [ ] Add version info +- [x] Add version info - [ ] Unaligned operations (e.g. `glm_umat4_mul`) - [ ] Extra documentation - [ ] ARM Neon Arch diff --git a/configure.ac b/configure.ac index a2287a541..ae3943db4 100644 --- a/configure.ac +++ b/configure.ac @@ -7,7 +7,7 @@ #***************************************************************************** AC_PREREQ([2.69]) -AC_INIT([cglm], [0.1.0], [info@recp.me]) +AC_INIT([cglm], [0.2.0], [info@recp.me]) AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects]) AC_CONFIG_MACRO_DIR([m4]) diff --git a/include/cglm-version.h b/include/cglm-version.h new file mode 100644 index 000000000..bd0263c91 --- /dev/null +++ b/include/cglm-version.h @@ -0,0 +1,15 @@ +/* + * Copyright (c), Recep Aslantas. + * + * MIT License (MIT), http://opensource.org/licenses/MIT + * Full license can be found in the LICENSE file + */ + +#ifndef cglm_version_h +#define cglm_version_h + +#define CGLM_VERSION_MAJOR 0 +#define CGLM_VERSION_MINOR 2 +#define CGLM_VERSION_PATCH 0 + +#endif /* cglm_version_h */ diff --git a/makefile.am b/makefile.am index f81f913c8..595ff15fc 100644 --- a/makefile.am +++ b/makefile.am @@ -32,7 +32,8 @@ TESTS = $(check_PROGRAMS) test_test_mat4_LDFLAGS = $(checkLDFLAGS) test_test_mat4_CFLAGS = $(checkCFLAGS) -nobase_include_HEADERS = include/cglm.h \ +nobase_include_HEADERS = include/cglm-version.h \ + include/cglm.h \ include/cglm-call.h \ include/cglm-cam.h \ include/cglm-io.h \