version.h.in 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * SRT - Secure, Reliable, Transport
  3. * Copyright (c) 2018 Haivision Systems Inc.
  4. *
  5. * This Source Code Form is subject to the terms of the Mozilla Public
  6. * License, v. 2.0. If a copy of the MPL was not distributed with this
  7. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  8. *
  9. */
  10. /*****************************************************************************
  11. written by
  12. Haivision Systems Inc.
  13. *****************************************************************************/
  14. #ifndef INC_SRT_VERSION_H
  15. #define INC_SRT_VERSION_H
  16. // To construct version value
  17. #define SRT_MAKE_VERSION(major, minor, patch) \
  18. ((patch) + ((minor)*0x100) + ((major)*0x10000))
  19. #define SRT_MAKE_VERSION_VALUE SRT_MAKE_VERSION
  20. #define SRT_VERSION_MAJOR @SRT_VERSION_MAJOR@
  21. #define SRT_VERSION_MINOR @SRT_VERSION_MINOR@
  22. #define SRT_VERSION_PATCH @SRT_VERSION_PATCH@
  23. #cmakedefine SRT_VERSION_BUILD @CI_BUILD_NUMBER_STRING@
  24. #define SRT_VERSION_STRING "@SRT_VERSION@"
  25. #define SRT_VERSION_VALUE \
  26. SRT_MAKE_VERSION_VALUE( \
  27. SRT_VERSION_MAJOR, SRT_VERSION_MINOR, SRT_VERSION_PATCH )
  28. #endif // INC_SRT_VERSION_H