Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[submodule "external/boost"]
path = external/boost
url = https://github.com/bagobor/boost.git
[submodule "external/lua"]
path = external/lua
url = https://github.com/lua/lua
1 change: 1 addition & 0 deletions external/boost
Submodule boost added at f9e97d
1 change: 1 addition & 0 deletions external/lua
Submodule lua added at 570b78
85 changes: 85 additions & 0 deletions premake5.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
-- premake5.lua

local BUILD_DIR = (".build/" .. _ACTION)

workspace "lua-api-pp"
configurations { "Debug", "Release" }
location (BUILD_DIR)
platforms { "x32", "x64" }

startproject "luapp_test"

filter "configurations:Debug"
defines { "DEBUG" }
flags { "Symbols" }

filter "configurations:Release"
defines { "NDEBUG" }
optimize "On"

project "liblua"
kind "StaticLib"
location (BUILD_DIR .. "/lua")
language "C"
targetdir (BUILD_DIR .. "/lib/%{cfg.buildcfg}")

includedirs {"./external/lua/src/"}
--libdirs { "../lua/libs", "../zlib" }

files { "./external/lua/src/**.c", "./external/lua/src/**.h" }
removefiles {"**luac.c", "**lua.c"}

-- project "lua"
-- kind "ConsoleApp"
-- location (BUILD_DIR .. "/lua")
-- language "C"
-- targetdir (BUILD_DIR .. "/%{cfg.buildcfg}")
-- includedirs {"./external/lua/src/"}
-- files {"./external/lua/src/lua.c"}
-- libdirs { BUILD_DIR .. "/lib/%{cfg.buildcfg}" }
-- links { "liblua" }

-- project "luac"
-- kind "ConsoleApp"
-- location (BUILD_DIR .. "/lua")
-- language "C"
-- targetdir (BUILD_DIR .. "/%{cfg.buildcfg}")
-- includedirs {"./external/lua/src/"}
-- files {"./external/lua/src/luac.c"}
-- libdirs { BUILD_DIR .. "/lib/%{cfg.buildcfg}" }
-- links { "liblua" }

project "libluapp"
kind "StaticLib"
location (BUILD_DIR .. "/luapp")
language "C++"
targetdir (BUILD_DIR .. "/lib/%{cfg.buildcfg}")

includedirs {
"./external/lua/src/",
"./external/boost/",
"./"
}
files { "./luapp/**.*" }


project "luapp_test"
kind "ConsoleApp"
location (BUILD_DIR .. "/test")
language "C++"
targetdir (BUILD_DIR .. "/%{cfg.buildcfg}")

-- defines { "LUAPP_NONDISCARDABLE_CONCAT" }

includedirs {
"./external/lua/src/",
"./external/boost/",
"./"
}

libdirs { BUILD_DIR .. "/lib/%{cfg.buildcfg}" }

links { "liblua", "lialuapp"}

files { "./test/**.*" }