2012-06-01 22:55:56 -04:00
|
|
|
project "shaderc"
|
|
|
|
uuid "f3cd2e90-52a4-11e1-b86c-0800200c9a66"
|
|
|
|
kind "ConsoleApp"
|
|
|
|
|
|
|
|
local GLSL_OPTIMIZER = (BGFX_DIR .. "3rdparty/glsl-optimizer/")
|
2012-06-05 22:32:56 -04:00
|
|
|
local FCPP_DIR = (BGFX_DIR .. "3rdparty/fcpp/")
|
2012-06-01 22:55:56 -04:00
|
|
|
|
|
|
|
configuration { "vs*" }
|
|
|
|
includedirs {
|
|
|
|
GLSL_OPTIMIZER .. "src/glsl/msvc",
|
|
|
|
}
|
|
|
|
|
2012-10-28 00:34:41 -04:00
|
|
|
configuration { "windows", "vs*" }
|
2012-08-08 00:38:31 -04:00
|
|
|
includedirs {
|
|
|
|
GLSL_OPTIMIZER .. "include/c99",
|
|
|
|
}
|
|
|
|
|
2012-10-28 00:34:41 -04:00
|
|
|
configuration { "windows" }
|
|
|
|
includedirs {
|
|
|
|
"$(DXSDK_DIR)/include",
|
|
|
|
}
|
|
|
|
|
2012-08-08 00:38:31 -04:00
|
|
|
links {
|
|
|
|
"d3dx9",
|
|
|
|
"d3dcompiler",
|
|
|
|
"dxguid",
|
|
|
|
}
|
|
|
|
|
2012-06-01 22:55:56 -04:00
|
|
|
configuration {}
|
|
|
|
|
2012-10-28 00:34:41 -04:00
|
|
|
defines { -- fcpp
|
|
|
|
"NINCLUDE=64",
|
|
|
|
"NWORK=65536",
|
|
|
|
"NBUFF=65536",
|
|
|
|
}
|
|
|
|
|
2012-06-01 22:55:56 -04:00
|
|
|
includedirs {
|
|
|
|
BGFX_DIR .. "../bx/include",
|
|
|
|
|
2012-06-05 22:32:56 -04:00
|
|
|
FCPP_DIR,
|
2012-06-01 22:55:56 -04:00
|
|
|
|
|
|
|
GLSL_OPTIMIZER .. "include",
|
|
|
|
GLSL_OPTIMIZER .. "src/mesa",
|
|
|
|
GLSL_OPTIMIZER .. "src/mapi",
|
|
|
|
GLSL_OPTIMIZER .. "src/glsl",
|
|
|
|
}
|
|
|
|
|
|
|
|
files {
|
2012-06-05 22:32:56 -04:00
|
|
|
BGFX_DIR .. "tools/shaderc.cpp",
|
|
|
|
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",
|
2012-06-01 22:55:56 -04:00
|
|
|
|
|
|
|
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/**",
|
2012-10-07 23:41:18 -04:00
|
|
|
GLSL_OPTIMIZER .. "src/glsl/glcpp/**.l",
|
|
|
|
GLSL_OPTIMIZER .. "src/glsl/glcpp/**.y",
|
|
|
|
GLSL_OPTIMIZER .. "src/glsl/ir_set_program_inouts.cpp",
|
2012-06-01 22:55:56 -04:00
|
|
|
GLSL_OPTIMIZER .. "src/glsl/main.cpp",
|
|
|
|
GLSL_OPTIMIZER .. "src/glsl/builtin_stubs.cpp",
|
|
|
|
}
|
|
|
|
|