mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-24 16:48:18 -05:00
Normalized *.lua line endings.
This commit is contained in:
parent
ff7eefaf2b
commit
c2f2c3bdf0
5 changed files with 183 additions and 183 deletions
110
premake/bgfx.lua
110
premake/bgfx.lua
|
@ -1,55 +1,55 @@
|
|||
project "bgfx"
|
||||
uuid "2dc7fd80-ed76-11e0-be50-0800200c9a66"
|
||||
kind "StaticLib"
|
||||
|
||||
includedirs {
|
||||
BGFX_DIR .. "../tinystl/include",
|
||||
BGFX_DIR .. "../bx/include",
|
||||
}
|
||||
|
||||
buildoptions {
|
||||
-- "-Wall",
|
||||
}
|
||||
|
||||
defines {
|
||||
-- "BGFX_CONFIG_RENDERER_OPENGL=1",
|
||||
}
|
||||
|
||||
configuration "Debug"
|
||||
defines {
|
||||
"BGFX_CONFIG_DEBUG=1",
|
||||
}
|
||||
|
||||
configuration { "windows" }
|
||||
includedirs {
|
||||
"$(DXSDK_DIR)/include",
|
||||
}
|
||||
|
||||
configuration { "macosx" }
|
||||
files {
|
||||
BGFX_DIR .. "src/**.mm",
|
||||
}
|
||||
|
||||
configuration { "not nacl" }
|
||||
includedirs {
|
||||
--nacl has GLES2 headers modified...
|
||||
BGFX_DIR .. "3rdparty/glext",
|
||||
}
|
||||
|
||||
configuration {}
|
||||
|
||||
includedirs {
|
||||
BGFX_DIR .. "include",
|
||||
}
|
||||
|
||||
files {
|
||||
BGFX_DIR .. "include/**.h",
|
||||
BGFX_DIR .. "src/**.cpp",
|
||||
BGFX_DIR .. "src/**.h",
|
||||
}
|
||||
|
||||
excludes {
|
||||
BGFX_DIR .. "src/**.bin.h",
|
||||
}
|
||||
|
||||
copyLib()
|
||||
project "bgfx"
|
||||
uuid "2dc7fd80-ed76-11e0-be50-0800200c9a66"
|
||||
kind "StaticLib"
|
||||
|
||||
includedirs {
|
||||
BGFX_DIR .. "../tinystl/include",
|
||||
BGFX_DIR .. "../bx/include",
|
||||
}
|
||||
|
||||
buildoptions {
|
||||
-- "-Wall",
|
||||
}
|
||||
|
||||
defines {
|
||||
-- "BGFX_CONFIG_RENDERER_OPENGL=1",
|
||||
}
|
||||
|
||||
configuration "Debug"
|
||||
defines {
|
||||
"BGFX_CONFIG_DEBUG=1",
|
||||
}
|
||||
|
||||
configuration { "windows" }
|
||||
includedirs {
|
||||
"$(DXSDK_DIR)/include",
|
||||
}
|
||||
|
||||
configuration { "macosx" }
|
||||
files {
|
||||
BGFX_DIR .. "src/**.mm",
|
||||
}
|
||||
|
||||
configuration { "not nacl" }
|
||||
includedirs {
|
||||
--nacl has GLES2 headers modified...
|
||||
BGFX_DIR .. "3rdparty/glext",
|
||||
}
|
||||
|
||||
configuration {}
|
||||
|
||||
includedirs {
|
||||
BGFX_DIR .. "include",
|
||||
}
|
||||
|
||||
files {
|
||||
BGFX_DIR .. "include/**.h",
|
||||
BGFX_DIR .. "src/**.cpp",
|
||||
BGFX_DIR .. "src/**.h",
|
||||
}
|
||||
|
||||
excludes {
|
||||
BGFX_DIR .. "src/**.bin.h",
|
||||
}
|
||||
|
||||
copyLib()
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
project "geometryc"
|
||||
uuid "8794dc3a-2d57-11e2-ba18-368d09e48fda"
|
||||
kind "ConsoleApp"
|
||||
|
||||
includedirs {
|
||||
BX_DIR .. "include",
|
||||
BGFX_DIR .. "include",
|
||||
BGFX_DIR .. "3rdparty/forsyth-too",
|
||||
}
|
||||
|
||||
files {
|
||||
BGFX_DIR .. "3rdparty/forsyth-too/**.cpp",
|
||||
BGFX_DIR .. "3rdparty/forsyth-too/**.h",
|
||||
BGFX_DIR .. "src/vertexdecl.**",
|
||||
BGFX_DIR .. "tools/geometryc/**.cpp",
|
||||
BGFX_DIR .. "tools/geometryc/**.h",
|
||||
}
|
||||
project "geometryc"
|
||||
uuid "8794dc3a-2d57-11e2-ba18-368d09e48fda"
|
||||
kind "ConsoleApp"
|
||||
|
||||
includedirs {
|
||||
BX_DIR .. "include",
|
||||
BGFX_DIR .. "include",
|
||||
BGFX_DIR .. "3rdparty/forsyth-too",
|
||||
}
|
||||
|
||||
files {
|
||||
BGFX_DIR .. "3rdparty/forsyth-too/**.cpp",
|
||||
BGFX_DIR .. "3rdparty/forsyth-too/**.h",
|
||||
BGFX_DIR .. "src/vertexdecl.**",
|
||||
BGFX_DIR .. "tools/geometryc/**.cpp",
|
||||
BGFX_DIR .. "tools/geometryc/**.h",
|
||||
}
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
project "makedisttex"
|
||||
uuid "b0561b30-91bb-11e1-b06e-023ad46e7d26"
|
||||
kind "ConsoleApp"
|
||||
|
||||
includedirs {
|
||||
BX_DIR .. "include",
|
||||
BGFX_DIR .. "3rdparty/edtaa3",
|
||||
BGFX_DIR .. "3rdparty/stb_image",
|
||||
}
|
||||
|
||||
files {
|
||||
BGFX_DIR .. "3rdparty/edtaa3/**.cpp",
|
||||
BGFX_DIR .. "3rdparty/edtaa3/**.h",
|
||||
BGFX_DIR .. "tools/makedisttex.cpp",
|
||||
}
|
||||
project "makedisttex"
|
||||
uuid "b0561b30-91bb-11e1-b06e-023ad46e7d26"
|
||||
kind "ConsoleApp"
|
||||
|
||||
includedirs {
|
||||
BX_DIR .. "include",
|
||||
BGFX_DIR .. "3rdparty/edtaa3",
|
||||
BGFX_DIR .. "3rdparty/stb_image",
|
||||
}
|
||||
|
||||
files {
|
||||
BGFX_DIR .. "3rdparty/edtaa3/**.cpp",
|
||||
BGFX_DIR .. "3rdparty/edtaa3/**.h",
|
||||
BGFX_DIR .. "tools/makedisttex.cpp",
|
||||
}
|
||||
|
|
|
@ -1,77 +1,77 @@
|
|||
project "shaderc"
|
||||
uuid "f3cd2e90-52a4-11e1-b86c-0800200c9a66"
|
||||
kind "ConsoleApp"
|
||||
|
||||
local GLSL_OPTIMIZER = (BGFX_DIR .. "3rdparty/glsl-optimizer/")
|
||||
local FCPP_DIR = (BGFX_DIR .. "3rdparty/fcpp/")
|
||||
|
||||
configuration { "vs*" }
|
||||
includedirs {
|
||||
GLSL_OPTIMIZER .. "src/glsl/msvc",
|
||||
}
|
||||
|
||||
configuration { "windows", "vs*" }
|
||||
includedirs {
|
||||
GLSL_OPTIMIZER .. "include/c99",
|
||||
}
|
||||
|
||||
configuration { "windows" }
|
||||
includedirs {
|
||||
"$(DXSDK_DIR)/include",
|
||||
}
|
||||
|
||||
links {
|
||||
"d3dx9",
|
||||
"d3dcompiler",
|
||||
"dxguid",
|
||||
}
|
||||
|
||||
configuration {}
|
||||
|
||||
defines { -- fcpp
|
||||
"NINCLUDE=64",
|
||||
"NWORK=65536",
|
||||
"NBUFF=65536",
|
||||
}
|
||||
|
||||
includedirs {
|
||||
BX_DIR .. "include",
|
||||
|
||||
FCPP_DIR,
|
||||
|
||||
GLSL_OPTIMIZER .. "include",
|
||||
GLSL_OPTIMIZER .. "src/mesa",
|
||||
GLSL_OPTIMIZER .. "src/mapi",
|
||||
GLSL_OPTIMIZER .. "src/glsl",
|
||||
}
|
||||
|
||||
files {
|
||||
BGFX_DIR .. "tools/shaderc/**.cpp",
|
||||
BGFX_DIR .. "tools/shaderc/**.h",
|
||||
FCPP_DIR .. "**.h",
|
||||
FCPP_DIR .. "cpp1.c",
|
||||
FCPP_DIR .. "cpp2.c",
|
||||
FCPP_DIR .. "cpp3.c",
|
||||
FCPP_DIR .. "cpp4.c",
|
||||
FCPP_DIR .. "cpp5.c",
|
||||
FCPP_DIR .. "cpp6.c",
|
||||
FCPP_DIR .. "cpp6.c",
|
||||
|
||||
GLSL_OPTIMIZER .. "src/mesa/**.c",
|
||||
GLSL_OPTIMIZER .. "src/glsl/**.cpp",
|
||||
GLSL_OPTIMIZER .. "src/mesa/**.h",
|
||||
GLSL_OPTIMIZER .. "src/glsl/**.c",
|
||||
GLSL_OPTIMIZER .. "src/glsl/**.cpp",
|
||||
GLSL_OPTIMIZER .. "src/glsl/**.h",
|
||||
}
|
||||
|
||||
excludes {
|
||||
GLSL_OPTIMIZER .. "src/glsl/glcpp/glcpp.c",
|
||||
GLSL_OPTIMIZER .. "src/glsl/glcpp/tests/**",
|
||||
GLSL_OPTIMIZER .. "src/glsl/glcpp/**.l",
|
||||
GLSL_OPTIMIZER .. "src/glsl/glcpp/**.y",
|
||||
GLSL_OPTIMIZER .. "src/glsl/ir_set_program_inouts.cpp",
|
||||
GLSL_OPTIMIZER .. "src/glsl/main.cpp",
|
||||
GLSL_OPTIMIZER .. "src/glsl/builtin_stubs.cpp",
|
||||
}
|
||||
|
||||
project "shaderc"
|
||||
uuid "f3cd2e90-52a4-11e1-b86c-0800200c9a66"
|
||||
kind "ConsoleApp"
|
||||
|
||||
local GLSL_OPTIMIZER = (BGFX_DIR .. "3rdparty/glsl-optimizer/")
|
||||
local FCPP_DIR = (BGFX_DIR .. "3rdparty/fcpp/")
|
||||
|
||||
configuration { "vs*" }
|
||||
includedirs {
|
||||
GLSL_OPTIMIZER .. "src/glsl/msvc",
|
||||
}
|
||||
|
||||
configuration { "windows", "vs*" }
|
||||
includedirs {
|
||||
GLSL_OPTIMIZER .. "include/c99",
|
||||
}
|
||||
|
||||
configuration { "windows" }
|
||||
includedirs {
|
||||
"$(DXSDK_DIR)/include",
|
||||
}
|
||||
|
||||
links {
|
||||
"d3dx9",
|
||||
"d3dcompiler",
|
||||
"dxguid",
|
||||
}
|
||||
|
||||
configuration {}
|
||||
|
||||
defines { -- fcpp
|
||||
"NINCLUDE=64",
|
||||
"NWORK=65536",
|
||||
"NBUFF=65536",
|
||||
}
|
||||
|
||||
includedirs {
|
||||
BX_DIR .. "include",
|
||||
|
||||
FCPP_DIR,
|
||||
|
||||
GLSL_OPTIMIZER .. "include",
|
||||
GLSL_OPTIMIZER .. "src/mesa",
|
||||
GLSL_OPTIMIZER .. "src/mapi",
|
||||
GLSL_OPTIMIZER .. "src/glsl",
|
||||
}
|
||||
|
||||
files {
|
||||
BGFX_DIR .. "tools/shaderc/**.cpp",
|
||||
BGFX_DIR .. "tools/shaderc/**.h",
|
||||
FCPP_DIR .. "**.h",
|
||||
FCPP_DIR .. "cpp1.c",
|
||||
FCPP_DIR .. "cpp2.c",
|
||||
FCPP_DIR .. "cpp3.c",
|
||||
FCPP_DIR .. "cpp4.c",
|
||||
FCPP_DIR .. "cpp5.c",
|
||||
FCPP_DIR .. "cpp6.c",
|
||||
FCPP_DIR .. "cpp6.c",
|
||||
|
||||
GLSL_OPTIMIZER .. "src/mesa/**.c",
|
||||
GLSL_OPTIMIZER .. "src/glsl/**.cpp",
|
||||
GLSL_OPTIMIZER .. "src/mesa/**.h",
|
||||
GLSL_OPTIMIZER .. "src/glsl/**.c",
|
||||
GLSL_OPTIMIZER .. "src/glsl/**.cpp",
|
||||
GLSL_OPTIMIZER .. "src/glsl/**.h",
|
||||
}
|
||||
|
||||
excludes {
|
||||
GLSL_OPTIMIZER .. "src/glsl/glcpp/glcpp.c",
|
||||
GLSL_OPTIMIZER .. "src/glsl/glcpp/tests/**",
|
||||
GLSL_OPTIMIZER .. "src/glsl/glcpp/**.l",
|
||||
GLSL_OPTIMIZER .. "src/glsl/glcpp/**.y",
|
||||
GLSL_OPTIMIZER .. "src/glsl/ir_set_program_inouts.cpp",
|
||||
GLSL_OPTIMIZER .. "src/glsl/main.cpp",
|
||||
GLSL_OPTIMIZER .. "src/glsl/builtin_stubs.cpp",
|
||||
}
|
||||
|
||||
|
|
|
@ -1,19 +1,19 @@
|
|||
project "texturec"
|
||||
uuid "838801ee-7bc3-11e1-9f19-eae7d36e7d26"
|
||||
kind "ConsoleApp"
|
||||
|
||||
includedirs {
|
||||
BX_DIR .. "include",
|
||||
BGFX_DIR .. "include",
|
||||
BGFX_DIR .. "src",
|
||||
}
|
||||
|
||||
files {
|
||||
BGFX_DIR .. "src/dds.*",
|
||||
BGFX_DIR .. "tools/texturec/**.cpp",
|
||||
BGFX_DIR .. "tools/texturec/**.h",
|
||||
}
|
||||
|
||||
links {
|
||||
-- "bgfx",
|
||||
}
|
||||
project "texturec"
|
||||
uuid "838801ee-7bc3-11e1-9f19-eae7d36e7d26"
|
||||
kind "ConsoleApp"
|
||||
|
||||
includedirs {
|
||||
BX_DIR .. "include",
|
||||
BGFX_DIR .. "include",
|
||||
BGFX_DIR .. "src",
|
||||
}
|
||||
|
||||
files {
|
||||
BGFX_DIR .. "src/dds.*",
|
||||
BGFX_DIR .. "tools/texturec/**.cpp",
|
||||
BGFX_DIR .. "tools/texturec/**.h",
|
||||
}
|
||||
|
||||
links {
|
||||
-- "bgfx",
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue