ya.make 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. RESOURCES_LIBRARY()
  2. # Add new JDK to build/plugins/java.py (2 times)
  3. IF(USE_SYSTEM_JDK)
  4. MESSAGE(WARNING DEFAULT_JDK are disabled)
  5. ELSEIF(JDK_REAL_VERSION == "21")
  6. DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE_BY_JSON(JDK_DEFAULT jdk21/jdk.json)
  7. SET_RESOURCE_URI_FROM_JSON(WITH_JDK_URI jdk21/jdk.json)
  8. ELSEIF(JDK_REAL_VERSION == "20")
  9. DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE_BY_JSON(JDK_DEFAULT jdk20/jdk.json)
  10. SET_RESOURCE_URI_FROM_JSON(WITH_JDK_URI jdk20/jdk.json)
  11. ELSEIF(JDK_REAL_VERSION == "19")
  12. DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE_BY_JSON(JDK_DEFAULT jdk19/jdk.json)
  13. SET_RESOURCE_URI_FROM_JSON(WITH_JDK_URI jdk19/jdk.json)
  14. ELSEIF(JDK_REAL_VERSION == "18")
  15. DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE_BY_JSON(JDK_DEFAULT jdk18/jdk.json)
  16. SET_RESOURCE_URI_FROM_JSON(WITH_JDK_URI jdk18/jdk.json)
  17. ELSEIF(JDK_REAL_VERSION == "17")
  18. DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE_BY_JSON(JDK_DEFAULT jdk17/jdk.json)
  19. SET_RESOURCE_URI_FROM_JSON(WITH_JDK_URI jdk17/jdk.json)
  20. ELSEIF(JDK_REAL_VERSION == "15")
  21. DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE_BY_JSON(JDK_DEFAULT jdk15/jdk.json)
  22. SET_RESOURCE_URI_FROM_JSON(WITH_JDK_URI jdk15/jdk.json)
  23. ELSEIF(JDK_REAL_VERSION == "11")
  24. DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE_BY_JSON(JDK_DEFAULT jdk11/jdk.json)
  25. SET_RESOURCE_URI_FROM_JSON(WITH_JDK_URI jdk11/jdk.json)
  26. ELSEIF(JDK_REAL_VERSION == "8")
  27. DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE_BY_JSON(JDK_DEFAULT jdk8/jdk.json)
  28. SET_RESOURCE_URI_FROM_JSON(WITH_JDK_URI jdk8/jdk.json)
  29. ELSE()
  30. MESSAGE(FATAL_ERROR Unsupported JDK version ${JDK_REAL_VERSION})
  31. ENDIF()
  32. IF (WITH_JDK_URI)
  33. DECLARE_EXTERNAL_RESOURCE(WITH_JDK ${WITH_JDK_URI})
  34. ENDIF()
  35. END()
  36. RECURSE(
  37. jdk8
  38. jdk11
  39. jdk15
  40. jdk17
  41. jdk18
  42. jdk19
  43. jdk20
  44. jdk21
  45. testing
  46. )
  47. IF(YA_IDE_IDEA)
  48. RECURSE(base_jdk_test)
  49. ENDIF()