Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.7KB

  1. #!/usr/bin/env python3
  2. # SPDX-FileCopyrightText: 2011-2025 Filipe Coelho <falktx@falktx.com>
  3. # SPDX-License-Identifier: GPL-2.0-or-later
  4. # ---------------------------------------------------------------------------------------------------------------------
  5. # Imports (Global)
  6. from platform import architecture
  7. from sys import platform, maxsize
  8. # ---------------------------------------------------------------------------------------------------------------------
  9. # Set Version
  10. CARLA_VERSION_HEX = 0x020591
  11. CARLA_VERSION_STRING = "2.6.0-alpha1"
  12. CARLA_VERSION_STRMIN = "2.6"
  13. # ---------------------------------------------------------------------------------------------------------------------
  14. # Set Platform
  15. CARLA_OS_BSD = False
  16. CARLA_OS_GNU_HURD = False
  17. CARLA_OS_HAIKU = False
  18. CARLA_OS_LINUX = False
  19. CARLA_OS_MAC = False
  20. CARLA_OS_UNIX = False
  21. CARLA_OS_WASM = False
  22. CARLA_OS_WIN = False
  23. CARLA_OS_WIN32 = False
  24. CARLA_OS_WIN64 = False
  25. if platform == "darwin":
  26. CARLA_OS_MAC = True
  27. elif platform == "haiku":
  28. CARLA_OS_HAIKU = True
  29. elif platform == "linux":
  30. CARLA_OS_LINUX = True
  31. elif platform == "win32":
  32. CARLA_OS_WIN32 = True
  33. elif platform == "win64":
  34. CARLA_OS_WIN64 = True
  35. if CARLA_OS_WIN32 and CARLA_OS_WIN64:
  36. CARLA_OS_WIN = True
  37. elif CARLA_OS_BSD or CARLA_OS_GNU_HURD or CARLA_OS_LINUX or CARLA_OS_MAC:
  38. CARLA_OS_UNIX = True
  39. # ---------------------------------------------------------------------------------------------------------------------
  40. # 64bit check
  41. CARLA_OS_64BIT = bool(architecture()[0] == "64bit" and maxsize > 2**32)
  42. # ---------------------------------------------------------------------------------------------------------------------