premake4.lua 514 B

12345678910111213141516171819202122232425262728293031323334
  1. project "serial"
  2. kind "StaticLib"
  3. includedirs {"include"}
  4. if os.is("Linux") then
  5. buildoptions{"-fPIC"}
  6. end
  7. if os.is("Windows") then
  8. files{
  9. "src/impl/win.cc",
  10. "src/impl/list_ports/list_ports_win.cc"
  11. }
  12. end
  13. if os.is("Linux") then
  14. files{
  15. "src/impl/unix.cc",
  16. "src/impl/list_ports/list_ports_linux.cc"
  17. }
  18. end
  19. if os.is("MacOSX") then
  20. files{
  21. "src/impl/unix.cc",
  22. "src/impl/list_ports/list_ports_osx.cc"
  23. }
  24. end
  25. files {
  26. "src/serial.cc",
  27. "**.h"
  28. }