version.h.in 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * Copyright (C) by Klaas Freitag <freitag@owncloud.com>
  3. *
  4. * This library is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU Lesser General Public
  6. * License as published by the Free Software Foundation; either
  7. * version 2.1 of the License, or (at your option) any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. * Lesser General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Lesser General Public
  15. * License along with this library; if not, write to the Free Software
  16. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  17. */
  18. #ifndef VERSION_H
  19. #define VERSION_H
  20. #cmakedefine GIT_SHA1 "@GIT_SHA1@"
  21. #define MIRALL_STRINGIFY(s) MIRALL_TOSTRING(s)
  22. #define MIRALL_TOSTRING(s) #s
  23. /* MIRALL version */
  24. #define MIRALL_VERSION_MAJOR @MIRALL_VERSION_MAJOR@
  25. #define MIRALL_VERSION_MINOR @MIRALL_VERSION_MINOR@
  26. #define MIRALL_VERSION_PATCH @MIRALL_VERSION_PATCH@
  27. #define MIRALL_VERSION_BUILD @MIRALL_VERSION_BUILD@
  28. #define MIRALL_VERSION_SUFFIX @MIRALL_VERSION_SUFFIX@
  29. #define MIRALL_VERSION @MIRALL_VERSION@
  30. #define MIRALL_VERSION_FULL @MIRALL_VERSION_FULL@
  31. #define MIRALL_VERSION_STRING "@MIRALL_VERSION_STRING@"
  32. constexpr int NEXTCLOUD_SERVER_VERSION_MIN_SUPPORTED_MAJOR = @NEXTCLOUD_SERVER_VERSION_MIN_SUPPORTED_MAJOR@;
  33. constexpr int NEXTCLOUD_SERVER_VERSION_MIN_SUPPORTED_MINOR = @NEXTCLOUD_SERVER_VERSION_MIN_SUPPORTED_MINOR@;
  34. constexpr int NEXTCLOUD_SERVER_VERSION_MIN_SUPPORTED_PATCH = @NEXTCLOUD_SERVER_VERSION_MIN_SUPPORTED_PATCH@;
  35. #endif // VERSION_H