aboutsummaryrefslogtreecommitdiff
path: root/sp/src/materialsystem/stdshaders/game_shader_dx9_base.vpc
diff options
context:
space:
mode:
authorJoe Ludwig <[email protected]>2013-07-17 18:26:59 -0700
committerJoe Ludwig <[email protected]>2013-07-17 18:26:59 -0700
commite16ea21dc8a710237ade8413207f58d403c616a3 (patch)
tree85dcfbda9881e4e022dedafefbc2727e2fd2aa59 /sp/src/materialsystem/stdshaders/game_shader_dx9_base.vpc
parentMerge pull request #36 from AnAkIn1/fogplayerparams_fix (diff)
downloadsource-sdk-2013-e16ea21dc8a710237ade8413207f58d403c616a3.tar.xz
source-sdk-2013-e16ea21dc8a710237ade8413207f58d403c616a3.zip
* Added support for building shaders in your mod
* Added nav mesh support * fixed many warnings and misc bugs * Fixed the create*projects scripts in mp * Added a bunch of stuff to .gitignore
Diffstat (limited to 'sp/src/materialsystem/stdshaders/game_shader_dx9_base.vpc')
-rw-r--r--sp/src/materialsystem/stdshaders/game_shader_dx9_base.vpc101
1 files changed, 101 insertions, 0 deletions
diff --git a/sp/src/materialsystem/stdshaders/game_shader_dx9_base.vpc b/sp/src/materialsystem/stdshaders/game_shader_dx9_base.vpc
new file mode 100644
index 00000000..2fb7fc9e
--- /dev/null
+++ b/sp/src/materialsystem/stdshaders/game_shader_dx9_base.vpc
@@ -0,0 +1,101 @@
+//-----------------------------------------------------------------------------
+// game_shader_dx9.vpc
+//
+// Project Script for mods to use an an example of how to override shaders
+//-----------------------------------------------------------------------------
+
+$Macro OUTBINDIR "$SRCDIR\..\game\$GAMENAME\bin"
+
+$Include "$SRCDIR\vpc_scripts\source_dll_base.vpc"
+
+$Configuration "Debug"
+{
+ $General
+ {
+ $OutputDirectory "Debug_dx9_$GAMENAME" [$WIN32]
+ $IntermediateDirectory "Debug_dx9_$GAMENAME" [$WIN32]
+ }
+}
+
+$Configuration "Release"
+{
+ $General
+ {
+ $OutputDirectory "Release_dx9_$GAMENAME" [$WIN32]
+ $IntermediateDirectory "Release_dx9_$GAMENAME" [$WIN32]
+ }
+}
+
+// Common Configuration
+$Configuration
+{
+ $Compiler
+ {
+ $AdditionalIncludeDirectories "$BASE;fxctmp9;vshtmp9;" [$WIN32||$POSIX]
+// $AdditionalIncludeDirectories "$BASE;..\..\dx9sdk\include" [$WIN32]
+ $AdditionalIncludeDirectories "$BASE;fxctmp9_360;vshtmp9_360" [$X360]
+ $PreprocessorDefinitions "$BASE;STDSHADER_DX9_DLL_EXPORT;FAST_MATERIALVAR_ACCESS;GAME_SHADER_DLL"
+ $PreprocessorDefinitions "$BASE;USE_ACTUAL_DX" [($WIN32||$X360) && !$GL]
+ }
+
+ $Linker
+ {
+ $AdditionalDependencies "$BASE version.lib winmm.lib" [$WIN32]
+ $SystemLibraries "iconv" [$OSXALL]
+ }
+}
+
+$Project
+{
+ $Folder "Source Files"
+ {
+ $File "BaseVSShader.cpp"
+
+ $File "example_model_dx9.cpp"
+ $File "example_model_dx9_helper.cpp"
+ }
+
+ $Folder "Header Files"
+ {
+ $File "BaseVSShader.h"
+ $File "common_fxc.h"
+ $File "common_hlsl_cpp_consts.h"
+ $File "common_ps_fxc.h"
+ $File "common_vertexlitgeneric_dx9.h"
+ $File "common_vs_fxc.h"
+ $File "shader_constant_register_map.h"
+
+ $File "example_model_dx9_helper.h"
+ }
+
+ $Folder "Link Libraries" [$WIN32]
+ {
+// $File "$SRCDIR\dx9sdk\lib\d3dx9.lib"
+ $DynamicFile "$SRCDIR\lib\public\mathlib.lib"
+ $DynamicFile "$SRCDIR\lib\public\shaderlib.lib"
+ }
+
+ $Folder "Link Libraries" [$X360]
+ {
+ $DynamicFile "$SRCDIR\lib\public\mathlib_360.lib"
+ $DynamicFile "$SRCDIR\lib\public\shaderlib_360.lib"
+ }
+
+ $Folder "Link Libraries" [$POSIX&&!$LINUX]
+ {
+ $DynamicFile "$SRCDIR\lib\$PLATFORM\mathlib$_STATICLIB_EXT"
+ $DynamicFile "$SRCDIR\lib\$PLATFORM\shaderlib$_STATICLIB_EXT"
+ }
+
+ $Folder "Link Libraries" [$LINUX]
+ {
+ $Lib mathlib
+ $Lib shaderlib
+ }
+
+ $File "buildsdkshaders.bat"
+ $File "buildshaders.bat"
+
+ $Shaders "stdshader_dx9_20b.txt"
+ $Shaders "stdshader_dx9_30.txt"
+}