premake4.lua 414 B

123456789101112131415161718192021222324252627282930
  1. project "lua-5.2.3"
  2. kind "StaticLib"
  3. --flags {}
  4. defines { "LUA_COMPAT_ALL"}
  5. if os.is("Linux") then
  6. defines {"LUA_USE_LINUX"}
  7. end
  8. if os.is("MacOSX") then
  9. defines {"LUA_USE_MACOSX"}
  10. end
  11. targetdir "../../../lib"
  12. includedirs {
  13. "src"
  14. }
  15. if os.is("Linux") then
  16. buildoptions{"-fPIC"}
  17. end
  18. files {
  19. "src/*.c",
  20. "src/*.h"
  21. }
  22. include "lua_compiler"
  23. include "lua_standalone"