ya.make 897 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. LIBRARY()
  2. VERSION(1.13)
  3. LICENSE(Service-Dll-Harness)
  4. WITHOUT_LICENSE_TEXTS()
  5. NO_RUNTIME()
  6. IF(OS_WINDOWS)
  7. OPENSOURCE_EXPORT_REPLACEMENT(
  8. CMAKE Iconv
  9. CMAKE_TARGET Iconv::Iconv
  10. CONAN libiconv/1.15
  11. CONAN_OPTIONS libiconv:shared=True
  12. )
  13. ELSE()
  14. # Opensource code is compatible with libc provided iconv API on major linux distributions and macos.
  15. # * We prefere to avoid vendoring LGPL libraries in our opensouce project
  16. # * Major distributions do not provide GNU libiconv as separate package
  17. # * Shared lib dependencies from conan overcomplicate final artefacts distribution
  18. DISABLE(OPENSOURCE_EXPORT)
  19. ENDIF()
  20. IF (NOT EXPORT_CMAKE)
  21. IF (USE_DYNAMIC_ICONV)
  22. PEERDIR(
  23. contrib/libs/libiconv/dynamic
  24. )
  25. ELSE()
  26. PEERDIR(
  27. contrib/libs/libiconv/static
  28. )
  29. ENDIF()
  30. ENDIF()
  31. END()
  32. RECURSE(
  33. dynamic
  34. static
  35. )