You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.4KB

  1. local action = _ACTION or ""
  2. solution "nanosvg"
  3. location ( "build" )
  4. configurations { "Debug", "Release" }
  5. platforms {"native", "x64", "x32"}
  6. project "example1"
  7. kind "ConsoleApp"
  8. language "C++"
  9. files { "example/example1.c", "example/*.h", "src/*.h" }
  10. includedirs { "example", "src" }
  11. targetdir("build")
  12. configuration { "linux" }
  13. links { "X11","Xrandr", "rt", "GL", "GLU", "pthread", "glfw" }
  14. configuration { "windows" }
  15. links { "glu32","opengl32", "gdi32", "winmm", "user32" }
  16. configuration { "macosx" }
  17. links { "glfw3" }
  18. linkoptions { "-framework OpenGL", "-framework Cocoa", "-framework IOKit", "-framework CoreVideo" }
  19. configuration "Debug"
  20. defines { "DEBUG" }
  21. flags { "Symbols", "ExtraWarnings"}
  22. configuration "Release"
  23. defines { "NDEBUG" }
  24. flags { "Optimize", "ExtraWarnings"}
  25. project "example2"
  26. kind "ConsoleApp"
  27. language "C++"
  28. files { "example/example2.c", "example/*.h", "src/*.h" }
  29. includedirs { "example", "src" }
  30. targetdir("build")
  31. configuration { "linux" }
  32. links { "X11","Xrandr", "rt", "pthread" }
  33. configuration { "windows" }
  34. links { "winmm", "user32" }
  35. configuration { "macosx" }
  36. linkoptions { "-framework Cocoa", "-framework IOKit" }
  37. configuration "Debug"
  38. defines { "DEBUG" }
  39. flags { "Symbols", "ExtraWarnings"}
  40. configuration "Release"
  41. defines { "NDEBUG" }
  42. flags { "Optimize", "ExtraWarnings"}