premake4.lua 433 B

12345678910111213141516171819202122232425262728293031
  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. targetdir "../../../lib"
  15. includedirs {
  16. ".","include"
  17. }
  18. files {
  19. "callbacks.c",
  20. "compress.c",
  21. "host.c",
  22. "list.c",
  23. "packet.c",
  24. "peer.c",
  25. "protocol.c",
  26. "**.h"
  27. }