premake4.lua 472 B

123456789101112131415161718192021222324252627282930313233
  1. project "enet"
  2. kind "StaticLib"
  3. if os.is("Windows") then
  4. defines { "WIN32" }
  5. files{"win32.c"}
  6. end
  7. if os.is("Linux") then
  8. defines {"HAS_SOCKLEN_T"}
  9. files {"unix.c",}
  10. end
  11. if os.is("MacOSX") then
  12. files{"unix.c"}
  13. end
  14. includedirs {
  15. ".","include"
  16. }
  17. if os.is("Linux") then
  18. buildoptions{"-fPIC"}
  19. end
  20. files {
  21. "callbacks.c",
  22. "compress.c",
  23. "host.c",
  24. "list.c",
  25. "packet.c",
  26. "peer.c",
  27. "protocol.c",
  28. "**.h"
  29. }