Fixed shaderc Linux build.

This commit is contained in:
Branimir Karadzic 2012-08-07 21:38:31 -07:00
parent 3bb48b4ab2
commit 055891a42d
2 changed files with 14 additions and 6 deletions

View File

@ -10,6 +10,17 @@ project "shaderc"
GLSL_OPTIMIZER .. "src/glsl/msvc",
}
configuration { "windows" }
includedirs {
GLSL_OPTIMIZER .. "include/c99",
}
links {
"d3dx9",
"d3dcompiler",
"dxguid",
}
configuration {}
includedirs {
@ -18,7 +29,6 @@ project "shaderc"
FCPP_DIR,
GLSL_OPTIMIZER .. "include",
GLSL_OPTIMIZER .. "include/c99",
GLSL_OPTIMIZER .. "src/mesa",
GLSL_OPTIMIZER .. "src/mapi",
GLSL_OPTIMIZER .. "src/glsl",
@ -50,8 +60,3 @@ project "shaderc"
GLSL_OPTIMIZER .. "src/glsl/builtin_stubs.cpp",
}
links {
"d3dx9",
"d3dcompiler",
"dxguid",
}

View File

@ -29,7 +29,10 @@ extern "C"
#include <bx/bx.h>
#if BX_PLATFORM_LINUX
# include <stdarg.h>
# define _stricmp strcasecmp
# define _snprintf snprintf
#endif // BX_PLATFORM_LINUX
#include <bx/commandline.h>