Comments (2)
Something along the lines of:
From 60cdff8a6f5c4e25a374e5f366d6e9b4efd869b3 Mon Sep 17 00:00:00 2001
From: Piotr Stanczyk <pstanczyk@ilm.com>
Date: Wed, 15 Aug 2012 15:07:14 -0700
Subject: [PATCH] Adding major, minor, patch version information to the
*Config.h files.
---
IlmBase/config/IlmBaseConfig.h.in | 13 ++++++++++++-
IlmBase/configure.ac | 14 ++++++++++++--
OpenEXR/config/OpenEXRConfig.h.in | 10 ++++++++++
OpenEXR/configure.ac | 13 +++++++++++--
4 files changed, 45 insertions(+), 5 deletions(-)
diff --git a/IlmBase/config/IlmBaseConfig.h.in b/IlmBase/config/IlmBaseConfig.h.in
index ae3d4c2..ac6f336 100644
--- a/IlmBase/config/IlmBaseConfig.h.in
+++ b/IlmBase/config/IlmBaseConfig.h.in
@@ -47,7 +47,18 @@
//
-// Version string for runtime access
+// Version information
//
#undef ILMBASE_VERSION_STRING
#undef ILMBASE_PACKAGE_STRING
+
+#undef ILMBASE_VERSION_MAJOR
+#undef ILMBASE_VERSION_MINOR
+#undef ILMBASE_VERSION_PATCH
+
+// Version as a single hex number, e.g. 0x01000300 == 1.0.3
+#define ILMBASE_VERSION_HEX ((ILMBASE_VERSION_MAJOR << 24) | \
+ (ILMBASE_VERSION_MINOR << 16) | \
+ (ILMBASE_VERSION_PATCH << 8))
+
+
diff --git a/IlmBase/configure.ac b/IlmBase/configure.ac
index 1c10161..1ff39f1 100644
--- a/IlmBase/configure.ac
+++ b/IlmBase/configure.ac
@@ -1,7 +1,13 @@
dnl Process this file with autoconf to produce a configure script.
AC_INIT(IlmBase, 2.0.0)
-AC_SUBST(ILMBASE_VERSION, 2.0.0)
-AC_SUBST(ILMBASE_VERSION_SAFE, 2_0_0)
+
+AC_SUBST(ILMBASE_VERSION_MAJOR, 2)
+AC_SUBST(ILMBASE_VERSION_MINOR, 0)
+AC_SUBST(ILMBASE_VERSION_PATCH, 0)
+
+AC_SUBST(ILMBASE_VERSION, ${ILMBASE_VERSION_MAJOR}.${ILMBASE_VERSION_MINOR}.${ILMBASE_VERSION_PATCH})
+AC_SUBST(ILMBASE_VERSION_SAFE, ${ILMBASE_VERSION_MAJOR}_${ILMBASE_VERSION_MINOR}_${ILMBASE_VERSION_PATCH})
+
AC_CANONICAL_HOST
AC_CONFIG_SRCDIR(ImathTest/main.cpp)
AM_CONFIG_HEADER(config/IlmBaseConfig.h)
@@ -111,6 +117,10 @@ fi
dnl Define the version string
AC_DEFINE_UNQUOTED(ILMBASE_VERSION_STRING, "${VERSION}")
AC_DEFINE_UNQUOTED(ILMBASE_PACKAGE_STRING, "${PACKAGE_STRING}")
+AC_DEFINE_UNQUOTED(ILMBASE_VERSION_MAJOR, ${ILMBASE_VERSION_MAJOR})
+AC_DEFINE_UNQUOTED(ILMBASE_VERSION_MINOR, ${ILMBASE_VERSION_MINOR})
+AC_DEFINE_UNQUOTED(ILMBASE_VERSION_PATCH, ${ILMBASE_VERSION_PATCH})
+
AC_MSG_CHECKING(for gcc optimization flags)
diff --git a/OpenEXR/config/OpenEXRConfig.h.in b/OpenEXR/config/OpenEXRConfig.h.in
index 6f1675e..199f4a9 100644
--- a/OpenEXR/config/OpenEXRConfig.h.in
+++ b/OpenEXR/config/OpenEXRConfig.h.in
@@ -48,3 +48,13 @@
#undef OPENEXR_VERSION_STRING
#undef OPENEXR_PACKAGE_STRING
+
+#undef OPENEXR_VERSION_MAJOR
+#undef OPENEXR_VERSION_MINOR
+#undef OPENEXR_VERSION_PATCH
+
+// Version as a single hex number, e.g. 0x01000300 == 1.0.3
+#define OPENEXR_VERSION_HEX ((OPENEXR_VERSION_MAJOR << 24) | \
+ (OPENEXR_VERSION_MINOR << 16) | \
+ (OPENEXR_VERSION_PATCH << 8))
+
diff --git a/OpenEXR/configure.ac b/OpenEXR/configure.ac
index a3f706e..858f186 100644
--- a/OpenEXR/configure.ac
+++ b/OpenEXR/configure.ac
@@ -1,8 +1,14 @@
dnl Process this file with autoconf to produce a configure script.
AC_INIT(OpenEXR, 2.0.0)
-AC_SUBST(OPENEXR_VERSION, 2.0.0)
-AC_SUBST(OPENEXR_VERSION_SAFE, 2_0_0)
+
+AC_SUBST(OPENEXR_VERSION_MAJOR, 2)
+AC_SUBST(OPENEXR_VERSION_MINOR, 0)
+AC_SUBST(OPENEXR_VERSION_PATCH, 0)
+
+AC_SUBST(OPENEXR_VERSION, ${OPENEXR_VERSION_MAJOR}.${OPENEXR_VERSION_MINOR}.${OPENEXR_VERSION_PATCH})
+AC_SUBST(OPENEXR_VERSION_SAFE, ${OPENEXR_VERSION_MAJOR}_${OPENEXR_VERSION_MINOR}_${OPENEXR_VERSION_PATCH})
+
AC_CANONICAL_HOST
AC_CONFIG_SRCDIR(IlmImfTest/main.cpp)
AM_CONFIG_HEADER(config/OpenEXRConfig.h)
@@ -58,6 +64,9 @@ AM_PATH_PKGCONFIG(
dnl Define the version string
AC_DEFINE_UNQUOTED(OPENEXR_VERSION_STRING, "${VERSION}")
AC_DEFINE_UNQUOTED(OPENEXR_PACKAGE_STRING, "${PACKAGE_STRING}")
+AC_DEFINE_UNQUOTED(OPENEXR_VERSION_MAJOR, ${OPENEXR_VERSION_MAJOR})
+AC_DEFINE_UNQUOTED(OPENEXR_VERSION_MINOR, ${OPENEXR_VERSION_MINOR})
+AC_DEFINE_UNQUOTED(OPENEXR_VERSION_PATCH, ${OPENEXR_VERSION_PATCH})
dnl --enable-threading
--
1.7.6.4
from openexr.
Completed with patch: 60cdff8
from openexr.
Related Issues (20)
- Linker error while installing `opencv`: Undefined symbols for architecture arm64 HOT 3
- Regression: Build fails with custom namespaces HOT 1
- Regression in v3.2.1: no longer finds -ldeflate on FreeBSD, breaks build HOT 5
- macOS: OpenEXR dylib names: changed with each release, breaking dependent binaries HOT 13
- Website fails to build on Windows HOT 5
- Imath includes shall be guarded HOT 1
- Use CMake's find_package to include libdeflate HOT 7
- Not building on Archlinux HOT 2
- Unknown type name 'uintptr_t' HOT 7
- SIGSEGV on file open error HOT 1
- NetBSD: bswap header use incorrect
- OpenEXR.cpp:1:10: fatal error: Python.h: No such file or directory in Ubuntu 18.04 and Blender Bundled Python 3.5m
- g++ -pthread -shared -L/opt/lib/bz2/lib -L/opt/lib/lzma/lib -L/opt/lib/ssl/lib -L/opt/lib/zlib/lib -L/opt/lib/libc6/lib -L/opt/lib/ncurses/lib -L/opt/lib/gpm/lib -L/opt/lib/sqlite/lib -L/opt/lib/readline/lib -Wl,--version-script=python.map build/temp.linux-x86_64-3.5/OpenEXR.o -L/usr/lib -L/usr/local/lib -L/opt/local/lib -L/opt/homebrew/opt/openexr/lib -L/opt/homebrew/opt/imath/lib -lIex -lHalf -lImath -lIlmImf -lz -o build/lib.linux-x86_64-3.5/OpenEXR.cpython-35m-x86_64-linux-gnu.so /usr/bin/ld: cannot open linker script file python.map: No such file or directory HOT 2
- /workspace/ubuntu18.04/openexr/src/wrappers/python/OpenEXR.cpp:7:10: fatal error: Python.h: No such file or directory #include <Python.h> HOT 2
- MacPorts deprecation needs to be removed HOT 2
- OpenEXR - Python IntelliSense HOT 5
- Imath - Remove Enumerated Class and replace with Enum Class HOT 1
- Unable to build openexr with python bindings via cmake HOT 4
- Delete empty classic board HOT 1
- ImportError: /home/mona/Downloads/blender-3.5.1-linux-x64/3.5/python/lib/python3.10/site-packages/OpenEXR.cpython-310-x86_64-linux-gnu.so: undefined symbol: _ZTIN13IlmThread_3_14TaskE
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openexr.