diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /vpc_scripts/source_lib_x360_base.vpc | |
| download | archived-source-engine-2018-hl2-src-3bf9df6b2785fa6d951086978a3e66f49427166a.tar.xz archived-source-engine-2018-hl2-src-3bf9df6b2785fa6d951086978a3e66f49427166a.zip | |
Diffstat (limited to 'vpc_scripts/source_lib_x360_base.vpc')
| -rw-r--r-- | vpc_scripts/source_lib_x360_base.vpc | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/vpc_scripts/source_lib_x360_base.vpc b/vpc_scripts/source_lib_x360_base.vpc new file mode 100644 index 0000000..d283519 --- /dev/null +++ b/vpc_scripts/source_lib_x360_base.vpc @@ -0,0 +1,66 @@ +//----------------------------------------------------------------------------- +// SOURCE_LIB_X360_BASE.VPC +// +// Base Settings for Source(TM) Projects +//----------------------------------------------------------------------------- + +$Include "$SRCDIR\vpc_scripts\version.vpc" + +$MacroRequired "SRCDIR" +$MacroRequired "OUTLIBNAME" "$PROJECTNAME" +$MacroRequired "OUTLIBDIR" + +$Macro LIBPUBLIC "$SRCDIR\lib\public" +$Macro LIBCOMMON "$SRCDIR\lib\common" + +$Include "$SRCDIR\vpc_scripts\source_lib_x360_debug.vpc" +$Include "$SRCDIR\vpc_scripts\source_lib_x360_release.vpc" + +$IgnoreRedundancyWarning "ON" + +// Common Configuration +$Configuration +{ + $Compiler + { + $PreprocessorDefinitions "$BASE;_LOWVIOLENCE" [$LV] + $PreprocessorDefinitions "$BASE;_X360DEMO" [$X360DEMO] + $PreprocessorDefinitions "$BASE;COMPILER_MSVC;COMPILER_MSVCX360;_DLL_EXT=$_DLL_EXT" + $PreprocessorDefinitions "$BASE;LIBNAME=$OUTLIBNAME" + } + + $PreBuildEvent + { + $CommandLine "if EXIST $OUTLIBDIR\$(TargetName).lib for /f $QUOTEdelims=$QUOTE %%A in ('attrib $QUOTE$OUTLIBDIR\$(TargetName).lib$QUOTE') do set valveTmpIsReadOnly=$QUOTE%%A$QUOTE" "\n" \ + "set valveTmpIsReadOnlyLetter=%valveTmpIsReadOnly:~6,1%" "\n" \ + "if $QUOTE%valveTmpIsReadOnlyLetter%$QUOTE==$QUOTER$QUOTE (" "\n" \ + " attrib -r $OUTLIBDIR\$(TargetName).lib" "\n" \ + " $SRCDIR\devtools\bin\gnu\touch.exe -d $QUOTE1999-01-01$QUOTE $OUTLIBDIR\$(TargetName).lib" "\n" \ + " attrib +r $OUTLIBDIR\$(TargetName).lib" "\n" \ + ")" "\n" \ + "$CRCCHECK" "\n" + } + + $PreLinkEvent + { + $CommandLine "call $SRCDIR\vpc_scripts\valve_p4_edit.cmd $OUTLIBDIR\$(TargetName).lib $SRCDIR" + } +} + +// Skeleton Project - All derived projects get this as a starting base +$Project +{ + $Folder "Source Files" + { + $File "$SRCDIR\common\debug_lib_check.cpp" + { + $Configuration + { + $Compiler + { + $Create/UsePrecompiledHeader "Not Using Precompiled Headers" + } + } + } + } +} |