premake5.lua 794 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. project "luasocket"
  2. language "C"
  3. kind "SharedLib"
  4. warnings "extra"
  5. includedirs
  6. {
  7. "../../contrib/lua/src",
  8. "../../contrib/luashim"
  9. }
  10. links { 'luashim-lib' }
  11. files
  12. {
  13. "src/*.c",
  14. "src/*.h",
  15. "src/*.lua",
  16. "*.c"
  17. }
  18. filter "system:windows"
  19. removefiles
  20. {
  21. "src/serial.c",
  22. "src/unixdgram.*",
  23. "src/unixstream.*",
  24. "src/unix.*",
  25. "src/usocket.*",
  26. }
  27. links { 'ws2_32' }
  28. characterset "MBCS"
  29. defines { "LUASOCKET_API=__declspec(dllexport)" }
  30. filter "system:not windows"
  31. removefiles
  32. {
  33. "src/wsocket.*",
  34. }
  35. pic "on"
  36. defines { "LUASOCKET_API=__attribute__((visibility(\"default\")))" }
  37. filter "configurations:Release"
  38. targetdir "../../bin/release"
  39. filter "configurations:Debug"
  40. targetdir "../../bin/debug"