Ver código fonte

Added common library.

bkaradzic 12 anos atrás
pai
commit
721f1c5dbb

+ 5 - 0
premake/bgfx.lua

@@ -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 - 0
premake/common.lua

@@ -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",
+	}

+ 5 - 0
premake/geometryc.lua

@@ -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"

+ 5 - 0
premake/makedisttex.lua

@@ -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"

+ 2 - 2
premake/premake4.lua

@@ -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")

+ 5 - 0
premake/shaderc.lua

@@ -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"

+ 5 - 0
premake/texturec.lua

@@ -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"