perl.inc 848 B

123456789101112131415161718192021222324252627282930313233
  1. PROVIDES(system_perl)
  2. IF (PERL_SDK == "ubuntu-12")
  3. DECLARE_EXTERNAL_RESOURCE(SYSTEM_PERL_514 sbr:337748278)
  4. ELSEIF (PERL_SDK == "ubuntu-14")
  5. DECLARE_EXTERNAL_RESOURCE(SYSTEM_PERL_518 sbr:1655582861)
  6. ELSEIF (PERL_SDK == "ubuntu-16")
  7. DECLARE_EXTERNAL_RESOURCE(SYSTEM_PERL_522 sbr:323251590)
  8. ELSEIF (PERL_SDK == "ubuntu-18")
  9. DECLARE_EXTERNAL_RESOURCE(SYSTEM_PERL_526 sbr:616700320)
  10. ELSEIF (PERL_SDK == "ubuntu-20")
  11. DECLARE_EXTERNAL_RESOURCE(SYSTEM_PERL_530 sbr:2001114055)
  12. ELSE()
  13. MESSAGE(FATAL_ERROR "Building against system perl is not supported on ${PERL_SDK}")
  14. ENDIF()
  15. IF (PERL_INCLUDE)
  16. CFLAGS(GLOBAL $PERL_INCLUDE)
  17. ENDIF()
  18. CFLAGS(GLOBAL -I$PERL_ARCHLIB/CORE)
  19. IF (PERL_LIBS)
  20. LDFLAGS(-L${PERL_LIBS})
  21. ENDIF()
  22. IF (NOT OS_WINDOWS)
  23. LDFLAGS(-lperl)
  24. ELSE()
  25. LDFLAGS(perl.lib)
  26. ENDIF()
  27. CFLAGS(GLOBAL -DUSE_PERL)