2013-07-18 09:26:59 +08:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// 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"
|
2013-07-31 06:10:15 +08:00
|
|
|
|
|
|
|
$File "Bloom.cpp"
|
|
|
|
$File "screenspace_general.cpp"
|
2013-07-18 09:26:59 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
$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"
|
|
|
|
}
|
|
|
|
|
2013-09-03 02:39:10 +08:00
|
|
|
$Folder "Link Libraries"
|
2013-07-18 09:26:59 +08:00
|
|
|
{
|
|
|
|
$Lib mathlib
|
|
|
|
$Lib shaderlib
|
|
|
|
}
|
|
|
|
|
|
|
|
$File "buildsdkshaders.bat"
|
|
|
|
$File "buildshaders.bat"
|
|
|
|
|
|
|
|
$Shaders "stdshader_dx9_20b.txt"
|
|
|
|
$Shaders "stdshader_dx9_30.txt"
|
|
|
|
}
|