Added common library.

This commit is contained in:
bkaradzic 2013-05-17 19:39:08 -07:00
parent 4f9171e8f0
commit 721f1c5dbb
7 changed files with 46 additions and 2 deletions

5
premake/bgfx.lua Executable file → Normal file
View File

@ -1,3 +1,8 @@
--
-- Copyright 2010-2013 Branimir Karadzic. All rights reserved.
-- License: http://www.opensource.org/licenses/BSD-2-Clause
--
project "bgfx" project "bgfx"
uuid "2dc7fd80-ed76-11e0-be50-0800200c9a66" uuid "2dc7fd80-ed76-11e0-be50-0800200c9a66"
kind "StaticLib" kind "StaticLib"

19
premake/common.lua Normal file
View File

@ -0,0 +1,19 @@
--
-- Copyright 2010-2013 Branimir Karadzic. All rights reserved.
-- License: http://www.opensource.org/licenses/BSD-2-Clause
--
project ("common")
uuid ("21cc0e26-bf62-11e2-a01e-0291bd4c8125")
kind "StaticLib"
includedirs {
BX_DIR .. "include",
BGFX_DIR .. "include",
BGFX_DIR .. "3rdparty",
}
files {
BGFX_DIR .. "examples/common/**.cpp",
BGFX_DIR .. "examples/common/**.h",
}

View File

@ -1,3 +1,8 @@
--
-- Copyright 2010-2013 Branimir Karadzic. All rights reserved.
-- License: http://www.opensource.org/licenses/BSD-2-Clause
--
project "geometryc" project "geometryc"
uuid "8794dc3a-2d57-11e2-ba18-368d09e48fda" uuid "8794dc3a-2d57-11e2-ba18-368d09e48fda"
kind "ConsoleApp" kind "ConsoleApp"

View File

@ -1,3 +1,8 @@
--
-- Copyright 2010-2013 Branimir Karadzic. All rights reserved.
-- License: http://www.opensource.org/licenses/BSD-2-Clause
--
project "makedisttex" project "makedisttex"
uuid "b0561b30-91bb-11e1-b06e-023ad46e7d26" uuid "b0561b30-91bb-11e1-b06e-023ad46e7d26"
kind "ConsoleApp" kind "ConsoleApp"

View File

@ -50,14 +50,13 @@ function exampleProject(_name, _uuid)
} }
files { files {
BGFX_DIR .. "examples/common/**.cpp",
BGFX_DIR .. "examples/common/**.h",
BGFX_DIR .. "examples/" .. _name .. "/**.cpp", BGFX_DIR .. "examples/" .. _name .. "/**.cpp",
BGFX_DIR .. "examples/" .. _name .. "/**.h", BGFX_DIR .. "examples/" .. _name .. "/**.h",
} }
links { links {
"bgfx", "bgfx",
"common",
} }
configuration { "android*" } configuration { "android*" }
@ -108,6 +107,7 @@ function exampleProject(_name, _uuid)
end end
dofile "bgfx.lua" dofile "bgfx.lua"
dofile "common.lua"
exampleProject("00-helloworld", "ff2c8450-ebf4-11e0-9572-0800200c9a66") exampleProject("00-helloworld", "ff2c8450-ebf4-11e0-9572-0800200c9a66")
exampleProject("01-cubes", "fec3bc94-e1e5-11e1-9c59-c7eeec2c1c51") exampleProject("01-cubes", "fec3bc94-e1e5-11e1-9c59-c7eeec2c1c51")
exampleProject("02-metaballs", "413b2cb4-f7db-11e1-bf5f-a716de6a022f") exampleProject("02-metaballs", "413b2cb4-f7db-11e1-bf5f-a716de6a022f")

View File

@ -1,3 +1,8 @@
--
-- Copyright 2010-2013 Branimir Karadzic. All rights reserved.
-- License: http://www.opensource.org/licenses/BSD-2-Clause
--
project "shaderc" project "shaderc"
uuid "f3cd2e90-52a4-11e1-b86c-0800200c9a66" uuid "f3cd2e90-52a4-11e1-b86c-0800200c9a66"
kind "ConsoleApp" kind "ConsoleApp"

View File

@ -1,3 +1,8 @@
--
-- Copyright 2010-2013 Branimir Karadzic. All rights reserved.
-- License: http://www.opensource.org/licenses/BSD-2-Clause
--
project "texturec" project "texturec"
uuid "838801ee-7bc3-11e1-9f19-eae7d36e7d26" uuid "838801ee-7bc3-11e1-9f19-eae7d36e7d26"
kind "ConsoleApp" kind "ConsoleApp"