ya.make 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. RESOURCES_LIBRARY()
  2. NO_PLATFORM_RESOURCES()
  3. SET(NEED_PLATFORM_PEERDIRS no)
  4. IF (OS_SDK == "local")
  5. # Implementation is in $S/build/ymake.core.conf
  6. ELSEIF (ARCH_X86_64)
  7. IF (OS_SDK == "ubuntu-10")
  8. DECLARE_EXTERNAL_RESOURCE(OS_SDK_ROOT sbr:244388930)
  9. ELSEIF (OS_SDK == "ubuntu-12")
  10. DECLARE_EXTERNAL_RESOURCE(OS_SDK_ROOT sbr:244387436)
  11. ELSEIF (OS_SDK == "ubuntu-14")
  12. DECLARE_EXTERNAL_RESOURCE(OS_SDK_ROOT sbr:1966560555)
  13. ELSEIF (OS_SDK == "ubuntu-16")
  14. DECLARE_EXTERNAL_RESOURCE(OS_SDK_ROOT sbr:243881345)
  15. ELSEIF (OS_SDK == "ubuntu-18")
  16. DECLARE_EXTERNAL_RESOURCE(OS_SDK_ROOT sbr:617908641)
  17. ELSEIF (OS_SDK == "ubuntu-20")
  18. DECLARE_EXTERNAL_RESOURCE(OS_SDK_ROOT sbr:2635714620)
  19. ELSEIF (OS_SDK == "ubuntu-22")
  20. DECLARE_EXTERNAL_RESOURCE(OS_SDK_ROOT sbr:6495397322)
  21. ELSE()
  22. MESSAGE(FATAL_ERROR "There is no ${OS_SDK} SDK for x86-64")
  23. ENDIF()
  24. ELSEIF (ARCH_AARCH64)
  25. IF (OS_SDK == "ubuntu-16")
  26. DECLARE_EXTERNAL_RESOURCE(OS_SDK_ROOT sbr:309054781)
  27. ELSEIF (OS_SDK == "ubuntu-20")
  28. DECLARE_EXTERNAL_RESOURCE(OS_SDK_ROOT sbr:6601145959)
  29. ELSEIF (OS_SDK == "ubuntu-22")
  30. DECLARE_EXTERNAL_RESOURCE(OS_SDK_ROOT sbr:7693283407)
  31. ELSE()
  32. MESSAGE(FATAL_ERROR "There is no ${OS_SDK} SDK for AArch64/ARMv8 64 bit")
  33. ENDIF()
  34. ELSEIF (ARCH_PPC64LE)
  35. IF (OS_SDK == "ubuntu-14")
  36. IF (HOST_ARCH_PPC64LE)
  37. DECLARE_EXTERNAL_RESOURCE(OS_SDK_ROOT sbr:1570528338)
  38. ELSE()
  39. DECLARE_EXTERNAL_RESOURCE(OS_SDK_ROOT sbr:233217651)
  40. ENDIF()
  41. ELSE()
  42. MESSAGE(FATAL_ERROR "There is no ${OS_SDK} SDK for PPC64LE")
  43. ENDIF()
  44. ELSEIF (ARCH_ARM7)
  45. IF (ARM7_FLOAT_ABI == "hard" AND OS_SDK == "ubuntu-16")
  46. DECLARE_EXTERNAL_RESOURCE(OS_SDK_ROOT sbr:1323200692)
  47. ELSEIF (ARM7_FLOAT_ABI == "softfp" AND OS_SDK == "ubuntu-18")
  48. DECLARE_EXTERNAL_RESOURCE(OS_SDK_ROOT sbr:2402287545)
  49. ELSE()
  50. MESSAGE(FATAL_ERROR "There is no ${OS_SDK} SDK for ARMv7 32 bit (float ABI: ${ARM7_FLOAT_ABI})")
  51. ENDIF()
  52. ELSE()
  53. MESSAGE(FATAL_ERROR "Unexpected OS_SDK value: ${OS_SDK}")
  54. ENDIF()
  55. END()