2
0

version.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. This software is subject to the license described in the License.txt file
  3. included with this software distribution. You may not use this file except
  4. in compliance with this license.
  5. Copyright (c) Dynastream Innovations Inc. 2016
  6. All rights reserved.
  7. */
  8. #if !defined(__VERSION_H__)
  9. #define __VERSION_H__
  10. #include "build_version.h"
  11. #define STRINGIFY(x) #x
  12. #define TOSTRING(x) STRINGIFY(x)
  13. // Version Information
  14. #define SW_VER_PPP_WRAP "AOA"
  15. #define SW_VER_MAJNUM_WRAP VERSION_MAJOR
  16. #define SW_VER_MINNUM_WRAP VERSION_MINOR
  17. #define SW_VER_BUILD_MAJNUM_WRAP 0
  18. #if !defined(EXT_FUNCTIONALITY)
  19. #define SW_VER_BUILD_MINNUM_WRAP 0
  20. #define SW_VER_SUFFIX_WRAP ""
  21. #else //if EXT_FUNCTIONALITY is defined make sure the version looks different
  22. #define SW_VER_BUILD_MINNUM_WRAP 001 //Add two digits which are the ext lib version of the corresponding non-extended version
  23. #define SW_VER_SUFFIX_WRAP "_BAXEXT"
  24. #endif
  25. #define SW_VER_WRAP SW_VER_PPP_WRAP " " TOSTRING(SW_VER_MAJNUM_WRAP) "." TOSTRING(SW_VER_MINNUM_WRAP) "." TOSTRING(SW_VER_BUILD_MAJNUM_WRAP) "." TOSTRING(SW_VER_BUILD_MINNUM_WRAP) SW_VER_SUFFIX_WRAP
  26. #define SW_VER_NUMONLY_COMMA_WRAP SW_VER_MAJNUM_WRAP, SW_VER_MINNUM_WRAP, SW_VER_BUILD_MAJNUM_WRAP, SW_VER_BUILD_MINNUM_WRAP
  27. #endif // !defined(CONFIG_H)