Split external libs into their own vs projects.

This commit is contained in:
Jordan Cristiano 2018-02-12 21:08:01 -05:00
parent ef09958aa5
commit 6d8ed3b5c6
4 changed files with 76 additions and 4 deletions

20
premake/json_checker.lua Normal file
View File

@ -0,0 +1,20 @@
local base_dir = (solution().basedir .. "/external/json_checker/")
group "external"
project "json_checker"
kind "StaticLib"
language "C++"
location (_ACTION .. "/" .. project().name)
includedirs
{
base_dir .. "include/"
}
files
{
base_dir .. "*.h",
base_dir .. "*.cpp"
}
project "*"
group ""

View File

@ -28,10 +28,7 @@ solution "demboyz"
files
{
"../demboyz/**.h",
"../demboyz/**.cpp",
"../external/**.h",
"../external/**.cpp",
"../external/**.cc"
"../demboyz/**.cpp"
}
includedirs
{
@ -42,4 +39,13 @@ solution "demboyz"
"../external/snappy-1.1.3/include",
"../demboyz"
}
links
{
"json_checker",
"sourcesdk"
}
project "*"
dofile "json_checker.lua"
dofile "snappy.lua"
dofile "sourcesdk.lua"

20
premake/snappy.lua Normal file
View File

@ -0,0 +1,20 @@
local base_dir = (solution().basedir .. "/external/snappy-1.1.3/")
group "external"
project "snappy"
kind "StaticLib"
language "C++"
location (_ACTION .. "/" .. project().name)
includedirs
{
base_dir .. "include/"
}
files
{
base_dir .. "*.h",
base_dir .. "*.cc"
}
project "*"
group ""

26
premake/sourcesdk.lua Normal file
View File

@ -0,0 +1,26 @@
local base_dir = (solution().basedir .. "/external/sourcesdk/")
local external_dir = (solution().basedir .. "/external/")
group "external"
project "sourcesdk"
kind "StaticLib"
language "C++"
location (_ACTION .. "/" .. project().name)
includedirs
{
base_dir .. "include/",
external_dir .. "snappy-1.1.3/include/"
}
files
{
base_dir .. "*.h",
base_dir .. "*.cpp"
}
links
{
"snappy"
}
project "*"
group ""