premake4.lua 484 B

123456789101112131415161718192021222324252627
  1. project "clsocket"
  2. kind "StaticLib"
  3. if os.is("Windows") then
  4. defines { "WIN32","_WINSOCK_DEPRECATED_NO_WARNINGS" }
  5. end
  6. if os.is("Linux") then
  7. defines {"HAS_SOCKLEN_T","_LINUX"}
  8. end
  9. if os.is("MacOSX") then
  10. defines {"HAS_SOCKLEN_T","_DARWIN"}
  11. end
  12. includedirs {
  13. ".","include","src"
  14. }
  15. if os.is("Linux") then
  16. buildoptions{"-fPIC"}
  17. end
  18. files {
  19. "src/SimpleSocket.cpp",
  20. "src/ActiveSocket.cpp",
  21. "src/PassiveSocket.cpp",
  22. "**.h"
  23. }