mirror of
https://github.com/celisej567/source-engine.git
synced 2025-12-31 21:48:22 +03:00
1
This commit is contained in:
28
vpc_scripts/default.vgc
Normal file
28
vpc_scripts/default.vgc
Normal file
@@ -0,0 +1,28 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// DEFAULT.VGC
|
||||
//
|
||||
// Configurations for all Source(TM) Projects
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
////////////////
|
||||
// Game Names //
|
||||
////////////////
|
||||
|
||||
$Games
|
||||
{
|
||||
"CSTRIKE"
|
||||
"DOD"
|
||||
"EPISODIC"
|
||||
"HL1"
|
||||
"HL1MP"
|
||||
"HL2"
|
||||
"HL2MP"
|
||||
"LOSTCOAST"
|
||||
"PORTAL"
|
||||
"SDK"
|
||||
"TF"
|
||||
}
|
||||
|
||||
$Include "vpc_scripts\projects.vgc"
|
||||
$Include "vpc_scripts\groups.vgc"
|
||||
|
||||
860
vpc_scripts/definitions/ps3.def
Normal file
860
vpc_scripts/definitions/ps3.def
Normal file
@@ -0,0 +1,860 @@
|
||||
//
|
||||
// PS3 Project Generator Definition
|
||||
//
|
||||
|
||||
"PS3"
|
||||
{
|
||||
"Version" "1.0"
|
||||
|
||||
//
|
||||
// Configuration
|
||||
//
|
||||
|
||||
"$General"
|
||||
{
|
||||
"$ConfigurationType"
|
||||
{
|
||||
"ordinals"
|
||||
{
|
||||
"ELF" "1"
|
||||
"PRX" "1"
|
||||
"LIB" "4"
|
||||
}
|
||||
}
|
||||
|
||||
"$ExcludedFromBuild"
|
||||
{
|
||||
"type" "bool"
|
||||
}
|
||||
|
||||
"$OutputDirectory"
|
||||
{
|
||||
"type" "string"
|
||||
}
|
||||
|
||||
"$IntermediateDirectory"
|
||||
{
|
||||
"type" "string"
|
||||
}
|
||||
|
||||
"$ExtensionsToDeleteOnClean"
|
||||
{
|
||||
"type" "string"
|
||||
}
|
||||
|
||||
"$BuildLogFile"
|
||||
{
|
||||
"type" "string"
|
||||
}
|
||||
|
||||
"$SystemIncludeDependencies"
|
||||
{
|
||||
"type" "bool"
|
||||
}
|
||||
|
||||
"$SaveDebuggerPropertiesInProject"
|
||||
{
|
||||
"type" "bool"
|
||||
}
|
||||
|
||||
"$AdditionalProjectDependencies"
|
||||
{
|
||||
"type" "ignore"
|
||||
}
|
||||
|
||||
"$AdditionalOutputFiles"
|
||||
{
|
||||
"type" "ignore"
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// GCC Compiler/General
|
||||
//
|
||||
|
||||
"$GCCCompiler"
|
||||
{
|
||||
"$AdditionalIncludeDirectories"
|
||||
{
|
||||
"type" "string"
|
||||
}
|
||||
|
||||
"$PreprocessorDefinitions"
|
||||
{
|
||||
"type" "string"
|
||||
}
|
||||
|
||||
"$ForceIncludes"
|
||||
{
|
||||
"type" "string"
|
||||
}
|
||||
|
||||
"$GenerateDebugInformation"
|
||||
{
|
||||
"type" "bool"
|
||||
}
|
||||
|
||||
"$Warnings"
|
||||
{
|
||||
"ordinals"
|
||||
{
|
||||
"Turn Off Warnings (-w)" "0"
|
||||
"Generate Normal Warnings" "1"
|
||||
"Generate More Warnings (-Wall)" "2"
|
||||
}
|
||||
}
|
||||
|
||||
"$ExtraWarnings"
|
||||
{
|
||||
"type" "bool"
|
||||
}
|
||||
|
||||
"$WarnLoadHitStores"
|
||||
{
|
||||
"type" "bool"
|
||||
}
|
||||
|
||||
"$WarnMicrocodedInstruction"
|
||||
{
|
||||
"type" "bool"
|
||||
}
|
||||
|
||||
"$TreatWarningsAsErrors"
|
||||
{
|
||||
"type" "bool"
|
||||
}
|
||||
|
||||
"$ObjectFileName"
|
||||
{
|
||||
"type" "string"
|
||||
}
|
||||
|
||||
"$CallprofHierarchicalProfiling"
|
||||
{
|
||||
"type" "bool"
|
||||
}
|
||||
|
||||
"$SPURSUsage"
|
||||
{
|
||||
"ordinals"
|
||||
{
|
||||
"Not using SPURS" "0"
|
||||
"Job with CRT init (-mspurs-job-initialize)" "1"
|
||||
"Lightweight Job (-mspurs-job)" "2"
|
||||
"SPURS Task (-mspurs-task)" "3"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// GCC Compiler/Optimization
|
||||
//
|
||||
|
||||
"$GCCCompiler"
|
||||
{
|
||||
"$OptimizationLevel"
|
||||
{
|
||||
"ordinals"
|
||||
{
|
||||
"No Optimization (-O0)" "0"
|
||||
"Standard Optimization (-O1)" "1"
|
||||
"Full Optimization (-O2)" "2"
|
||||
"Full with Inlining (-O3)" "3"
|
||||
"Optimize for Size (-Os)" "4"
|
||||
}
|
||||
}
|
||||
|
||||
"$FastMath"
|
||||
{
|
||||
"type" "bool"
|
||||
}
|
||||
|
||||
"$NoStrictAliasing"
|
||||
{
|
||||
"type" "bool"
|
||||
}
|
||||
|
||||
"$UnrollLoops"
|
||||
{
|
||||
"type" "bool"
|
||||
}
|
||||
|
||||
"$InlineFunctionSizeLimit"
|
||||
{
|
||||
"type" "integer"
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// GCC Compiler/Code Generation
|
||||
//
|
||||
|
||||
"$GCCCompiler"
|
||||
{
|
||||
"$TOCUsage"
|
||||
{
|
||||
"ordinals"
|
||||
{
|
||||
"Normal TOC" "0"
|
||||
"Minimal TOC (-mminimal-toc)" "1"
|
||||
"Base TOC (-mbase-toc)" "2"
|
||||
"All Base TOC (-mall-base-toc)" "3"
|
||||
"No TOC Restore (-mno-toc)" "4"
|
||||
}
|
||||
}
|
||||
|
||||
"$Save/RestoreFunctions"
|
||||
{
|
||||
"alias" "$SaveRestoreFunctions"
|
||||
"type" "integer"
|
||||
}
|
||||
|
||||
"$GenerateMicrocodedInstructions"
|
||||
{
|
||||
"ordinals"
|
||||
{
|
||||
"Default (only with -Os)" "0"
|
||||
"Use when optimizing (-mgen-microcode)" "1"
|
||||
"Only when unavoidable (-mno-gen-microcode)" "2"
|
||||
}
|
||||
}
|
||||
|
||||
"$Position-IndependentCode"
|
||||
{
|
||||
"alias" "$PositionIndependentCode"
|
||||
"type" "bool"
|
||||
}
|
||||
|
||||
"$FunctionSections"
|
||||
{
|
||||
"type" "bool"
|
||||
}
|
||||
|
||||
"$DataSections"
|
||||
{
|
||||
"type" "bool"
|
||||
}
|
||||
|
||||
"$StackCheck"
|
||||
{
|
||||
"type" "bool"
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// GCC Compiler/Language
|
||||
//
|
||||
|
||||
"$GCCCompiler"
|
||||
{
|
||||
"$C++ExceptionsAndRTTIUsage"
|
||||
{
|
||||
"alias" "$CPPExceptionsAndRTTIUsage"
|
||||
"ordinals"
|
||||
{
|
||||
"Not using Exceptions or RTTI" "0"
|
||||
"Using RTTI only" "1"
|
||||
"Using Exceptions and RTTI" "2"
|
||||
}
|
||||
}
|
||||
|
||||
"$CheckANSICompliance"
|
||||
{
|
||||
"type" "bool"
|
||||
}
|
||||
|
||||
"$DefaultCharSigned"
|
||||
{
|
||||
"type" "bool"
|
||||
}
|
||||
|
||||
"$Permissive"
|
||||
{
|
||||
"type" "bool"
|
||||
}
|
||||
|
||||
"$EnableMSExtensions"
|
||||
{
|
||||
"type" "bool"
|
||||
}
|
||||
|
||||
"$RelaxC++Compliance"
|
||||
{
|
||||
"alias" "$RelaxCPPCompliance"
|
||||
"type" "bool"
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// GCC Compiler/Command Line
|
||||
//
|
||||
|
||||
"$GCCCompiler"
|
||||
{
|
||||
"$AdditionalOptions"
|
||||
{
|
||||
"type" "string"
|
||||
}
|
||||
}
|
||||
|
||||
"$GCCLinker"
|
||||
{
|
||||
// General
|
||||
"$OutputFile"
|
||||
{
|
||||
"type" "string"
|
||||
}
|
||||
|
||||
"$AdditionalDependencies"
|
||||
{
|
||||
"type" "string"
|
||||
}
|
||||
|
||||
"$AdditionalLibraryDirectories"
|
||||
{
|
||||
"type" "string"
|
||||
}
|
||||
|
||||
"$ImportLibrary"
|
||||
{
|
||||
"type" "string"
|
||||
}
|
||||
|
||||
"$SPURSUsage"
|
||||
{
|
||||
"ordinals"
|
||||
{
|
||||
"Not using SPURS" "0"
|
||||
"Job with CRT init (-mspurs-job-initialize)" "1"
|
||||
"Lightweight Job (-mspurs-job)" "2"
|
||||
"SPURS Task (-mspurs-task)" "3"
|
||||
}
|
||||
}
|
||||
|
||||
"$Position-IndependentCode"
|
||||
{
|
||||
"alias" "$PositionIndependentCode"
|
||||
"type" "bool"
|
||||
}
|
||||
|
||||
"$EmitRelocations"
|
||||
{
|
||||
"type" "bool"
|
||||
}
|
||||
|
||||
"$GarbageCollection"
|
||||
{
|
||||
"type" "bool"
|
||||
}
|
||||
|
||||
"$GenerateMapFile"
|
||||
{
|
||||
"type" "bool"
|
||||
}
|
||||
|
||||
"$MapFileName"
|
||||
{
|
||||
"type" "string"
|
||||
}
|
||||
|
||||
"$LinkLibraryDependencies"
|
||||
{
|
||||
"type" "bool"
|
||||
}
|
||||
|
||||
// Command Line
|
||||
"$AdditionalOptions"
|
||||
{
|
||||
"type" "string"
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// SNC Compiler/General
|
||||
//
|
||||
|
||||
"$SNCCompiler"
|
||||
{
|
||||
|
||||
"$AdditionalIncludeDirectories"
|
||||
{
|
||||
"type" "string"
|
||||
}
|
||||
|
||||
"$PreprocessorDefinitions"
|
||||
{
|
||||
"type" "string"
|
||||
}
|
||||
|
||||
"$ForceIncludes"
|
||||
{
|
||||
"type" "string"
|
||||
}
|
||||
|
||||
"$GenerateDebugInformation"
|
||||
{
|
||||
"type" "bool"
|
||||
}
|
||||
|
||||
"$Warnings"
|
||||
{
|
||||
"ordinals"
|
||||
{
|
||||
"Turn Off Warnings (=0)" "0"
|
||||
"Generate Warnings (=1)" "1"
|
||||
"Generate Warnings and Remarks (=2)" "2"
|
||||
}
|
||||
}
|
||||
|
||||
"$TreatMessagesAsErrors"
|
||||
{
|
||||
"ordinals"
|
||||
{
|
||||
"Reported Errors Only (=0)" "0"
|
||||
"Warnings as Errors (=1)" "1"
|
||||
"Warnings and Remarks as Errors (=2)" "2"
|
||||
}
|
||||
}
|
||||
|
||||
"$DisableSpecificWarnings"
|
||||
{
|
||||
"type" "string"
|
||||
}
|
||||
|
||||
"$ObjectFileName"
|
||||
{
|
||||
"type" "string"
|
||||
}
|
||||
|
||||
"$CallprofHierarchicalProfiling"
|
||||
{
|
||||
"type" "bool"
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// SNC Compiler/Optimization
|
||||
//
|
||||
|
||||
"$SNCCompiler"
|
||||
{
|
||||
"$OptimizationLevel"
|
||||
{
|
||||
"ordinals"
|
||||
{
|
||||
"No Optimization, Forced Inlining only (-O0)" "0"
|
||||
"No Optimization, Auto Inlining (-O1)" "1"
|
||||
"Full Optimization (-O2)" "2"
|
||||
"Optimize for Size (-Os)" "3"
|
||||
"Optimized Debuggable (-Od)" "4"
|
||||
}
|
||||
}
|
||||
|
||||
"$FastMath"
|
||||
{
|
||||
"type" "bool"
|
||||
}
|
||||
|
||||
"$RelaxAliasChecking"
|
||||
{
|
||||
"ordinals"
|
||||
{
|
||||
"Default" "-1"
|
||||
"No Strict Aliasing (=0)" "0"
|
||||
"No Overlapping Types (=1)" "1"
|
||||
"C99 Strict Aliasing (=2)" "2"
|
||||
"Strictest Aliasing (=3)" "3"
|
||||
}
|
||||
}
|
||||
|
||||
"$BranchlessCompares"
|
||||
{
|
||||
"ordinals"
|
||||
{
|
||||
"Always Use Branches (=0)" "0"
|
||||
"Convert Ternary Operators (=1)" "1"
|
||||
"Convert all Integer Comparisons (=2)" "2"
|
||||
}
|
||||
}
|
||||
|
||||
"$UnrollLoops"
|
||||
{
|
||||
"ordinals"
|
||||
{
|
||||
"No Loop Unrolling (=0)" "0"
|
||||
"Unroll Larger Loops (=30)" "30"
|
||||
}
|
||||
}
|
||||
|
||||
"$AssumeAlignedPointers"
|
||||
{
|
||||
"type" "bool"
|
||||
}
|
||||
|
||||
"$AssumeCorrectSign"
|
||||
{
|
||||
"type" "bool"
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// SNC Compiler/Code Generation
|
||||
//
|
||||
|
||||
"$SNCCompiler"
|
||||
{
|
||||
"$TOCPointerPreservation"
|
||||
{
|
||||
"ordinals"
|
||||
{
|
||||
"Preserve the TOC for all Function Calls (=0)" "0"
|
||||
"Preserve for Function Calls by Pointer (=1)" "1"
|
||||
"Assume Single TOC; No TOC Preservation (=2)" "2"
|
||||
}
|
||||
}
|
||||
|
||||
"$InitializedDataPlacement"
|
||||
{
|
||||
"ordinals"
|
||||
{
|
||||
"Placement in .data Section Only (=0)" "0"
|
||||
"Automatic .bss and .data Placement (=1)" "1"
|
||||
"Uninitialized and Zero Initialized in .bss (=2)" "2"
|
||||
}
|
||||
}
|
||||
|
||||
"$PromoteFPConstantsToDoubles"
|
||||
{
|
||||
"type" "bool"
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// SNC Compiler/Language
|
||||
//
|
||||
|
||||
"$SNCCompiler"
|
||||
{
|
||||
"$CC++Dialect"
|
||||
{
|
||||
"alias" "$CCPPDialect"
|
||||
"ordinals"
|
||||
{
|
||||
"Mixed with GNU Extensions" "0"
|
||||
"ANSI and ISO C Standard" "1"
|
||||
"Annotated Reference Manual" "2"
|
||||
"CP Mode" "3"
|
||||
"AT&T Cfront" "4"
|
||||
"Kernighan & Ritchie C" "5"
|
||||
}
|
||||
}
|
||||
|
||||
"$C++ExceptionsAndRTTIUsage"
|
||||
{
|
||||
"alias" "$CPPExceptionsAndRTTIUsage"
|
||||
"ordinals"
|
||||
{
|
||||
"Not using Exceptions or RTTI" "0"
|
||||
"Using RTTI only" "1"
|
||||
"Using Exceptions and RTTI" "2"
|
||||
}
|
||||
}
|
||||
|
||||
"$DefaultCharUnsigned"
|
||||
{
|
||||
"type" "bool"
|
||||
}
|
||||
|
||||
"$DefaultFPConstantsAsTypeFloat"
|
||||
{
|
||||
"type" "bool"
|
||||
}
|
||||
|
||||
"$BuiltInDefinitionForWCHAR_TType"
|
||||
{
|
||||
"ordinals"
|
||||
{
|
||||
"unsigned int (=uint)" "0"
|
||||
"unsigned long (=ulong)" "1"
|
||||
"unsigned short (=ushort)" "2"
|
||||
"unsigned char (=uchar)" "3"
|
||||
"int (=int)" "4"
|
||||
"long (=long)" "5"
|
||||
"short (=short)" "6"
|
||||
"char (=char)" "7"
|
||||
"signed char (=schar)" "8"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// SNC Compiler/Precompiled Headers
|
||||
//
|
||||
|
||||
"$SNCCompiler"
|
||||
{
|
||||
"$Create/UsePrecompiledHeader"
|
||||
{
|
||||
"alias" "$CreateUsePrecompiledHeader"
|
||||
"ordinals"
|
||||
{
|
||||
"Not Using Precompiled Header File(s)" "0"
|
||||
"Not Using Precompiled Headers" "0"
|
||||
"Create Precompiled Header (--create_pch)" "1"
|
||||
"Automatic Per File Precompiled Headers (--pch)" "2"
|
||||
"Use Precompiled Header (--use_pch)" "3"
|
||||
}
|
||||
}
|
||||
|
||||
"$PrecompiledHeaderFile"
|
||||
{
|
||||
"type" "string"
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// SNC Compiler/Command Line
|
||||
//
|
||||
|
||||
"$SNCCompiler"
|
||||
{
|
||||
"$AdditionalOptions"
|
||||
{
|
||||
"type" "string"
|
||||
}
|
||||
}
|
||||
|
||||
"$SNCCompiler"
|
||||
{
|
||||
"$EnableC++Exceptions"
|
||||
{
|
||||
"type" "ignore"
|
||||
}
|
||||
|
||||
"$Create/UsePCHThroughFile"
|
||||
{
|
||||
"type" "ignore"
|
||||
}
|
||||
}
|
||||
|
||||
"$SNCLinker"
|
||||
{
|
||||
// General
|
||||
"$OutputFile"
|
||||
{
|
||||
"type" "string"
|
||||
}
|
||||
|
||||
"$OutputFormat"
|
||||
{
|
||||
"ordinals"
|
||||
{
|
||||
"ELF file" "0"
|
||||
"Fake Signed ELF" "1"
|
||||
"Network FSELF" "2"
|
||||
"PRX file" "3"
|
||||
"Fake Signed PRX" "4"
|
||||
}
|
||||
}
|
||||
|
||||
"$AdditionalDependencies"
|
||||
{
|
||||
"type" "string"
|
||||
}
|
||||
|
||||
"$AdditionalLibraryDirectories"
|
||||
{
|
||||
"type" "string"
|
||||
}
|
||||
|
||||
"$IgnoreAllDefaultLibraries"
|
||||
{
|
||||
"type" "bool"
|
||||
}
|
||||
|
||||
"$UsingExceptionHandling"
|
||||
{
|
||||
"type" "bool"
|
||||
}
|
||||
|
||||
"$TOCPointerElimination"
|
||||
{
|
||||
"type" "bool"
|
||||
}
|
||||
|
||||
"$ForceSymbolReferences"
|
||||
{
|
||||
"type" "string"
|
||||
}
|
||||
|
||||
"$CallprofHierarchicalProfiling"
|
||||
{
|
||||
"type" "bool"
|
||||
}
|
||||
|
||||
"$DebugInfoAndSymbolStripping"
|
||||
{
|
||||
"ordinals"
|
||||
{
|
||||
"No Symbol Stripping" "0"
|
||||
"Strip Debug Information Only (-S)" "1"
|
||||
"Strip Symbols and Debug Information (-s)" "2"
|
||||
}
|
||||
}
|
||||
|
||||
"$UnusedFunctionAndDataStripping"
|
||||
{
|
||||
"ordinals"
|
||||
{
|
||||
"No Code Stripping" "0"
|
||||
"Strip Unused Functions Only" "1"
|
||||
"Strip Unused Functions and Data" "2"
|
||||
}
|
||||
}
|
||||
|
||||
"$ImportLibrary"
|
||||
{
|
||||
"type" "string"
|
||||
}
|
||||
|
||||
"$GenerateMapFile"
|
||||
{
|
||||
"ordinals"
|
||||
{
|
||||
"No Map File" "0"
|
||||
"Normal Map File" "1"
|
||||
"Full Map File" "2"
|
||||
}
|
||||
}
|
||||
|
||||
"$MapFileName"
|
||||
{
|
||||
"type" "string"
|
||||
}
|
||||
|
||||
"$LinkLibraryDependencies"
|
||||
{
|
||||
"type" "bool"
|
||||
}
|
||||
|
||||
"$AdditionalOptions"
|
||||
{
|
||||
"type" "string"
|
||||
}
|
||||
|
||||
"$SystemLibraries"
|
||||
{
|
||||
"type" "ignore"
|
||||
}
|
||||
|
||||
"$SystemFrameworks"
|
||||
{
|
||||
"type" "ignore"
|
||||
}
|
||||
|
||||
"$LocalFrameworks"
|
||||
{
|
||||
"type" "ignore"
|
||||
}
|
||||
}
|
||||
|
||||
"$Librarian"
|
||||
{
|
||||
"$OutputFile"
|
||||
{
|
||||
"type" "string"
|
||||
}
|
||||
|
||||
"$AdditionalDependencies"
|
||||
{
|
||||
"type" "string"
|
||||
}
|
||||
|
||||
"$WholeArchive"
|
||||
{
|
||||
"type" "bool"
|
||||
}
|
||||
|
||||
"$LinkLibraryDependencies"
|
||||
{
|
||||
"type" "bool"
|
||||
}
|
||||
}
|
||||
|
||||
$CustomBuildStep
|
||||
{
|
||||
"$CommandLine"
|
||||
{
|
||||
"type" "string"
|
||||
}
|
||||
|
||||
"$Description"
|
||||
{
|
||||
"type" "string"
|
||||
}
|
||||
|
||||
"$Outputs"
|
||||
{
|
||||
"type" "string"
|
||||
}
|
||||
|
||||
"$AdditionalDependencies"
|
||||
{
|
||||
"type" "string"
|
||||
}
|
||||
}
|
||||
|
||||
$PreBuildEvent
|
||||
{
|
||||
"$CommandLine"
|
||||
{
|
||||
"type" "string"
|
||||
}
|
||||
|
||||
"$Description"
|
||||
{
|
||||
"type" "string"
|
||||
}
|
||||
|
||||
"$ExcludedFromBuild"
|
||||
{
|
||||
"type" "bool"
|
||||
}
|
||||
}
|
||||
|
||||
$PreLinkEvent
|
||||
{
|
||||
"$CommandLine"
|
||||
{
|
||||
"type" "string"
|
||||
}
|
||||
|
||||
"$Description"
|
||||
{
|
||||
"type" "string"
|
||||
}
|
||||
|
||||
"$ExcludedFromBuild"
|
||||
{
|
||||
"type" "bool"
|
||||
}
|
||||
}
|
||||
|
||||
$PostBuildEvent
|
||||
{
|
||||
"$CommandLine"
|
||||
{
|
||||
"type" "string"
|
||||
}
|
||||
|
||||
"$Description"
|
||||
{
|
||||
"type" "string"
|
||||
}
|
||||
|
||||
"$ExcludedFromBuild"
|
||||
{
|
||||
"type" "bool"
|
||||
}
|
||||
}
|
||||
}
|
||||
1555
vpc_scripts/definitions/win32_2005.def
Normal file
1555
vpc_scripts/definitions/win32_2005.def
Normal file
File diff suppressed because it is too large
Load Diff
1878
vpc_scripts/definitions/win32_2010.def
Normal file
1878
vpc_scripts/definitions/win32_2010.def
Normal file
File diff suppressed because it is too large
Load Diff
1156
vpc_scripts/definitions/xbox360.def
Normal file
1156
vpc_scripts/definitions/xbox360.def
Normal file
File diff suppressed because it is too large
Load Diff
1319
vpc_scripts/definitions/xbox360_2010.def
Normal file
1319
vpc_scripts/definitions/xbox360_2010.def
Normal file
File diff suppressed because it is too large
Load Diff
37
vpc_scripts/dllbase.txt
Normal file
37
vpc_scripts/dllbase.txt
Normal file
@@ -0,0 +1,37 @@
|
||||
engine 0x20000000
|
||||
server game 0x22000000
|
||||
client game 0x24000000
|
||||
vphysics 0x26000000
|
||||
materialsystem 0x28000000
|
||||
shaderapidx8 0x2a000000
|
||||
studiorender 0x2c000000
|
||||
|
||||
/////////////////////////////////////
|
||||
XBOX 360 MANDATORY BASE 0x82000000-0x8BFFFFFF, (1MB blocks)
|
||||
ADD EACH XBOX 360 PORTED DLL HERE
|
||||
/////////////////////////////////////
|
||||
engine.360.dll 0x83000000 (16)
|
||||
gameui.360.dll 0x84100000 (5)
|
||||
client.360.dll 0x84700000 (?)
|
||||
server.360.dll 0x86000000 (?)
|
||||
|
||||
tier0.360.dll 0x88000000 (2)
|
||||
vstdlib.360.dll 0x88200000 (2)
|
||||
filesystem_stdio.360.dll 0x88400000 (2)
|
||||
datacache.360.dll 0x88600000 (2)
|
||||
stdshader_dbg.360.dll 0x88800000 (2)
|
||||
stdshader_dx9.360.dll 0x88A00000 (3)
|
||||
vgui2.360.dll 0x88D30000 (2)
|
||||
inputsystem.360.dll 0x88F00000 (1)
|
||||
materialsystem.360.dll 0x89000000 (4)
|
||||
vguimatsurface.360.dll 0x89500000 (3)
|
||||
vphysics.360.dll 0x89A00000 (5)
|
||||
studiorender.360.dll 0x89F00000 (7)
|
||||
launcher.360.dll 0x8A600000 (2)
|
||||
shaderapidx9.360.dll 0x8A800000 (7)
|
||||
SoundEmitterSystem.360.dll 0x8AF00000 (2)
|
||||
SceneFileCache.360.dll 0x8B100000 (1)
|
||||
bsppack.360.dll 0x8B200000 (3)
|
||||
stdshader_dx8.360.dll 0x8B500000 (2)
|
||||
appchooser.360.dll 0x8B700000 (1)
|
||||
serverbrowser.360.dll 0x8B800000 (?)
|
||||
74
vpc_scripts/generateSnapshot.pl
Normal file
74
vpc_scripts/generateSnapshot.pl
Normal file
@@ -0,0 +1,74 @@
|
||||
use strict;
|
||||
use File::Path;
|
||||
|
||||
print( "\nDeleting old backup\n" );
|
||||
system( "rmdir \/s \/q backup" );
|
||||
|
||||
print( "\nMoving previous snapshot to backup\n" );
|
||||
system( "ren snapshot backup" );
|
||||
|
||||
print( "\nSearching for .vcproj files...\n" );
|
||||
|
||||
# Find all vcproj's in src
|
||||
system( "dir \/s U:\\main\\src\\*.vcproj \> vcproj.txt" );
|
||||
|
||||
# Read in the source file
|
||||
|
||||
open(INFILE, "vcproj.txt" );
|
||||
my @lines = <INFILE>;
|
||||
close( INFILE );
|
||||
|
||||
# Process the file one line at a time
|
||||
|
||||
my @output;
|
||||
|
||||
# print the header lines
|
||||
push( @output, "\/\/ VGC file\n" );
|
||||
push( @output, "\n" );
|
||||
push( @output, "\/\/\n" );
|
||||
push( @output, "\/\/ Project definitions\n" );
|
||||
push( @output, "\/\/\n" );
|
||||
push( @output, "\n" );
|
||||
|
||||
for( my($i) = 0; $i < @lines; ++$i )
|
||||
{
|
||||
# Grab the path
|
||||
if ( $lines[$i] =~ /Directory of U:\\main\\src\\(.*)/ )
|
||||
{
|
||||
my($path) = $1;
|
||||
++$i;
|
||||
|
||||
# ignore projects in vpc_scripts!
|
||||
if ( $path =~ /vpc_scripts/ )
|
||||
{
|
||||
next;
|
||||
}
|
||||
|
||||
# Grab the .vcproj filenames
|
||||
while ( $lines[++$i] =~ /[\d+\/]{2}\d+\s+\S+\s+\w{2}\s+\S+\s+(\w+).vcproj/ )
|
||||
{
|
||||
if ( $1 =~ /_x360/ )
|
||||
{
|
||||
next;
|
||||
}
|
||||
my($projectName) = $1;
|
||||
|
||||
my($fullpath) = join('\\', "snapshot", $path );
|
||||
mkpath ($fullpath);
|
||||
|
||||
my($fullname) = join('\\', $fullpath, $projectName );
|
||||
|
||||
print "\nProcessing $projectName\n\n";
|
||||
|
||||
# generate the vpc
|
||||
system ( "generateVPC2005.pl ..\\$path\\$projectName -o $fullpath" );
|
||||
|
||||
# copy the .vcproj into the script tree
|
||||
system ( "copy /y ..\\$path\\$projectName.vcproj $fullpath" );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
1668
vpc_scripts/generateVPC2003.pl
Normal file
1668
vpc_scripts/generateVPC2003.pl
Normal file
File diff suppressed because it is too large
Load Diff
1842
vpc_scripts/generateVPC2005.pl
Normal file
1842
vpc_scripts/generateVPC2005.pl
Normal file
File diff suppressed because it is too large
Load Diff
74
vpc_scripts/generatesimpleSnapshot.pl
Normal file
74
vpc_scripts/generatesimpleSnapshot.pl
Normal file
@@ -0,0 +1,74 @@
|
||||
use strict;
|
||||
use File::Path;
|
||||
|
||||
print( "\nDeleting old backup\n" );
|
||||
system( "rmdir \/s \/q backup" );
|
||||
|
||||
print( "\nMoving previous snapshot to backup\n" );
|
||||
system( "ren snapshot backup" );
|
||||
|
||||
print( "\nSearching for .vcproj files...\n" );
|
||||
|
||||
# Find all vcproj's in src
|
||||
system( "dir \/s U:\\main\\src\\*.vcproj \> vcproj.txt" );
|
||||
|
||||
# Read in the source file
|
||||
|
||||
open(INFILE, "vcproj.txt" );
|
||||
my @lines = <INFILE>;
|
||||
close( INFILE );
|
||||
|
||||
# Process the file one line at a time
|
||||
|
||||
my @output;
|
||||
|
||||
# print the header lines
|
||||
push( @output, "\/\/ VGC file\n" );
|
||||
push( @output, "\n" );
|
||||
push( @output, "\/\/\n" );
|
||||
push( @output, "\/\/ Project definitions\n" );
|
||||
push( @output, "\/\/\n" );
|
||||
push( @output, "\n" );
|
||||
|
||||
for( my($i) = 0; $i < @lines; ++$i )
|
||||
{
|
||||
# Grab the path
|
||||
if ( $lines[$i] =~ /Directory of U:\\main\\src\\(.*)/ )
|
||||
{
|
||||
my($path) = $1;
|
||||
++$i;
|
||||
|
||||
# ignore projects in vpc_scripts!
|
||||
if ( $path =~ /vpc_scripts/ )
|
||||
{
|
||||
next;
|
||||
}
|
||||
|
||||
# Grab the .vcproj filenames
|
||||
while ( $lines[++$i] =~ /[\d+\/]{2}\d+\s+\S+\s+\w{2}\s+\S+\s+(\w+).vcproj/ )
|
||||
{
|
||||
if ( $1 =~ /_x360/ )
|
||||
{
|
||||
next;
|
||||
}
|
||||
my($projectName) = $1;
|
||||
|
||||
my($fullpath) = join('\\', "snapshot", $path );
|
||||
mkpath ($fullpath);
|
||||
|
||||
my($fullname) = join('\\', $fullpath, $projectName );
|
||||
|
||||
print "\nProcessing $projectName\n\n";
|
||||
|
||||
# generate the vpc
|
||||
system ( "generatesimpleVPC.pl ..\\$path\\$projectName -o $fullpath" );
|
||||
|
||||
# copy the .vcproj into the script tree
|
||||
system ( "copy /y ..\\$path\\$projectName.vcproj $fullpath" );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
1669
vpc_scripts/generatesimpleVPC.pl
Normal file
1669
vpc_scripts/generatesimpleVPC.pl
Normal file
File diff suppressed because it is too large
Load Diff
874
vpc_scripts/groups.vgc
Normal file
874
vpc_scripts/groups.vgc
Normal file
@@ -0,0 +1,874 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// GROUPS.VGC
|
||||
//
|
||||
// Group Configurations for all Source(TM) Projects
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
///////////////////////
|
||||
// Group definitions //
|
||||
///////////////////////
|
||||
|
||||
$Group "gamedlls"
|
||||
{
|
||||
"client"
|
||||
"server"
|
||||
}
|
||||
|
||||
|
||||
$Group "modo302"
|
||||
{
|
||||
"lxVsDmxIO_Modo302"
|
||||
}
|
||||
|
||||
$Group "python"
|
||||
{
|
||||
"valvePython_python2.5"
|
||||
"vp_python2.5"
|
||||
"vslib_python2.5"
|
||||
"vs_python2.5"
|
||||
}
|
||||
|
||||
$Group "shaders"
|
||||
{
|
||||
"shadercompile_dll"
|
||||
"shadercompile_launcher"
|
||||
"remoteshadercompile"
|
||||
"shaderapiempty"
|
||||
"shaderlib"
|
||||
"stdshader_dbg"
|
||||
"stdshader_dx6"
|
||||
"stdshader_dx7"
|
||||
"stdshader_dx8"
|
||||
"stdshader_dx9"
|
||||
}
|
||||
|
||||
$Group "ShaderCompile"
|
||||
{
|
||||
"filesystem_stdio"
|
||||
"shadercompile_dll"
|
||||
"shadercompile_launcher"
|
||||
"remoteshadercompile"
|
||||
"tier0"
|
||||
"tier1"
|
||||
"tier2"
|
||||
"vmpi"
|
||||
"vstdlib"
|
||||
"coroutine_osx"
|
||||
}
|
||||
|
||||
$Group "physics"
|
||||
{
|
||||
"hk_base"
|
||||
"hk_math"
|
||||
"havana_constraints"
|
||||
"ivp_compactbuilder"
|
||||
"ivp_physics"
|
||||
"vphysics"
|
||||
}
|
||||
|
||||
$Group "xbox_utils"
|
||||
{
|
||||
"MakeGameData"
|
||||
"VXConsole"
|
||||
"xbspinfo"
|
||||
}
|
||||
|
||||
// All projects required to build the console version
|
||||
$Group "console"
|
||||
{
|
||||
"appframework"
|
||||
"bitmap"
|
||||
"bzip2"
|
||||
"choreoobjects"
|
||||
"client"
|
||||
"datacache"
|
||||
"dmxloader"
|
||||
"engine"
|
||||
"filesystem_stdio"
|
||||
"gameui"
|
||||
"havana_constraints"
|
||||
"hk_base"
|
||||
"hk_math"
|
||||
"inputsystem"
|
||||
"ivp_compactbuilder"
|
||||
"ivp_physics"
|
||||
"launcher"
|
||||
"launcher_main"
|
||||
"materialsystem"
|
||||
"mathlib"
|
||||
"matsys_controls"
|
||||
"particles"
|
||||
"raytrace"
|
||||
"scenefilecache"
|
||||
"server"
|
||||
"shaderapidx9"
|
||||
"shaderlib"
|
||||
"simdtest"
|
||||
"soundemittersystem"
|
||||
"stdshader_dx9"
|
||||
"studiorender"
|
||||
"tier0"
|
||||
"tier1"
|
||||
"tier2"
|
||||
"tier3"
|
||||
"togl"
|
||||
"vgui_controls"
|
||||
"vgui_dll"
|
||||
"vgui_surfacelib"
|
||||
"vguimatsurface"
|
||||
"vphysics"
|
||||
"vstdlib"
|
||||
"vtf"
|
||||
"vxbdm"
|
||||
"coroutine_osx"
|
||||
}
|
||||
|
||||
$Group "game"
|
||||
{
|
||||
"appframework"
|
||||
"bitmap"
|
||||
"bsppack"
|
||||
"bzip2"
|
||||
"choreoobjects"
|
||||
"client"
|
||||
"datacache"
|
||||
"datamodel"
|
||||
"dedicated"
|
||||
"dedicated_main"
|
||||
"dmserializers"
|
||||
"dmxloader"
|
||||
"engine"
|
||||
"fbxutils"
|
||||
"filesystem_stdio"
|
||||
"gameui"
|
||||
// "gc"
|
||||
"gcsdk"
|
||||
// "gcsdk_gc"
|
||||
"haptics"
|
||||
"havana_constraints"
|
||||
"hk_base"
|
||||
"hk_math"
|
||||
"inputsystem"
|
||||
"itemtest_lib"
|
||||
"ivp_compactbuilder"
|
||||
"ivp_physics"
|
||||
"launcher"
|
||||
"launcher_main"
|
||||
"lzma"
|
||||
"materialsystem"
|
||||
"mathlib"
|
||||
"matsys_controls"
|
||||
"movieobjects"
|
||||
"particles"
|
||||
"raytrace"
|
||||
"replay"
|
||||
"replay_common"
|
||||
"scenefilecache"
|
||||
"server"
|
||||
"shaderapidx9"
|
||||
"shaderlib"
|
||||
"simdtest"
|
||||
"socketlib"
|
||||
"soundemittersystem"
|
||||
"sourcevr"
|
||||
"stdshader_dbg"
|
||||
"stdshader_dx6"
|
||||
"stdshader_dx7"
|
||||
"stdshader_dx8"
|
||||
"stdshader_dx9"
|
||||
"studiorender"
|
||||
"tier0"
|
||||
"tier1"
|
||||
"tier2"
|
||||
"tier3"
|
||||
"togl"
|
||||
"vgui_controls"
|
||||
"vgui_dll"
|
||||
"vgui_surfacelib"
|
||||
"vguimatsurface"
|
||||
"vphysics"
|
||||
"vpklib"
|
||||
"vstdlib"
|
||||
"vtf"
|
||||
"coroutine_osx"
|
||||
"zlib"
|
||||
}
|
||||
|
||||
$Group "everything"
|
||||
{
|
||||
"socketlib"
|
||||
"actbusy"
|
||||
"adminserver"
|
||||
"appframework"
|
||||
"bitmap"
|
||||
"bsppack"
|
||||
"bspzip"
|
||||
"bugreporter"
|
||||
"bugreporter_filequeue"
|
||||
"bugreporter_public"
|
||||
"bugreporter_text"
|
||||
"bzip2"
|
||||
"captioncompiler"
|
||||
"cardstats"
|
||||
"choreoobjects"
|
||||
"classcheck"
|
||||
"client"
|
||||
"commedit"
|
||||
"cubelight"
|
||||
"datacache"
|
||||
"datamodel"
|
||||
"dbmon"
|
||||
"dedicated"
|
||||
"dedicated_main"
|
||||
"dist2alpha"
|
||||
"dme_controls"
|
||||
"dmserializers"
|
||||
"dmxconvert"
|
||||
"dmxedit"
|
||||
"dmxloader"
|
||||
"dmxtest"
|
||||
"dumpmatsyshelp"
|
||||
"dxsupportclean"
|
||||
"elementviewer"
|
||||
"engine"
|
||||
"ep2_deathmap"
|
||||
"fbx2dmx"
|
||||
"fbxutils"
|
||||
"fgdlib"
|
||||
"filesystem_stdio"
|
||||
"filesystemopendialog"
|
||||
"finddbgdll"
|
||||
"foundry"
|
||||
"gameevents"
|
||||
"gameui"
|
||||
// "gc"
|
||||
"gcsdk"
|
||||
// "gcsdk_gc"
|
||||
"getbugs"
|
||||
"glview"
|
||||
"hammer_dll"
|
||||
"hammer_launcher"
|
||||
"haptics"
|
||||
"havana_constraints"
|
||||
"height2normal"
|
||||
"height2ssbump"
|
||||
"hk_base"
|
||||
"hk_math"
|
||||
"hlfaceposer"
|
||||
"hlmv"
|
||||
"ifm"
|
||||
"ihvtest1"
|
||||
"inputsystem"
|
||||
"inputtest"
|
||||
"itemtest_com"
|
||||
"itemtest_lib"
|
||||
"ivp_compactbuilder"
|
||||
"ivp_physics"
|
||||
"jpeglib"
|
||||
"kvc"
|
||||
"launcher"
|
||||
"launcher_main"
|
||||
"localization_check"
|
||||
"lua"
|
||||
"lxVsDmxIO_Modo302"
|
||||
"lzma"
|
||||
"makegamedata"
|
||||
"makescenesimage"
|
||||
"materialsystem"
|
||||
"materialsystemtest"
|
||||
"mathlib"
|
||||
"matsys_controls"
|
||||
"matsys_regressiontest"
|
||||
"mdlcheck"
|
||||
"mdlinfo"
|
||||
"mdllib"
|
||||
"mdlobjects"
|
||||
"mkentitypatch"
|
||||
"mksheet"
|
||||
"modelbrowser"
|
||||
"motionmapper"
|
||||
"movieobjects"
|
||||
"mxtoolkitwin32"
|
||||
"mysql_wrapper"
|
||||
"newdat"
|
||||
"normal2ssbump"
|
||||
"nvtristriplib"
|
||||
"p4lib"
|
||||
"paginate"
|
||||
"panel_zoo"
|
||||
"particles"
|
||||
"pet"
|
||||
"pfm2tgas"
|
||||
"pfmcomp"
|
||||
"phonemeextractor"
|
||||
"phonemeextractor_ims"
|
||||
"psdinfo"
|
||||
"qc_eyes"
|
||||
"raytrace"
|
||||
"remoteshadercompile"
|
||||
"replay"
|
||||
"replay_common"
|
||||
"rt_test"
|
||||
"sampletool"
|
||||
"scenefilecache"
|
||||
"scenemanager"
|
||||
"sceneviewer"
|
||||
"scratchpad3dviewer"
|
||||
"sdklauncher"
|
||||
"sdktoolslib"
|
||||
"server"
|
||||
"serverbrowser"
|
||||
"serverplugin_empty"
|
||||
"sfmgen"
|
||||
"sfmobjects"
|
||||
"shaderapidx9"
|
||||
"shaderapiempty"
|
||||
"shaderapitest"
|
||||
"shadercompile_dll"
|
||||
"shadercompile_launcher"
|
||||
"shaderlib"
|
||||
"simdtest"
|
||||
"smtpmail"
|
||||
"soundemittersystem"
|
||||
"soundsystem"
|
||||
"sourcevr"
|
||||
"splitskybox"
|
||||
"stdshader_dbg"
|
||||
"stdshader_dx6"
|
||||
"stdshader_dx7"
|
||||
"stdshader_dx8"
|
||||
"stdshader_dx9"
|
||||
"studiomdl"
|
||||
"studiorender"
|
||||
"symbolstoreupdate"
|
||||
"tagbuild"
|
||||
"testprocess"
|
||||
"texturecompile_dll"
|
||||
"texturecompile_launcher"
|
||||
"texturesynth"
|
||||
"tgadiff"
|
||||
"tgamse"
|
||||
"tier0"
|
||||
"tier1"
|
||||
"tier1test"
|
||||
"tier2"
|
||||
"tier2test"
|
||||
"tier3"
|
||||
"tier3test"
|
||||
"togl"
|
||||
"toolutils"
|
||||
"unicode"
|
||||
"unitlib"
|
||||
"unittest"
|
||||
"unusedcontent"
|
||||
"valvemaya_maya2009"
|
||||
"valvemaya_maya2010"
|
||||
"valvemaya_maya2011"
|
||||
"valvemaya_maya2012"
|
||||
"valvemaya_maya2013"
|
||||
"valvePython_python2.5"
|
||||
"vaudio_miles"
|
||||
"vaudio_speex"
|
||||
"vaudio_celt"
|
||||
"vbsp"
|
||||
"vbspinfo"
|
||||
"vcd_sound_check"
|
||||
"vcdblock"
|
||||
"vcdimport"
|
||||
"vcdupdate"
|
||||
"vconfig"
|
||||
"vgui_controls"
|
||||
"vgui_dll"
|
||||
"vgui_surfacelib"
|
||||
"vguimatsurface"
|
||||
"vice"
|
||||
"video_bink"
|
||||
"video_quicktime"
|
||||
"video_webm"
|
||||
"video_services"
|
||||
"vlocalize"
|
||||
"vmf_tweak"
|
||||
"vmpi"
|
||||
"vmpi_job_search"
|
||||
"vmpi_job_watch"
|
||||
"vmpi_service"
|
||||
"vmpi_service_ui"
|
||||
"vmpi_services_watch"
|
||||
"vmpi_transfer"
|
||||
"vmt"
|
||||
"vmtcheck"
|
||||
"vp_python2.5"
|
||||
"vp4"
|
||||
"vphysics"
|
||||
"vpk"
|
||||
"vpklib"
|
||||
"vrad_dll"
|
||||
"vrad_launcher"
|
||||
"vsblendeditor_maya2009"
|
||||
"vsdmxio_maya2009"
|
||||
"vsdmxio_maya2010"
|
||||
"vsdmxio_maya2011"
|
||||
"vsdmxio_maya2012"
|
||||
"vsdmxio_maya2013"
|
||||
"vsmaster_maya2009"
|
||||
"vsmaster_maya2010"
|
||||
"vsmaster_maya2011"
|
||||
"vsmaster_maya2012"
|
||||
"vsmaster_maya2013"
|
||||
"vsmdlio_maya2009"
|
||||
"vsmdlio_maya2010"
|
||||
"vsmdlio_maya2011"
|
||||
"vsmdlio_maya2012"
|
||||
"vsmdlio_maya2013"
|
||||
"vstdlib"
|
||||
"vstOverlap_maya2009"
|
||||
"vstoverlap_maya2010"
|
||||
"vstoverlap_maya2011"
|
||||
"vstoverlap_maya2012"
|
||||
"vstsmdio_maya2009"
|
||||
"vstsmdio_maya2010"
|
||||
"vstsmdio_maya2011"
|
||||
"vstsmdio_maya2012"
|
||||
"vstsmdio_maya2013"
|
||||
"vstutils_maya2009"
|
||||
"vstutils_maya2010"
|
||||
"vstutils_maya2011"
|
||||
"vstutils_maya2012"
|
||||
"vstutils_maya2013"
|
||||
"vsvmfio_maya2009"
|
||||
"vsvmfio_maya2010"
|
||||
"vsvmfio_maya2011"
|
||||
"vsvmfio_maya2012"
|
||||
"vsvmfio_maya2013"
|
||||
"vtex_dll"
|
||||
"vtex_launcher"
|
||||
"vtf"
|
||||
"vtf2tga"
|
||||
"vtfdiff"
|
||||
"vtfscrew"
|
||||
"vvis_dll"
|
||||
"vvis_launcher"
|
||||
"zlib"
|
||||
"coroutine_osx"
|
||||
|
||||
// "vs_python2.5"
|
||||
// "vslib_python2.5"
|
||||
}
|
||||
|
||||
$Group "dedicated"
|
||||
{
|
||||
"socketlib"
|
||||
"appframework"
|
||||
"bitmap"
|
||||
"bzip2"
|
||||
"choreoobjects"
|
||||
"coroutine_osx"
|
||||
"datacache"
|
||||
"dedicated"
|
||||
"dedicated_main"
|
||||
"dmxloader"
|
||||
"engine"
|
||||
"gcsdk"
|
||||
"havana_constraints"
|
||||
"hk_base"
|
||||
"hk_math"
|
||||
"ivp_compactbuilder"
|
||||
"ivp_physics"
|
||||
"jpeglib"
|
||||
"lzma"
|
||||
"materialsystem"
|
||||
"mathlib"
|
||||
"particles"
|
||||
"replay"
|
||||
"replay_common"
|
||||
"scenefilecache"
|
||||
"server"
|
||||
"shaderapiempty"
|
||||
"shaderlib"
|
||||
"soundemittersystem"
|
||||
"studiorender"
|
||||
"tier0"
|
||||
"tier1"
|
||||
"tier2"
|
||||
"tier3"
|
||||
"unitlib"
|
||||
"vphysics"
|
||||
"vpklib"
|
||||
"vstdlib"
|
||||
"vtf"
|
||||
}
|
||||
|
||||
// A dummy group so that we can include the dedicated project by itself.
|
||||
// You can't do this with +dedicated, because there's a group named dedicated
|
||||
$Group "dedicated_dll"
|
||||
{
|
||||
"dedicated"
|
||||
}
|
||||
|
||||
$Group "port"
|
||||
{
|
||||
"tier0"
|
||||
"tier1"
|
||||
"tier2"
|
||||
"vstdlib"
|
||||
"tier3"
|
||||
"mathlib"
|
||||
"appframework"
|
||||
"dmxloader"
|
||||
"particles"
|
||||
"unitlib"
|
||||
"soundemittersystem"
|
||||
"vtf"
|
||||
"choreoobjects"
|
||||
"bitmap"
|
||||
"studiorender"
|
||||
"scenefilecache"
|
||||
"datacache"
|
||||
"hk_base"
|
||||
"hk_math"
|
||||
"havana_constraints"
|
||||
"ivp_physics"
|
||||
"ivp_compactbuilder"
|
||||
"vphysics"
|
||||
"shaderlib"
|
||||
"shaderapiempty"
|
||||
"materialsystem"
|
||||
"matsys_controls"
|
||||
"vgui_controls"
|
||||
"vaudio_miles"
|
||||
"vaudio_speex"
|
||||
"vaudio_celt"
|
||||
"engine"
|
||||
"choreoobjects"
|
||||
"launcher_main"
|
||||
"launcher"
|
||||
"filesystem_stdio"
|
||||
"bsppack"
|
||||
"bzip2"
|
||||
"raytrace"
|
||||
"jpeglib"
|
||||
"inputsystem"
|
||||
"vgui_surfacelib"
|
||||
"vgui_dll"
|
||||
"vguimatsurface"
|
||||
"server"
|
||||
"gcsdk"
|
||||
"client"
|
||||
"togl"
|
||||
"shaderapidx9"
|
||||
"stdshader_dx9"
|
||||
"bugreporter_filequeue"
|
||||
"bugreporter_public"
|
||||
"lzma"
|
||||
"networksystem"
|
||||
|
||||
"simdtest"
|
||||
"lua"
|
||||
"coroutine_osx"
|
||||
"socketlib"
|
||||
"gameui"
|
||||
"replay"
|
||||
"replay_common"
|
||||
"serverbrowser"
|
||||
"sourcevr"
|
||||
"vtex_dll"
|
||||
"vtf"
|
||||
"vpk"
|
||||
"vpklib"
|
||||
"vtf2tga"
|
||||
"video_bink"
|
||||
"video_quicktime"
|
||||
"video_webm"
|
||||
"video_services"
|
||||
}
|
||||
|
||||
// Abbreviated version of the 'everything' group for Source licensees
|
||||
$Group "sourcelicensee"
|
||||
{
|
||||
"socketlib"
|
||||
"actbusy"
|
||||
"adminserver"
|
||||
"appframework"
|
||||
"bitmap"
|
||||
"bsppack"
|
||||
"bspzip"
|
||||
"bugreporter"
|
||||
"bugreporter_filequeue"
|
||||
"bugreporter_public"
|
||||
"bugreporter_text"
|
||||
"bzip2"
|
||||
"captioncompiler"
|
||||
"choreoobjects"
|
||||
"classcheck"
|
||||
"client"
|
||||
"commedit"
|
||||
"cubelight"
|
||||
"datacache"
|
||||
"datamodel"
|
||||
"dbmon"
|
||||
"dedicated"
|
||||
"dedicated_main"
|
||||
"dist2alpha"
|
||||
"dme_controls"
|
||||
"dmserializers"
|
||||
"dmxconvert"
|
||||
"dmxedit"
|
||||
"dmxloader"
|
||||
"dmxtest"
|
||||
"dumpmatsyshelp"
|
||||
"elementviewer"
|
||||
"engine"
|
||||
"ep2_deathmap"
|
||||
"fgdlib"
|
||||
"filesystem_stdio"
|
||||
"filesystemopendialog"
|
||||
"finddbgdll"
|
||||
"foundry"
|
||||
"gameui"
|
||||
"getbugs"
|
||||
"glview"
|
||||
"hammer_dll"
|
||||
"hammer_launcher"
|
||||
"height2normal"
|
||||
"height2ssbump"
|
||||
"hlfaceposer"
|
||||
"hlmv"
|
||||
"ihvtest1"
|
||||
"inputsystem"
|
||||
"inputtest"
|
||||
"jpeglib"
|
||||
"kvc"
|
||||
"launcher"
|
||||
"launcher_main"
|
||||
"localization_check"
|
||||
"lzma"
|
||||
"makegamedata"
|
||||
"makescenesimage"
|
||||
"materialsystem"
|
||||
"materialsystemtest"
|
||||
"mathlib"
|
||||
"matsys_controls"
|
||||
"matsys_regressiontest"
|
||||
"mdlcheck"
|
||||
"mdllib"
|
||||
"mkentitypatch"
|
||||
"mksheet"
|
||||
"modelbrowser"
|
||||
"motionmapper"
|
||||
"movieobjects"
|
||||
"mxtoolkitwin32"
|
||||
"mysql_wrapper"
|
||||
"newdat"
|
||||
"normal2ssbump"
|
||||
"nvtristriplib"
|
||||
"p4lib"
|
||||
"paginate"
|
||||
"panel_zoo"
|
||||
"particles"
|
||||
"pet"
|
||||
"pfm2tgas"
|
||||
"pfmcomp"
|
||||
"psdinfo"
|
||||
"qc_eyes"
|
||||
"raytrace"
|
||||
"remoteshadercompile"
|
||||
"rt_test"
|
||||
"sampletool"
|
||||
"scenefilecache"
|
||||
"scenemanager"
|
||||
"sceneviewer"
|
||||
"scratchpad3dviewer"
|
||||
"sdklauncher"
|
||||
"server"
|
||||
"serverbrowser"
|
||||
"serverplugin_empty"
|
||||
"shaderapidx9"
|
||||
"shaderapiempty"
|
||||
"shaderapitest"
|
||||
"shadercompile_dll"
|
||||
"shadercompile_launcher"
|
||||
"shaderlib"
|
||||
"simdtest"
|
||||
"smtpmail"
|
||||
"soundemittersystem"
|
||||
"splitskybox"
|
||||
"stdshader_dbg"
|
||||
"stdshader_dx6"
|
||||
"stdshader_dx7"
|
||||
"stdshader_dx8"
|
||||
"stdshader_dx9"
|
||||
"studiomdl"
|
||||
"studiorender"
|
||||
"symbolstoreupdate"
|
||||
"tagbuild"
|
||||
"testprocess"
|
||||
"texturecompile_dll"
|
||||
"texturecompile_launcher"
|
||||
"texturesynth"
|
||||
"tgadiff"
|
||||
"tgamse"
|
||||
"tier0"
|
||||
"tier1"
|
||||
"tier1test"
|
||||
"tier2"
|
||||
"tier2test"
|
||||
"tier3"
|
||||
"tier3test"
|
||||
"toolutils"
|
||||
"unicode"
|
||||
"unitlib"
|
||||
"unittest"
|
||||
"unusedcontent"
|
||||
"valvemaya_maya2009"
|
||||
"vbsp"
|
||||
"vbspinfo"
|
||||
"vcd_sound_check"
|
||||
"vcdblock"
|
||||
"vcdimport"
|
||||
"vcdupdate"
|
||||
"vconfig"
|
||||
"vgui_controls"
|
||||
"vgui_dll"
|
||||
"vgui_surfacelib"
|
||||
"vguimatsurface"
|
||||
"vice"
|
||||
"vlocalize"
|
||||
"vmf_tweak"
|
||||
"vmpi"
|
||||
"vmpi_job_search"
|
||||
"vmpi_job_watch"
|
||||
"vmpi_service"
|
||||
"vmpi_service_ui"
|
||||
"vmpi_services_watch"
|
||||
"vmpi_transfer"
|
||||
"vmt"
|
||||
"vmtcheck"
|
||||
"vp4"
|
||||
"vrad_dll"
|
||||
"vrad_launcher"
|
||||
"vsdmxio_maya2009"
|
||||
"vsmaster_maya2009"
|
||||
"vstdlib"
|
||||
"vstOverlap_maya2009"
|
||||
"vstutils_maya2009"
|
||||
"vsvmfio_maya2009"
|
||||
"vtex_dll"
|
||||
"vtex_launcher"
|
||||
"vtf"
|
||||
"vtf2tga"
|
||||
"vtfdiff"
|
||||
"vtfscrew"
|
||||
"vvis_dll"
|
||||
"vvis_launcher"
|
||||
}
|
||||
|
||||
// All projects required to build the console version
|
||||
$Group "licensee_console"
|
||||
{
|
||||
"appframework"
|
||||
"bitmap"
|
||||
"bsppack"
|
||||
"bzip2"
|
||||
"choreoobjects"
|
||||
"client"
|
||||
"datacache"
|
||||
"dmxloader"
|
||||
"engine"
|
||||
"filesystem_stdio"
|
||||
"gameui"
|
||||
"inputsystem"
|
||||
"launcher"
|
||||
"launcher_main"
|
||||
"materialsystem"
|
||||
"mathlib"
|
||||
"matsys_controls"
|
||||
"particles"
|
||||
"raytrace"
|
||||
"scenefilecache"
|
||||
"server"
|
||||
"shaderapidx9"
|
||||
"shaderlib"
|
||||
"simdtest"
|
||||
"soundemittersystem"
|
||||
"stdshader_dx9"
|
||||
"studiorender"
|
||||
"tier0"
|
||||
"tier1"
|
||||
"tier2"
|
||||
"tier3"
|
||||
"vgui_controls"
|
||||
"vgui_dll"
|
||||
"vgui_surfacelib"
|
||||
"vguimatsurface"
|
||||
"vstdlib"
|
||||
"vtf"
|
||||
"vxbdm"
|
||||
"coroutine_osx"
|
||||
}
|
||||
|
||||
$Group "dmxtools"
|
||||
{
|
||||
"actbusy"
|
||||
"commedit"
|
||||
"ifm"
|
||||
"pet"
|
||||
"sampletool"
|
||||
"toolutils"
|
||||
"vcdblock"
|
||||
"vmt"
|
||||
"datamodel"
|
||||
//"demo_polish"
|
||||
"dme_controls"
|
||||
//"dmeutils"
|
||||
"dmserializers"
|
||||
"dmxconvert"
|
||||
"dmxedit"
|
||||
//"dmxeditlib"
|
||||
"dmxtest"
|
||||
"elementviewer"
|
||||
"hammer_dll"
|
||||
"hlfaceposer"
|
||||
"lxVsDmxIO_modo302"
|
||||
//"lxvsdmxio_modo401"
|
||||
//"mdlcompile"
|
||||
"mdlobjects"
|
||||
"modelbrowser"
|
||||
"movieobjects"
|
||||
//"phogen"
|
||||
"sceneviewer"
|
||||
"sfmgen"
|
||||
"sfmobjects"
|
||||
"studiomdl"
|
||||
//"mdlcompile"
|
||||
//"vguieditor"
|
||||
"vsdmxio_maya2009"
|
||||
//"vsdmxio_maya2010"
|
||||
"vsmaster_maya2009"
|
||||
//"vsmaster_maya2010"
|
||||
}
|
||||
|
||||
$Group "gctests"
|
||||
{
|
||||
"tier0"
|
||||
"tier1"
|
||||
"vstdlib"
|
||||
"gcsdk"
|
||||
"gcsdk_gc"
|
||||
"gctestdll"
|
||||
"gctestsuite"
|
||||
}
|
||||
|
||||
$Group "gcsdk_all"
|
||||
{
|
||||
"gcsdk"
|
||||
"gcsdk_gc"
|
||||
}
|
||||
|
||||
// All projects that should be built for 64-bit, which is currently
|
||||
// for 64-bit Windows only. Dependent projects aren't listed so
|
||||
// @all_64 must be passed to VPC to pull in the dependents.
|
||||
$Group "all_64"
|
||||
{
|
||||
"gc"
|
||||
"filesystem_stdio"
|
||||
}
|
||||
108
vpc_scripts/loadaddress.vpc
Normal file
108
vpc_scripts/loadaddress.vpc
Normal file
@@ -0,0 +1,108 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// LOADADDRESS.VPC
|
||||
//
|
||||
// Contains the DLL/EXE Load Addresses. Generates the $LOADADDRESS_??? Macro from
|
||||
// an easily updated table. This feature is primarily to facilitate the mandatory
|
||||
// fixed address specification of 360 DLLs and thus efficient 360 packing of DLLs
|
||||
// into memory.
|
||||
//
|
||||
// Format:
|
||||
// $LoadAddressMacro <MacroName>
|
||||
// {
|
||||
// <ProjectName> <BaseAddress>
|
||||
// }
|
||||
//
|
||||
// $LoadAddressMacroAuto <MacroName> <BaseAddress>
|
||||
// {
|
||||
// <ProjectName> <Length>
|
||||
// }
|
||||
//
|
||||
// If "ProjectName" is not found, the "MacroName" will not be updated.
|
||||
// "ProjectName" is the internal short project name reference and is usually the name of
|
||||
// the project inside a group definition.
|
||||
//
|
||||
// "Length" is either floating point MB or integer bytes, and is used to successively
|
||||
// to determine the next base address.
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
// Explicitly defined "empty" only for WINDOWS only because they are not required for WINDOWS projects
|
||||
$Macro LOADADDRESS_DEVELOPMENT " " [$WINDOWS]
|
||||
$Macro LOADADDRESS_RETAIL " " [$WINDOWS]
|
||||
|
||||
$LoadAddressMacro LOADADDRESS_DEVELOPMENT
|
||||
{
|
||||
launcher_main 0x82000000 [$X360]
|
||||
simdtest 0x82000000 [$X360]
|
||||
}
|
||||
|
||||
$LoadAddressMacro LOADADDRESS_RETAIL
|
||||
{
|
||||
launcher_main 0x82000000 [$X360]
|
||||
simdtest 0x82000000 [$X360]
|
||||
}
|
||||
|
||||
// Development versions require more memory to accomodate debug builds, release builds have to match debug for hybrid builds
|
||||
$LoadAddressMacroAuto LOADADDRESS_DEVELOPMENT 0x82200000 [$X360]
|
||||
{
|
||||
// top of chain, due to licensee lack of source restrictions
|
||||
vphysics 5.5
|
||||
|
||||
tier0 2.0
|
||||
vstdlib 2.0
|
||||
filesystem_stdio 2.5
|
||||
datacache 2.5
|
||||
inputsystem 1.5
|
||||
launcher 2.0
|
||||
SoundEmitterSystem 2.0
|
||||
SceneFileCache 1.5
|
||||
vgui_dll 2.5
|
||||
gameui 6.0
|
||||
|
||||
materialsystem 5.0
|
||||
vguimatsurface 4.0
|
||||
shaderapidx9 11.0
|
||||
stdshader_dx9 4.5
|
||||
studiorender 7.5
|
||||
|
||||
engine 17.5
|
||||
client 17.5
|
||||
server 25.5
|
||||
|
||||
// transient DLLs
|
||||
bsppack 3.0
|
||||
appchooser 8.5
|
||||
vxbdm 0.5
|
||||
}
|
||||
|
||||
// Retail versions are expected to be minimally packed
|
||||
$LoadAddressMacroAuto LOADADDRESS_RETAIL 0x82200000 [$X360]
|
||||
{
|
||||
// top of chain, due to licensee lack of source restrictions
|
||||
vphysics 2.5
|
||||
|
||||
tier0 1.0
|
||||
vstdlib 1.0
|
||||
filesystem_stdio 1.0
|
||||
datacache 1.0
|
||||
inputsystem 1.0
|
||||
launcher 1.0
|
||||
SoundEmitterSystem 1.0
|
||||
SceneFileCache 1.0
|
||||
vgui_dll 1.0
|
||||
gameui 2.0
|
||||
|
||||
materialsystem 1.5
|
||||
vguimatsurface 1.5
|
||||
shaderapidx9 4.0
|
||||
stdshader_dx9 1.5
|
||||
studiorender 4.5
|
||||
|
||||
engine 6.0
|
||||
client 10.5
|
||||
server 15.5
|
||||
|
||||
// transient DLLs
|
||||
bsppack 1.5
|
||||
appchooser 1.5
|
||||
vxbdm 0.5
|
||||
}
|
||||
5
vpc_scripts/platform_dirs.vpc
Normal file
5
vpc_scripts/platform_dirs.vpc
Normal file
@@ -0,0 +1,5 @@
|
||||
$Macro PLATSUBDIR "\." [$WIN32]
|
||||
$Macro PLATSUBDIR "\x64" [$WIN64]
|
||||
$Macro PLATSUBDIR "\." [$X360]
|
||||
$Macro PLATSUBDIR "\linux32" [$LINUX32]
|
||||
$Macro PLATSUBDIR "\osx32" [$OSX32]
|
||||
1787
vpc_scripts/projects.vgc
Normal file
1787
vpc_scripts/projects.vgc
Normal file
File diff suppressed because it is too large
Load Diff
39
vpc_scripts/protobuf_builder.vpc
Normal file
39
vpc_scripts/protobuf_builder.vpc
Normal file
@@ -0,0 +1,39 @@
|
||||
|
||||
$MacroRequired GENERATED_PROTO_DIR
|
||||
|
||||
// If set, included on the commandline
|
||||
$MacroRequiredAllowEmpty ADDITIONAL_PROTOC_ARGS
|
||||
|
||||
|
||||
$CustomBuildStep "proto"
|
||||
{
|
||||
$Description "Running Protocol Buffer Compiler on $(InputFileName)..."
|
||||
$CommandLine "if not exist $GENERATED_PROTO_DIR mkdir $GENERATED_PROTO_DIR" "\n" \
|
||||
"$SRCDIR\thirdparty\protobuf-2.6.1\bin\win32\2013\staticcrt\release\protoc.exe --proto_path=$SRCDIR\thirdparty\protobuf-2.6.1\src" \
|
||||
" --proto_path=$(InputDir) --proto_path=$SRCDIR\gcsdk --proto_path=$SRCDIR\game\shared" \
|
||||
" $ADDITIONAL_PROTOC_ARGS --cpp_out=$GENERATED_PROTO_DIR $(InputPath)" [$WINDOWS]
|
||||
|
||||
$CommandLine "mkdir $GENERATED_PROTO_DIR 2> /dev/null;" \
|
||||
"$SRCDIR/thirdparty/protobuf-2.6.1/bin/osx32/libc++/protoc" \
|
||||
" --proto_path=$SRCDIR/thirdparty/protobuf-2.6.1/src --proto_path=$(InputDir) --proto_path=$SRCDIR\gcsdk --proto_path=$SRCDIR\game\shared" \
|
||||
" $ADDITIONAL_PROTOC_ARGS --cpp_out=$GENERATED_PROTO_DIR $(InputPath)" [$OSXALL]
|
||||
|
||||
$CommandLine "mkdir $GENERATED_PROTO_DIR 2> /dev/null;" \
|
||||
"$SRCDIR/thirdparty/protobuf-2.6.1/bin/linux32/protoc --proto_path=$SRCDIR\thirdparty\protobuf-2.6.1\src" \
|
||||
" --proto_path=$(InputDir) --proto_path=$SRCDIR\gcsdk --proto_path=$SRCDIR\game\shared" \
|
||||
" $ADDITIONAL_PROTOC_ARGS --cpp_out=$GENERATED_PROTO_DIR $(InputPath)" [$LINUXALL]
|
||||
|
||||
$Outputs "$GENERATED_PROTO_DIR\$(InputName).pb.cc;$GENERATED_PROTO_DIR\$(InputName).pb.h"
|
||||
}
|
||||
|
||||
|
||||
$Configuration
|
||||
{
|
||||
$Compiler
|
||||
{
|
||||
// General
|
||||
$AdditionalIncludeDirectories "$BASE;$GENERATED_PROTO_DIR;$SRCDIR\thirdparty\protobuf-2.6.1\src"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
42
vpc_scripts/python_base.vpc
Normal file
42
vpc_scripts/python_base.vpc
Normal file
@@ -0,0 +1,42 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
// python_base.vpc
|
||||
//
|
||||
// General settings for a Python DLL or Executable
|
||||
//
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
$MacroRequired "PYTHONVER"
|
||||
|
||||
$Configuration
|
||||
{
|
||||
$Compiler
|
||||
{
|
||||
$AdditionalIncludeDirectories "$BASE;$SRCDIR\common\python\$PYTHONVER;$SRCDIR\public\python"
|
||||
}
|
||||
|
||||
$Linker
|
||||
{
|
||||
$AdditionalLibraryDirectories "$BASE;$SRCDIR\lib\common\python\$PYTHONVER"
|
||||
}
|
||||
}
|
||||
|
||||
$Configuration "Debug"
|
||||
{
|
||||
$General
|
||||
{
|
||||
$OutputDirectory "Debug_Python$PYTHONVER"
|
||||
$IntermediateDirectory "Debug_Python$PYTHONVER"
|
||||
}
|
||||
}
|
||||
|
||||
$Configuration "Release"
|
||||
{
|
||||
$General
|
||||
{
|
||||
$OutputDirectory "Release_Python$PYTHONVER"
|
||||
$IntermediateDirectory "Release_Python$PYTHONVER"
|
||||
}
|
||||
}
|
||||
|
||||
$Include "$SRCDIR\vpc_scripts\python_inc_$PYTHONVER.vpc"
|
||||
95
vpc_scripts/python_inc_2.5.vpc
Normal file
95
vpc_scripts/python_inc_2.5.vpc
Normal file
@@ -0,0 +1,95 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
// python_inc_2.5.vpc
|
||||
//
|
||||
// Include files for Python 2.5
|
||||
//
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
$Project
|
||||
{
|
||||
$Folder "Python Headers"
|
||||
{
|
||||
$File "$SRCDIR\common\python\2.5\Python-ast.h"
|
||||
$File "$SRCDIR\common\python\2.5\Python.h"
|
||||
$File "$SRCDIR\common\python\2.5\abstract.h"
|
||||
$File "$SRCDIR\common\python\2.5\asdl.h"
|
||||
$File "$SRCDIR\common\python\2.5\ast.h"
|
||||
$File "$SRCDIR\common\python\2.5\bitset.h"
|
||||
$File "$SRCDIR\common\python\2.5\boolobject.h"
|
||||
$File "$SRCDIR\common\python\2.5\bufferobject.h"
|
||||
$File "$SRCDIR\common\python\2.5\cStringIO.h"
|
||||
$File "$SRCDIR\common\python\2.5\cellobject.h"
|
||||
$File "$SRCDIR\common\python\2.5\ceval.h"
|
||||
$File "$SRCDIR\common\python\2.5\classobject.h"
|
||||
$File "$SRCDIR\common\python\2.5\cobject.h"
|
||||
$File "$SRCDIR\common\python\2.5\code.h"
|
||||
$File "$SRCDIR\common\python\2.5\codecs.h"
|
||||
$File "$SRCDIR\common\python\2.5\compile.h"
|
||||
$File "$SRCDIR\common\python\2.5\complexobject.h"
|
||||
$File "$SRCDIR\common\python\2.5\datetime.h"
|
||||
$File "$SRCDIR\common\python\2.5\descrobject.h"
|
||||
$File "$SRCDIR\common\python\2.5\dictobject.h"
|
||||
$File "$SRCDIR\common\python\2.5\enumobject.h"
|
||||
$File "$SRCDIR\common\python\2.5\errcode.h"
|
||||
$File "$SRCDIR\common\python\2.5\eval.h"
|
||||
$File "$SRCDIR\common\python\2.5\fileobject.h"
|
||||
$File "$SRCDIR\common\python\2.5\floatobject.h"
|
||||
$File "$SRCDIR\common\python\2.5\frameobject.h"
|
||||
$File "$SRCDIR\common\python\2.5\funcobject.h"
|
||||
$File "$SRCDIR\common\python\2.5\genobject.h"
|
||||
$File "$SRCDIR\common\python\2.5\graminit.h"
|
||||
$File "$SRCDIR\common\python\2.5\grammar.h"
|
||||
$File "$SRCDIR\common\python\2.5\import.h"
|
||||
$File "$SRCDIR\common\python\2.5\intobject.h"
|
||||
$File "$SRCDIR\common\python\2.5\intrcheck.h"
|
||||
$File "$SRCDIR\common\python\2.5\iterobject.h"
|
||||
$File "$SRCDIR\common\python\2.5\listobject.h"
|
||||
$File "$SRCDIR\common\python\2.5\longintrepr.h"
|
||||
$File "$SRCDIR\common\python\2.5\longobject.h"
|
||||
$File "$SRCDIR\common\python\2.5\marshal.h"
|
||||
$File "$SRCDIR\common\python\2.5\metagrammar.h"
|
||||
$File "$SRCDIR\common\python\2.5\methodobject.h"
|
||||
$File "$SRCDIR\common\python\2.5\modsupport.h"
|
||||
$File "$SRCDIR\common\python\2.5\moduleobject.h"
|
||||
$File "$SRCDIR\common\python\2.5\node.h"
|
||||
$File "$SRCDIR\common\python\2.5\object.h"
|
||||
$File "$SRCDIR\common\python\2.5\objimpl.h"
|
||||
$File "$SRCDIR\common\python\2.5\opcode.h"
|
||||
$File "$SRCDIR\common\python\2.5\osdefs.h"
|
||||
$File "$SRCDIR\common\python\2.5\parsetok.h"
|
||||
$File "$SRCDIR\common\python\2.5\patchlevel.h"
|
||||
$File "$SRCDIR\common\python\2.5\pgen.h"
|
||||
$File "$SRCDIR\common\python\2.5\pgenheaders.h"
|
||||
$File "$SRCDIR\common\python\2.5\py_curses.h"
|
||||
$File "$SRCDIR\common\python\2.5\pyarena.h"
|
||||
$File "$SRCDIR\common\python\2.5\pyconfig.h"
|
||||
$File "$SRCDIR\common\python\2.5\pydebug.h"
|
||||
$File "$SRCDIR\common\python\2.5\pyerrors.h"
|
||||
$File "$SRCDIR\common\python\2.5\pyexpat.h"
|
||||
$File "$SRCDIR\common\python\2.5\pyfpe.h"
|
||||
$File "$SRCDIR\common\python\2.5\pygetopt.h"
|
||||
$File "$SRCDIR\common\python\2.5\pymactoolbox.h"
|
||||
$File "$SRCDIR\common\python\2.5\pymem.h"
|
||||
$File "$SRCDIR\common\python\2.5\pyport.h"
|
||||
$File "$SRCDIR\common\python\2.5\pystate.h"
|
||||
$File "$SRCDIR\common\python\2.5\pystrtod.h"
|
||||
$File "$SRCDIR\common\python\2.5\pythonrun.h"
|
||||
$File "$SRCDIR\common\python\2.5\pythread.h"
|
||||
$File "$SRCDIR\common\python\2.5\rangeobject.h"
|
||||
$File "$SRCDIR\common\python\2.5\setobject.h"
|
||||
$File "$SRCDIR\common\python\2.5\sliceobject.h"
|
||||
$File "$SRCDIR\common\python\2.5\stringobject.h"
|
||||
$File "$SRCDIR\common\python\2.5\structmember.h"
|
||||
$File "$SRCDIR\common\python\2.5\structseq.h"
|
||||
$File "$SRCDIR\common\python\2.5\symtable.h"
|
||||
$File "$SRCDIR\common\python\2.5\sysmodule.h"
|
||||
$File "$SRCDIR\common\python\2.5\timefuncs.h"
|
||||
$File "$SRCDIR\common\python\2.5\token.h"
|
||||
$File "$SRCDIR\common\python\2.5\traceback.h"
|
||||
$File "$SRCDIR\common\python\2.5\tupleobject.h"
|
||||
$File "$SRCDIR\common\python\2.5\ucnhash.h"
|
||||
$File "$SRCDIR\common\python\2.5\unicodeobject.h"
|
||||
$File "$SRCDIR\common\python\2.5\weakrefobject.h"
|
||||
}
|
||||
}
|
||||
33
vpc_scripts/readme.txt
Normal file
33
vpc_scripts/readme.txt
Normal file
@@ -0,0 +1,33 @@
|
||||
Usage for the vpc-generating perl scripts::
|
||||
|
||||
(Note, perl is case sensitive.)
|
||||
|
||||
|
||||
"generateVPC.pl"
|
||||
"generatesimpleVPC.pl"
|
||||
|
||||
- Run from the vpc_scripts directory.
|
||||
- Use full or relative path to the vcproj file.
|
||||
- Use -o to specify an output directory. If no output directory is specified, The vpc script(s) will be generated in the same directory as the source vcproj.
|
||||
("generateSimpleVPC.pl" produces a stripped-down version of the output scripts)
|
||||
|
||||
Example:
|
||||
|
||||
> generateVPC.pl ..\cl_dll\client.vcproj -o ..\cl_dll\tempdir
|
||||
|
||||
|
||||
|
||||
"generateSnapshot.pl"
|
||||
"generatesimpleSnapshot.pl"
|
||||
|
||||
Generates vpc scripts for the entire tree, and places them in a local mirror directory tree named "snapshot". If a snapshot tree already exists, it is renamed to "backup" and a new snapshot is created. This allows running a diff of the two trees to see which vcproj's have changed since the last snapshot.
|
||||
|
||||
No arguments are necessary:
|
||||
|
||||
> generateSnapshot.pl
|
||||
|
||||
|
||||
|
||||
NOTES:
|
||||
|
||||
generateVPC.pl always assumes a common base script and optional additional leaf scripts. If a file or property is identical across all project configurations, then it is placed in the base script. If any configuration is different, then that file or property is moved into the appropriate mod's leaf script. This is expected behavior for client and server, but most other projects should only have a base script.
|
||||
46
vpc_scripts/source_base.vpc
Normal file
46
vpc_scripts/source_base.vpc
Normal file
@@ -0,0 +1,46 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// source_base.VPC
|
||||
//
|
||||
// This is the base VPC file that is included by all others, on all platforms.
|
||||
//
|
||||
// Project Script
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
// Set which branch we are building out of.
|
||||
// This is one file we expect to be different between branches and so it must be merged carefully
|
||||
|
||||
// Staging branch:
|
||||
//$Conditional STAGING_ONLY "1"
|
||||
|
||||
// rel/tf_beta branch:
|
||||
//$Conditional TF_BETA "1"
|
||||
|
||||
$Configuration "Debug"
|
||||
{
|
||||
$Compiler
|
||||
{
|
||||
// Pass on appropriate branch define to preprocessor
|
||||
$PreprocessorDefinitions "VPC"
|
||||
$PreprocessorDefinitions "$BASE;STAGING_ONLY" [$STAGING_ONLY]
|
||||
$PreprocessorDefinitions "$BASE;TF_BETA" [$TF_BETA]
|
||||
$PreprocessorDefinitions "$BASE;RAD_TELEMETRY_DISABLED" [$SOURCESDK]
|
||||
// Need to revisit the code to make things run with the _RETAIL preprocessor definition
|
||||
// This line was added in the previous check-in, but had previously not been defined in this branch
|
||||
// $PreprocessorDefinitions "$BASE;_RETAIL" [$RETAIL]
|
||||
}
|
||||
}
|
||||
|
||||
$Configuration "Release"
|
||||
{
|
||||
$Compiler
|
||||
{
|
||||
// Pass on appropriate branch define to preprocessor
|
||||
$PreprocessorDefinitions "VPC"
|
||||
$PreprocessorDefinitions "$BASE;STAGING_ONLY" [$STAGING_ONLY]
|
||||
$PreprocessorDefinitions "$BASE;TF_BETA" [$TF_BETA]
|
||||
$PreprocessorDefinitions "$BASE;RAD_TELEMETRY_DISABLED" [$SOURCESDK]
|
||||
// Need to revisit the code to make things run with the _RETAIL preprocessor definition
|
||||
// This line was added in the previous check-in, but had previously not been defined in this branch
|
||||
// $PreprocessorDefinitions "$BASE;_RETAIL" [$RETAIL]
|
||||
}
|
||||
}
|
||||
56
vpc_scripts/source_cryptlib_include.vpc
Normal file
56
vpc_scripts/source_cryptlib_include.vpc
Normal file
@@ -0,0 +1,56 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// SOURCE_CRYPTLIB_INCLUDE.VPC
|
||||
//
|
||||
// Includes needed to link cryptopp
|
||||
//
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
|
||||
$Project
|
||||
{
|
||||
$Folder "Source Files"
|
||||
{
|
||||
$File "$SRCDIR\common\crypto.cpp"
|
||||
{
|
||||
$Configuration
|
||||
{
|
||||
$Compiler
|
||||
{
|
||||
$Create/UsePrecompiledHeader "Not Using Precompiled Headers"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$Folder "Link Libraries"
|
||||
{
|
||||
$Lib vpklib
|
||||
// So we can check the signature of the item schema.
|
||||
$Lib "$SRCDIR\lib\public\$PLATSUBDIR\2013\release\cryptlib" [$WINDOWS&&!$VS2015]
|
||||
$Libexternal $LIBCOMMON/libcrypto [$OSXALL]
|
||||
$Libexternal $LIBCOMMON/libcryptopp [$OSXALL]
|
||||
$Libexternal "$SRCDIR\lib\common\$(CRYPTOPPDIR)\libcrypto" [$LINUXALL]
|
||||
$Libexternal "$SRCDIR\lib\common\$(CRYPTOPPDIR)\libcryptopp" [$LINUXALL]
|
||||
}
|
||||
|
||||
$Folder "Link Libraries" [$VS2015]
|
||||
{
|
||||
$File "$SRCDIR\lib\common\win32\2015\release\cryptlib.lib" [$WIN32]
|
||||
{
|
||||
$Configuration "Debug" { $ExcludedFromBuild "Yes" }
|
||||
}
|
||||
$File "$SRCDIR\lib\common\win32\2015\debug\cryptlib.lib" [$WIN32]
|
||||
{
|
||||
$Configuration "Release" { $ExcludedFromBuild "Yes" }
|
||||
}
|
||||
|
||||
$File "$SRCDIR\lib\common\$PLATSUBDIR\2015\release\cryptlib.lib" [$WIN64]
|
||||
{
|
||||
$Configuration "Debug" { $ExcludedFromBuild "Yes" }
|
||||
}
|
||||
$File "$SRCDIR\lib\common\$PLATSUBDIR\2015\debug\cryptlib.lib" [$WIN64]
|
||||
{
|
||||
$Configuration "Release" { $ExcludedFromBuild "Yes" }
|
||||
}
|
||||
}
|
||||
}
|
||||
25
vpc_scripts/source_dll_base.vpc
Normal file
25
vpc_scripts/source_dll_base.vpc
Normal file
@@ -0,0 +1,25 @@
|
||||
$MacroRequired "OUTDLLEXT" "$_DLL_EXT"
|
||||
$Include "$SRCDIR\vpc_scripts\platform_dirs.vpc"
|
||||
$include "$SRCDIR\vpc_scripts\source_base.vpc"
|
||||
|
||||
$include "$SRCDIR\vpc_scripts\source_dll_posix_base.vpc" [$POSIX]
|
||||
$Include "$SRCDIR\vpc_scripts\source_dll_win32_base.vpc" [( $WIN32 || $WIN64 ) && !$POSIX]
|
||||
$Include "$SRCDIR\vpc_scripts\source_dll_x360_base.vpc" [$X360]
|
||||
$Include "$SRCDIR\vpc_scripts\source_ppu_prx_ps3_base.vpc" [$PS3]
|
||||
$Include "$SRCDIR\vpc_scripts\source_video_base.vpc"
|
||||
|
||||
$Configuration
|
||||
{
|
||||
$General
|
||||
{
|
||||
$TargetExtension "$OUTDLLEXT"
|
||||
}
|
||||
|
||||
$Compiler
|
||||
{
|
||||
$PreprocessorDefinitions "$BASE;DEV_BUILD" [!$PUBLISH]
|
||||
$PreprocessorDefinitions "$BASE;_PROFILE" [$PROFILE && !$RETAIL]
|
||||
$PreprocessorDefinitions "$BASE;RETAIL_ASSERTS" [$RETAIL && $RETAILASSERTS]
|
||||
$PreprocessorDefinitions "$BASE;FRAME_POINTER_OMISSION_DISABLED" // This is now always true.
|
||||
}
|
||||
}
|
||||
51
vpc_scripts/source_dll_posix_base.vpc
Normal file
51
vpc_scripts/source_dll_posix_base.vpc
Normal file
@@ -0,0 +1,51 @@
|
||||
|
||||
$Include "$SRCDIR\vpc_scripts\version.vpc"
|
||||
$Include "$SRCDIR\vpc_scripts\source_posix_base.vpc"
|
||||
|
||||
|
||||
$MacroRequired "OUTBINNAME" "$PROJECTNAME"
|
||||
$MacroRequired "OUTBINDIR" "$SRCDIR\..\game\bin"
|
||||
|
||||
|
||||
// General configuration info.
|
||||
$Configuration
|
||||
{
|
||||
$General
|
||||
{
|
||||
$ConfigurationType "Dynamic Library (.dll)"
|
||||
$GameOutputFile "$OUTBINDIR/$OUTBINNAME$OUTDLLEXT"
|
||||
}
|
||||
|
||||
$Compiler
|
||||
{
|
||||
$PreprocessorDefinitions "$BASE;DLLNAME=$OUTBINNAME"
|
||||
}
|
||||
|
||||
$Linker
|
||||
{
|
||||
$OutputFile "$(OBJ_DIR)/$OUTBINNAME$OUTDLLEXT"
|
||||
}
|
||||
}
|
||||
|
||||
// Skeleton Project - All derived projects get this as a starting base
|
||||
$Project
|
||||
{
|
||||
$Folder "Source Files"
|
||||
{
|
||||
$File "$SRCDIR\public\tier0\memoverride.cpp"
|
||||
{
|
||||
$Configuration
|
||||
{
|
||||
$Compiler
|
||||
{
|
||||
$Create/UsePrecompiledHeader "Not Using Precompiled Headers"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$Folder "Resources"
|
||||
{
|
||||
$File "$ROOTSCRIPT"
|
||||
}
|
||||
}
|
||||
44
vpc_scripts/source_dll_qt_base.vpc
Normal file
44
vpc_scripts/source_dll_qt_base.vpc
Normal file
@@ -0,0 +1,44 @@
|
||||
//===================== Copyright (c) Valve Corporation. All Rights Reserved. ======================
|
||||
//
|
||||
//==================================================================================================
|
||||
|
||||
$Macro QT_ROOT "$SRCDIR\thirdparty\lgpl\qt"
|
||||
|
||||
$Include "$SRCDIR\vpc_scripts\source_dll_base.vpc"
|
||||
$Include "$SRCDIR\vpc_scripts\qt_base.vpc"
|
||||
|
||||
$Configuration
|
||||
{
|
||||
$Compiler
|
||||
{
|
||||
$AdditionalIncludeDirectories "$BASE;.\;$SRCDIR\game\shared;$QT_ROOT\include;.\$QT_TARGET_SUBDIR"
|
||||
$PreprocessorDefinitions "$BASE;QT_LARGEFILE_SUPPORT;QT_DLL;QT_GUI_LIB;QT_CORE_LIB;QT_THREAD_SUPPORT"
|
||||
$DisableSpecificWarnings "4127;4512;$BASE"
|
||||
|
||||
// Causes a bunch of bogus compiler warnings for now; let's disable it
|
||||
$Detect64bitPortabilityIssues "No"
|
||||
}
|
||||
}
|
||||
|
||||
$Configuration "Release"
|
||||
{
|
||||
$Compiler
|
||||
{
|
||||
$PreprocessorDefinitions "$BASE;QT_NO_DEBUG"
|
||||
}
|
||||
}
|
||||
|
||||
$Project
|
||||
{
|
||||
$Folder "Link Libraries" [$QTDEBUG]
|
||||
{
|
||||
$Lib "$QT_ROOT\lib\qtcored4"
|
||||
$Lib "$QT_ROOT\lib\qtguid4"
|
||||
}
|
||||
|
||||
$Folder "Link Libraries" [!$QTDEBUG]
|
||||
{
|
||||
$Lib "$QT_ROOT\lib\qtcore4"
|
||||
$Lib "$QT_ROOT\lib\qtgui4"
|
||||
}
|
||||
}
|
||||
139
vpc_scripts/source_dll_win32_base.vpc
Normal file
139
vpc_scripts/source_dll_win32_base.vpc
Normal file
@@ -0,0 +1,139 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// SOURCE_DLL_WIN32_BASE.VPC
|
||||
//
|
||||
// Base Settings for all Source(TM) Projects
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
$Include "$SRCDIR\vpc_scripts\version.vpc"
|
||||
|
||||
$MacroRequired "SRCDIR"
|
||||
$MacroRequired "OUTBINNAME" "$PROJECTNAME"
|
||||
$MacroRequired "OUTBINDIR"
|
||||
|
||||
$Macro OUTBINDIR "$OUTBINDIR$PLATSUBDIR"
|
||||
$Macro LIBPUBLIC "$SRCDIR\lib\public$PLATSUBDIR"
|
||||
$Macro LIBCOMMON "$SRCDIR\lib\common$PLATSUBDIR" [!$VS2015]
|
||||
$Macro LIBCOMMON "$SRCDIR\lib\common$PLATSUBDIR\2015\release" [$VS2015&&!$WIN32]
|
||||
$Macro LIBCOMMON "$SRCDIR\lib\common\win32\2015\release" [$VS2015&&$WIN32]
|
||||
|
||||
$Include "$SRCDIR\vpc_scripts\loadaddress.vpc"
|
||||
$Include "$SRCDIR\vpc_scripts\source_dll_win32_debug.vpc"
|
||||
$Include "$SRCDIR\vpc_scripts\source_dll_win32_release.vpc"
|
||||
$Include "$SRCDIR\vpc_scripts\source_win32_base.vpc"
|
||||
|
||||
$IgnoreRedundancyWarning "ON"
|
||||
|
||||
// Common Configuration
|
||||
$Configuration
|
||||
{
|
||||
$General
|
||||
{
|
||||
$TargetName "$OUTBINNAME"
|
||||
}
|
||||
|
||||
$Compiler
|
||||
{
|
||||
$PreprocessorDefinitions "$BASE;PLATFORM_64BITS;WIN64;_WIN64;COMPILER_MSVC64" [$WIN64]
|
||||
$PreprocessorDefinitions "$BASE;COMPILER_MSVC32" [$WIN32]
|
||||
$PreprocessorDefinitions "$BASE;COMPILER_MSVC;_DLL_EXT=$_DLL_EXT"
|
||||
$PreprocessorDefinitions "$BASE;DLLNAME=$OUTBINNAME"
|
||||
}
|
||||
|
||||
$Compiler [$WIN32]
|
||||
{
|
||||
$EnableEnhancedInstructionSet "Streaming SIMD Extensions (/arch:SSE)"
|
||||
}
|
||||
|
||||
$Linker
|
||||
{
|
||||
$AdditionalDependencies "$BASE shell32.lib user32.lib advapi32.lib gdi32.lib comdlg32.lib ole32.lib" [$WIN32||$WIN64]
|
||||
$TargetMachine "MachineX86 (/MACHINE:X86)" [$WIN32]
|
||||
$TargetMachine "MachineX64 (/MACHINE:X64)" [$WIN64]
|
||||
// Suppress this pointless warning using the undocumented /ignore linker switch
|
||||
// schemalib.lib(schemaclassinfo.obj) : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library
|
||||
$AdditionalOptions "$BASE /ignore:4221"
|
||||
$AdditionalOptions "$BASE $SRCDIR\lib\public\ftol3.obj" [$VS2013 && $WIN32 && !$DISABLE_FTOL3_OVERRIDE && !$SOURCESDK] // Work around CRT bug https://connect.microsoft.com/VisualStudio/feedback/details/806362/vc12-pollutes-the-floating-point-stack-when-casting-infinity-nan-to-unsigned-long#
|
||||
}
|
||||
|
||||
$PreBuildEvent
|
||||
{
|
||||
$CommandLine "if EXIST $OUTBINDIR\$(TargetFileName) for /f $QUOTEdelims=$QUOTE %%A in ('attrib $QUOTE$OUTBINDIR\$(TargetFileName)$QUOTE') do set valveTmpIsReadOnly=$QUOTE%%A$QUOTE" "\n" \
|
||||
"set valveTmpIsReadOnlyLetter=%valveTmpIsReadOnly:~6,1%" "\n" \
|
||||
"if $QUOTE%valveTmpIsReadOnlyLetter%$QUOTE==$QUOTER$QUOTE del /q $QUOTE$(TargetDir)$QUOTE$(TargetFileName)" "\n" \
|
||||
"$CRCCHECK" "\n"
|
||||
}
|
||||
|
||||
$PostBuildEvent [!$ANALYZE]
|
||||
{
|
||||
$CommandLine "if not exist $QUOTE$OUTBINDIR$QUOTE mkdir $QUOTE$OUTBINDIR$QUOTE" "\n"
|
||||
$CommandLine "$BASE" "call $SRCDIR\vpc_scripts\valve_p4_edit.cmd $QUOTE$OUTBINDIR\$(TargetFileName)$QUOTE $SRCDIR" "\n" [!$SOURCESDK]
|
||||
$CommandLine "$BASE" "copy $QUOTE$(TargetDir)$(TargetFileName)$QUOTE $QUOTE$OUTBINDIR\$(TargetFileName)$QUOTE" "\n" \
|
||||
"if ERRORLEVEL 1 goto BuildEventFailed" "\n" \
|
||||
"if exist $QUOTE$(TargetDir)$(TargetName).map$QUOTE copy $QUOTE$(TargetDir)$(TargetName).map$QUOTE $OUTBINDIR\$(TargetName).map" "\n"
|
||||
$CommandLine "$BASE" "call $SRCDIR\vpc_scripts\valve_p4_edit.cmd $QUOTE$OUTBINDIR\$(TargetName).pdb$QUOTE $SRCDIR" "\n" [!$SOURCESDK]
|
||||
$CommandLine "$BASE" "copy $QUOTE$(TargetDir)$(TargetName).pdb$QUOTE $OUTBINDIR\$(TargetName).pdb" "\n" \
|
||||
"if ERRORLEVEL 1 goto BuildEventFailed" "\n" \
|
||||
"goto BuildEventOK" "\n" \
|
||||
":BuildEventFailed" "\n" \
|
||||
"echo *** ERROR! PostBuildStep FAILED for $(ProjectName)! EXE or DLL is probably running. ***" "\n" \
|
||||
"del /q $QUOTE$(TargetDir)$(TargetFileName)$QUOTE" "\n" \
|
||||
"exit 1" "\n" \
|
||||
":BuildEventOK" "\n"
|
||||
|
||||
$Description "Publishing to $OUTBINDIR"
|
||||
$ExcludedFromBuild "No"
|
||||
}
|
||||
}
|
||||
|
||||
// Skeleton Project - All derived projects get this as a starting base
|
||||
$Project
|
||||
{
|
||||
$Folder "Source Files"
|
||||
{
|
||||
$File "$SRCDIR\public\tier0\memoverride.cpp"
|
||||
{
|
||||
$Configuration
|
||||
{
|
||||
$Compiler
|
||||
{
|
||||
$Create/UsePrecompiledHeader "Not Using Precompiled Headers"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Implement __imp__EncodePointer and __imp__DecodePointer so that we can run on XP SP1
|
||||
// when building with VS 2010 and higher.
|
||||
$File "$SRCDIR\public\tier0\pointeroverride.asm" [$WIN32]
|
||||
{
|
||||
$Configuration
|
||||
{
|
||||
$CustomBuildStep
|
||||
{
|
||||
// General
|
||||
$CommandLine "$QUOTE$(VCInstallDir)bin\ml.exe$QUOTE /safeseh /c /Cp /Zi /Fo$QUOTE$(IntDir)\$(InputName).obj$QUOTE $QUOTE$(InputPath)$QUOTE"
|
||||
$Description "Compiling pointeroverride.asm"
|
||||
$Outputs "$(IntDir)\$(InputName).obj"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$File "$SRCDIR\common\debug_dll_check.cpp" [!$SOURCESDK]
|
||||
{
|
||||
$Configuration
|
||||
{
|
||||
$Compiler
|
||||
{
|
||||
$Create/UsePrecompiledHeader "Not Using Precompiled Headers"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$Folder "Link Libraries"
|
||||
{
|
||||
$Implib "$LIBPUBLIC\tier0"
|
||||
$Lib "$LIBPUBLIC\tier1"
|
||||
$Implib "$LIBPUBLIC\vstdlib"
|
||||
}
|
||||
}
|
||||
|
||||
327
vpc_scripts/source_dll_win32_debug.vpc
Normal file
327
vpc_scripts/source_dll_win32_debug.vpc
Normal file
@@ -0,0 +1,327 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// SOURCE_DLL_WIN32_DEBUG.VPC
|
||||
//
|
||||
// Base Settings for all Source(TM) Projects
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
$IgnoreRedundancyWarning "ON"
|
||||
|
||||
$MacroRequired "SRCDIR"
|
||||
$MacroRequired "OUTBINNAME"
|
||||
$MacroRequired "OUTBINDIR"
|
||||
$MacroRequired "LIBPUBLIC"
|
||||
$MacroRequired "LIBCOMMON"
|
||||
$MacroRequired "PLATSUBDIR"
|
||||
$MacroRequired "OUTDLLEXT"
|
||||
$MacroRequiredAllowEmpty "GAMENAME"
|
||||
$MacroRequiredAllowEmpty "INTERMEDIATESUBDIR"
|
||||
$MacroRequiredAllowEmpty "_UNITYSUBDIR"
|
||||
$Macro "_SUBDIRSUFFIX" "$INTERMEDIATESUBDIR$GAMENAME$PLATSUBDIR$_UNITYSUBDIR"
|
||||
|
||||
$Configuration "Debug"
|
||||
{
|
||||
$General
|
||||
{
|
||||
// General
|
||||
$OutputDirectory ".\Debug$_SUBDIRSUFFIX"
|
||||
$IntermediateDirectory ".\Debug$_SUBDIRSUFFIX"
|
||||
|
||||
$ExtensionsToDeleteOnClean
|
||||
$BuildLogFile
|
||||
$InheritedProjectPropertySheets
|
||||
|
||||
// Project Defaults
|
||||
$ConfigurationType "Dynamic Library (.dll)"
|
||||
$UseOfMFC
|
||||
$UseOfATL
|
||||
$MinimizeCRTUseInATL
|
||||
$CharacterSet "Use Multi-Byte Character Set"
|
||||
$CommonLanguageRuntimeSupport
|
||||
$WholeProgramOptimization
|
||||
}
|
||||
|
||||
$Debugging
|
||||
{
|
||||
$Command
|
||||
$CommandArguments
|
||||
$WorkingDirectory
|
||||
$Attach
|
||||
$DebuggerType
|
||||
$Environment
|
||||
$MergeEnvironment
|
||||
$SQLDebugging
|
||||
}
|
||||
|
||||
$Compiler
|
||||
{
|
||||
// General
|
||||
$AdditionalIncludeDirectories "$SRCDIR\common;$SRCDIR\public;$SRCDIR\public\tier0;$SRCDIR\public\tier1"
|
||||
$Resolve#UsingReferences
|
||||
$DebugInformationFormat "Program Database for Edit & Continue (/ZI)" [$WIN32]
|
||||
$DebugInformationFormat "Program Database (/Zi)" [$WIN64]
|
||||
$SuppressStartupBanner
|
||||
$WarningLevel "Level 4 (/W4)"
|
||||
$TreatWarningsAsErrors
|
||||
$UseUNICODEResponseFiles
|
||||
|
||||
// Optimization
|
||||
$Optimization "Disabled (/Od)"
|
||||
$InlineFunctionExpansion
|
||||
$EnableIntrinsicFunctions
|
||||
$FavorSizeOrSpeed
|
||||
$OmitFramePointers
|
||||
$EnableFiberSafeOptimizations
|
||||
$WholeProgramOptimization
|
||||
|
||||
// Preprocessor
|
||||
$PreprocessorDefinitions "$BASE;WIN32;_WIN32;_DEBUG;DEBUG;_WINDOWS;_USRDLL;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)"
|
||||
$PreprocessorDefinitions "$BASE;_HAS_ITERATOR_DEBUGGING=0;_ALLOW_RUNTIME_LIBRARY_MISMATCH;_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH;_ALLOW_MSC_VER_MISMATCH" [!$WIN64&&!$VS2015]
|
||||
$IgnoreStandardIncludePath
|
||||
$GeneratePreprocessedFile
|
||||
$KeepComments
|
||||
|
||||
// Code Generation
|
||||
$EnableStringPooling "Yes (/GF)"
|
||||
$EnableMinimalRebuild
|
||||
$EnableC++Exceptions "No"
|
||||
$SmallerTypeCheck
|
||||
$BasicRuntimeChecks "Default"
|
||||
$RuntimeLibrary "Multi-threaded Debug (/MTd)"
|
||||
$StructMemberAlignment
|
||||
$BufferSecurityCheck "Yes"
|
||||
$EnableFunctionLevelLinking
|
||||
$EnableEnhancedInstructionSet
|
||||
$FloatingPointModel "Fast (/fp:fast)"
|
||||
$EnableFloatingPointExceptions
|
||||
|
||||
// Language
|
||||
$DisableLanguageExtensions
|
||||
$DefaultCharUnsigned
|
||||
$TreatWCHAR_TAsBuiltInType
|
||||
$ForceConformanceInForLoopScope "Yes (/Zc:forScope)"
|
||||
$EnableRunTimeTypeInfo "Yes (/GR)"
|
||||
$OpenMPSupport
|
||||
|
||||
// Precompiled Headers
|
||||
$Create/UsePrecompiledHeader "Not Using Precompiled Headers"
|
||||
$Create/UsePCHThroughFile
|
||||
$PrecompiledHeaderFile
|
||||
|
||||
// Output Files
|
||||
$ExpandAttributedSource
|
||||
$AssemblerOutput
|
||||
$ASMListLocation "$(IntDir)/"
|
||||
$ObjectFileName "$(IntDir)/"
|
||||
$ProgramDatabaseFileName "$(IntDir)/"
|
||||
$GenerateXMLDocumentationFiles "No"
|
||||
$XMLDocumentationFileName
|
||||
|
||||
// Browse Information
|
||||
$EnableBrowseInformation "None"
|
||||
$BrowseFile "$(IntDir)/"
|
||||
|
||||
// Advanced
|
||||
$CallingConvention
|
||||
$CompileAs "Compile as C++ Code (/TP)"
|
||||
$DisableSpecificWarnings
|
||||
$ForceIncludes
|
||||
$Force#Using
|
||||
$ShowIncludes
|
||||
$UndefinePreprocessorDefinitions
|
||||
$UndefineAllPreprocessorDefinitions
|
||||
$UseFullPaths "Yes (/FC)"
|
||||
$OmitDefaultLibraryNames
|
||||
$ErrorReporting "Prompt Immediately (/errorReport:prompt)"
|
||||
|
||||
$AdditionalOptions "/Zm200"
|
||||
}
|
||||
|
||||
$Linker
|
||||
{
|
||||
// General
|
||||
$OutputFile "$(OutDir)/$OUTBINNAME$OUTDLLEXT"
|
||||
$ShowProgress "Not Set"
|
||||
$Version
|
||||
$EnableIncrementalLinking "Yes (/INCREMENTAL)"
|
||||
$SuppressStartupBanner "Yes (/NOLOGO)"
|
||||
$IgnoreImportLibrary
|
||||
$RegisterOutput
|
||||
$AdditionalLibraryDirectories "$LIBCOMMON;$LIBPUBLIC"
|
||||
$LinkLibraryDependencies
|
||||
$UseLibraryDependencyInputs
|
||||
$UseUNICODEResponseFiles "No"
|
||||
|
||||
// Input
|
||||
$AdditionalDependencies
|
||||
$IgnoreAllDefaultLibraries
|
||||
$IgnoreSpecificLibrary "libc;libcd;libcmt;libcpmt;libcpmt1"
|
||||
$ModuleDefinitionFile
|
||||
$AddModuleToAssembly
|
||||
$EmbedManagedResourceFile
|
||||
$ForceSymbolReferences
|
||||
$DelayLoadedDLLs
|
||||
$AssemblyLinkResource
|
||||
|
||||
// Manifest File
|
||||
$GenerateManifest "No"
|
||||
$ManifestFile
|
||||
$AdditionalManifestDependencies
|
||||
$AllowIsolation
|
||||
|
||||
// Debugging
|
||||
$GenerateDebugInfo "Yes (/DEBUG)"
|
||||
$GenerateProgramDatabaseFile "$(IntDir)/$(TargetName).pdb"
|
||||
$StripPrivateSymbols
|
||||
$MapExports
|
||||
$DebuggableAssembly
|
||||
|
||||
// System
|
||||
$SubSystem "Windows (/SUBSYSTEM:WINDOWS)"
|
||||
$HeapReserveSize
|
||||
$HeapCommitSize
|
||||
$StackReserveSize
|
||||
$StackCommitSize
|
||||
$EnableLargeAddresses
|
||||
$TerminalServer
|
||||
$SwapRunFromCD
|
||||
$SwapRunFromNetwork
|
||||
$Driver
|
||||
|
||||
// DYNAMICBASE/ASLR in debug builds is annoying and not helpful.
|
||||
$RandomizedBaseAddress "false"
|
||||
|
||||
// Optimization
|
||||
$References
|
||||
$EnableCOMDATFolding
|
||||
$OptimizeForWindows98
|
||||
$FunctionOrder
|
||||
$ProfileGuidedDatabase
|
||||
$LinkTimeCodeGeneration
|
||||
|
||||
// Embedded IDL
|
||||
$MIDLCommands
|
||||
$IgnoreEmbeddedIDL
|
||||
$MergeIDLBaseFileName
|
||||
$TypeLibrary
|
||||
$TypeLibResourceID
|
||||
|
||||
// Advanced
|
||||
$EntryPoint
|
||||
$NoEntryPoint
|
||||
$SetChecksum
|
||||
$BaseAddress "$LOADADDRESS_DEVELOPMENT"
|
||||
$FixedBaseAddress
|
||||
$TurnOffAssemblyGeneration
|
||||
$DelayLoadedDLL
|
||||
$ImportLibrary
|
||||
$MergeSections
|
||||
$TargetMachine
|
||||
$Profile
|
||||
$CLRThreadAttribute
|
||||
$CLRImageType
|
||||
$KeyFile
|
||||
$KeyContainer
|
||||
$DelaySign
|
||||
$ErrorReporting "Prompt Immediately (/ERRORREPORT:PROMPT)"
|
||||
$CLRUnmanagedCodeCheck
|
||||
// SAFE_SEH should always be disabled on debug builds.
|
||||
$ImageHasSafeExceptionHandlers "false"
|
||||
|
||||
// Command Line
|
||||
$AdditionalOptions
|
||||
}
|
||||
|
||||
$ManifestTool
|
||||
{
|
||||
// General
|
||||
$SuppressStartupBanner "Yes (/nologo)"
|
||||
$VerboseOutput
|
||||
$AssemblyIdentity
|
||||
$UseUNICODEResponseFiles
|
||||
$UseFAT32WorkAround
|
||||
|
||||
// Input And Output
|
||||
$AdditionalManifestFiles
|
||||
$InputResourceManifests
|
||||
$EmbedManifest
|
||||
$OutputManifestFile
|
||||
$ManifestResourceFile
|
||||
$GenerateCatalogFiles
|
||||
$DependencyInformationFile
|
||||
|
||||
// Isolated COM
|
||||
$TypeLibraryFile
|
||||
$RegistrarScriptFile
|
||||
$ComponentFileName
|
||||
$ReplacementsFile
|
||||
|
||||
// Advanced
|
||||
$UpdateFileHashes
|
||||
$UpdateFileHashesSearchPath
|
||||
|
||||
// Command Line
|
||||
$AdditionalOptions
|
||||
}
|
||||
|
||||
$XMLDocumentGenerator
|
||||
{
|
||||
// General
|
||||
$SuppressStartupBanner "Yes (/nologo)"
|
||||
$ValidateIntelliSense
|
||||
$AdditionalDocumentFiles
|
||||
$OutputDocumentFile
|
||||
$DocumentLibraryDependencies
|
||||
$UseUNICODEResponseFiles
|
||||
}
|
||||
|
||||
$BrowseInformation
|
||||
{
|
||||
$SuppressStartupBanner "Yes (/nologo)"
|
||||
$OutputFile "$(OutDir)/$OUTBINNAME.bsc"
|
||||
$AdditionalOptions
|
||||
}
|
||||
|
||||
$Resources
|
||||
{
|
||||
// General
|
||||
$PreprocessorDefinitions "$BASE;_DEBUG;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;%(PreprocessorDefinitions)"
|
||||
$Culture "English (United States) (0x409)"
|
||||
$AdditionalIncludeDirectories
|
||||
$IgnoreStandardIncludePath
|
||||
$ShowProgress
|
||||
$ResourceFileName
|
||||
|
||||
// Command Line
|
||||
$AdditionalOptions
|
||||
}
|
||||
|
||||
$PreBuildEvent
|
||||
{
|
||||
$CommandLine
|
||||
$Description
|
||||
$ExcludedFromBuild "No"
|
||||
}
|
||||
|
||||
$PreLinkEvent
|
||||
{
|
||||
$CommandLine
|
||||
$Description
|
||||
$ExcludedFromBuild "No"
|
||||
}
|
||||
|
||||
$PostBuildEvent
|
||||
{
|
||||
$CommandLine
|
||||
$Description
|
||||
$ExcludedFromBuild "No"
|
||||
}
|
||||
|
||||
$CustomBuildStep
|
||||
{
|
||||
// General
|
||||
$CommandLine
|
||||
$Description
|
||||
$Outputs
|
||||
$AdditionalDependencies
|
||||
}
|
||||
}
|
||||
353
vpc_scripts/source_dll_win32_release.vpc
Normal file
353
vpc_scripts/source_dll_win32_release.vpc
Normal file
@@ -0,0 +1,353 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// SOURCE_DLL_WIN32_RELEASE.VPC
|
||||
//
|
||||
// Base Settings for all Source(TM) Projects
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
$IgnoreRedundancyWarning "ON"
|
||||
|
||||
// Disable frame pointer omission to allow fast stack walking, necessary for
|
||||
// good ETW profiling.
|
||||
$Conditional NOFPO "1"
|
||||
|
||||
$MacroRequired "SRCDIR"
|
||||
$MacroRequired "OUTBINNAME"
|
||||
$MacroRequired "OUTBINDIR"
|
||||
$MacroRequired "LIBPUBLIC"
|
||||
$MacroRequired "LIBCOMMON"
|
||||
$MacroRequired "PLATSUBDIR"
|
||||
$MacroRequired "OUTDLLEXT"
|
||||
$MacroRequiredAllowEmpty "GAMENAME"
|
||||
$MacroRequiredAllowEmpty "INTERMEDIATESUBDIR"
|
||||
$MacroRequiredAllowEmpty "_UNITYSUBDIR"
|
||||
$Macro "_SUBDIRSUFFIX" "$INTERMEDIATESUBDIR$GAMENAME$PLATSUBDIR$_UNITYSUBDIR"
|
||||
|
||||
$Configuration "Release"
|
||||
{
|
||||
$General
|
||||
{
|
||||
// General
|
||||
$OutputDirectory ".\Release$_SUBDIRSUFFIX" [!$RETAIL && !$PROFILE]
|
||||
$IntermediateDirectory ".\Release$_SUBDIRSUFFIX" [!$RETAIL && !$PROFILE]
|
||||
$OutputDirectory ".\Retail$_SUBDIRSUFFIX" [$RETAIL]
|
||||
$IntermediateDirectory ".\Retail$_SUBDIRSUFFIX" [$RETAIL]
|
||||
$OutputDirectory ".\Profile$_SUBDIRSUFFIX" [!$RETAIL && $PROFILE]
|
||||
$IntermediateDirectory ".\Profile$_SUBDIRSUFFIX" [!$RETAIL && $PROFILE]
|
||||
|
||||
$ExtensionsToDeleteOnClean
|
||||
$BuildLogFile
|
||||
$InheritedProjectPropertySheets
|
||||
|
||||
// Project Defaults
|
||||
$ConfigurationType "Dynamic Library (.dll)"
|
||||
$UseOfMFC
|
||||
$UseOfATL
|
||||
$MinimizeCRTUseInATL
|
||||
$CharacterSet "Use Multi-Byte Character Set"
|
||||
$CommonLanguageRuntimeSupport
|
||||
$WholeProgramOptimization "Use Link Time Code Generation" [$LTCG]
|
||||
}
|
||||
|
||||
$Debugging
|
||||
{
|
||||
$Command
|
||||
$CommandArguments
|
||||
$WorkingDirectory
|
||||
$Attach
|
||||
$DebuggerType
|
||||
$Environment
|
||||
$MergeEnvironment
|
||||
$SQLDebugging
|
||||
}
|
||||
|
||||
$Compiler
|
||||
{
|
||||
// General
|
||||
$AdditionalIncludeDirectories "$SRCDIR\common;$SRCDIR\public;$SRCDIR\public\tier0;$SRCDIR\public\tier1"
|
||||
$Resolve#UsingReferences
|
||||
$DebugInformationFormat "Program Database (/Zi)"
|
||||
$SuppressStartupBanner
|
||||
$WarningLevel "Level 4 (/W4)"
|
||||
$TreatWarningsAsErrors
|
||||
$UseUNICODEResponseFiles
|
||||
|
||||
// Optimization
|
||||
$Optimization "Maximize Speed (/O2)"
|
||||
$InlineFunctionExpansion "Any Suitable (/Ob2)"
|
||||
$EnableIntrinsicFunctions "Yes (/Oi)"
|
||||
$FavorSizeOrSpeed "Favor Fast Code (/Ot)"
|
||||
$OmitFramePointers
|
||||
$EnableFiberSafeOptimizations
|
||||
$WholeProgramOptimization
|
||||
|
||||
// Preprocessor
|
||||
$PreprocessorDefinitions "$BASE;WIN32;_WIN32;NDEBUG;_WINDOWS;_USRDLL;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_ALLOW_RUNTIME_LIBRARY_MISMATCH;_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH;_ALLOW_MSC_VER_MISMATCH;%(PreprocessorDefinitions)"
|
||||
$PreprocessorDefinitions "$BASE;RELEASEASSERTS" [$RELEASEASSERTS]
|
||||
$IgnoreStandardIncludePath
|
||||
$GeneratePreprocessedFile
|
||||
$KeepComments
|
||||
|
||||
// Code Generation
|
||||
$EnableStringPooling "Yes (/GF)"
|
||||
$EnableMinimalRebuild
|
||||
$EnableC++Exceptions "No"
|
||||
$SmallerTypeCheck
|
||||
$BasicRuntimeChecks
|
||||
$RuntimeLibrary "Multi-threaded (/MT)"
|
||||
$StructMemberAlignment
|
||||
$BufferSecurityCheck "No" [$RETAIL]
|
||||
$BufferSecurityCheck "Yes" [!$RETAIL]
|
||||
$EnableFunctionLevelLinking "Yes (/Gy)"
|
||||
$EnableEnhancedInstructionSet
|
||||
$FloatingPointModel "Fast (/fp:fast)"
|
||||
$EnableFloatingPointExceptions
|
||||
|
||||
// Language
|
||||
$DisableLanguageExtensions
|
||||
$DefaultCharUnsigned
|
||||
$TreatWCHAR_TAsBuiltInType
|
||||
$ForceConformanceInForLoopScope "Yes (/Zc:forScope)"
|
||||
$EnableRunTimeTypeInfo "Yes (/GR)"
|
||||
$OpenMPSupport
|
||||
|
||||
// Precompiled Headers
|
||||
$Create/UsePrecompiledHeader "Not Using Precompiled Headers"
|
||||
$Create/UsePCHThroughFile
|
||||
$PrecompiledHeaderFile
|
||||
|
||||
// Output Files
|
||||
$ExpandAttributedSource
|
||||
$AssemblerOutput
|
||||
$ASMListLocation "$(IntDir)/"
|
||||
$ObjectFileName "$(IntDir)/"
|
||||
$ProgramDatabaseFileName "$(IntDir)/"
|
||||
$GenerateXMLDocumentationFiles "No"
|
||||
$XMLDocumentationFileName
|
||||
|
||||
// Browse Information
|
||||
$EnableBrowseInformation "None"
|
||||
$BrowseFile "$(IntDir)/"
|
||||
|
||||
// Advanced
|
||||
$CallingConvention
|
||||
$CompileAs "Compile as C++ Code (/TP)"
|
||||
$DisableSpecificWarnings
|
||||
$ForceIncludes
|
||||
$Force#Using
|
||||
$ShowIncludes
|
||||
$UndefinePreprocessorDefinitions
|
||||
$UndefineAllPreprocessorDefinitions
|
||||
$UseFullPaths "Yes (/FC)"
|
||||
$OmitDefaultLibraryNames
|
||||
$ErrorReporting "Prompt Immediately (/errorReport:prompt)"
|
||||
|
||||
$AdditionalOptions "/Zm200"
|
||||
// Enable extra debugging information. This switch requires VS 2013 Update 3.
|
||||
// With VS 2013 make sure that Edit-And-Continue is disabled in the debugger settings so that
|
||||
// the debugger uses the enhanced debug information.
|
||||
// http://randomascii.wordpress.com/2013/09/11/debugging-optimized-codenew-in-visual-studio-2012/
|
||||
$AdditionalOptions "$BASE /Zo"
|
||||
$AdditionalOptions "$BASE /Oy-" [$NOFPO]
|
||||
}
|
||||
|
||||
$Linker
|
||||
{
|
||||
// General
|
||||
$OutputFile "$(OutDir)/$OUTBINNAME$OUTDLLEXT"
|
||||
$ShowProgress "Not Set"
|
||||
$Version
|
||||
$EnableIncrementalLinking "No (/INCREMENTAL:NO)"
|
||||
$SuppressStartupBanner "Yes (/NOLOGO)"
|
||||
$IgnoreImportLibrary
|
||||
$RegisterOutput
|
||||
$AdditionalLibraryDirectories "$LIBCOMMON;$LIBPUBLIC"
|
||||
$LinkLibraryDependencies
|
||||
$UseLibraryDependencyInputs
|
||||
$UseUNICODEResponseFiles "No"
|
||||
|
||||
// Input
|
||||
$AdditionalDependencies
|
||||
$IgnoreAllDefaultLibraries
|
||||
$IgnoreSpecificLibrary "libc;libcd;libcmtd;libcpmtd;libcpmtd0;libcpmtd1"
|
||||
$ModuleDefinitionFile
|
||||
$AddModuleToAssembly
|
||||
$EmbedManagedResourceFile
|
||||
$ForceSymbolReferences
|
||||
$DelayLoadedDLLs
|
||||
$AssemblyLinkResource
|
||||
|
||||
// Manifest File
|
||||
$GenerateManifest "No"
|
||||
$ManifestFile
|
||||
$AdditionalManifestDependencies
|
||||
$AllowIsolation
|
||||
//$UACExecutionLevel
|
||||
|
||||
// Debugging
|
||||
$GenerateDebugInfo "Yes (/DEBUG)"
|
||||
$GenerateProgramDatabaseFile "$(IntDir)/$(TargetName).pdb"
|
||||
$StripPrivateSymbols
|
||||
$MapExports
|
||||
$DebuggableAssembly
|
||||
|
||||
// System
|
||||
$SubSystem "Windows (/SUBSYSTEM:WINDOWS)"
|
||||
$HeapReserveSize
|
||||
$HeapCommitSize
|
||||
$StackReserveSize
|
||||
$StackCommitSize
|
||||
$EnableLargeAddresses
|
||||
$TerminalServer
|
||||
$SwapRunFromCD
|
||||
$SwapRunFromNetwork
|
||||
$Driver
|
||||
|
||||
// RandomizeBaseAddress (/DYNAMICBASE, /ASLR) is a hugely important security setting.
|
||||
// However it can cause confusion during development and can make tracking down certain
|
||||
// bugs tricky by making code/stack/heap addresses change between runs. Enable for retail,
|
||||
// but disable for development builds.
|
||||
$RandomizedBaseAddress "true" [$RETAIL]
|
||||
$RandomizedBaseAddress "false" [!$RETAIL]
|
||||
|
||||
// Optimization
|
||||
$References "Eliminate Unreferenced Data (/OPT:REF)"
|
||||
// COMDAT folding can be very confusing when debugging and profiling because it can
|
||||
// cause execution to go through nonsensical functions (that happen to be binary
|
||||
// equivalent to the logical function). The performance benefit is small enough that
|
||||
// it is not worth enabling in the development builds. It should be enabled on retail
|
||||
// builds.
|
||||
$EnableCOMDATFolding "Remove Redundant COMDATs (/OPT:ICF)" [$RETAIL]
|
||||
$EnableCOMDATFolding "No (/OPT:NOICF)" [!$RETAIL]
|
||||
$OptimizeForWindows98
|
||||
$FunctionOrder
|
||||
$ProfileGuidedDatabase
|
||||
$LinkTimeCodeGeneration
|
||||
|
||||
// Embedded IDL
|
||||
$MIDLCommands
|
||||
$IgnoreEmbeddedIDL
|
||||
$MergeIDLBaseFileName
|
||||
$TypeLibrary
|
||||
$TypeLibResourceID
|
||||
|
||||
// Advanced
|
||||
$EntryPoint
|
||||
$NoEntryPoint
|
||||
$SetChecksum
|
||||
$BaseAddress "$LOADADDRESS_DEVELOPMENT"
|
||||
//$BaseAddress "$LOADADDRESS_RETAIL" [$RETAIL]
|
||||
$FixedBaseAddress
|
||||
$TurnOffAssemblyGeneration
|
||||
$DelayLoadedDLL
|
||||
$ImportLibrary
|
||||
$MergeSections
|
||||
$TargetMachine
|
||||
$Profile
|
||||
$CLRThreadAttribute
|
||||
$CLRImageType
|
||||
$KeyFile
|
||||
$KeyContainer
|
||||
$DelaySign
|
||||
$ErrorReporting "Prompt Immediately (/ERRORREPORT:PROMPT)"
|
||||
$CLRUnmanagedCodeCheck
|
||||
// Most DLLs cannot yet handle SafeSEH
|
||||
$ImageHasSafeExceptionHandlers "false"
|
||||
|
||||
// Command Line
|
||||
$AdditionalOptions
|
||||
}
|
||||
|
||||
$ManifestTool
|
||||
{
|
||||
// General
|
||||
$SuppressStartupBanner "Yes (/nologo)"
|
||||
$VerboseOutput
|
||||
$AssemblyIdentity
|
||||
$UseUNICODEResponseFiles
|
||||
$UseFAT32WorkAround
|
||||
|
||||
// Input And Output
|
||||
$AdditionalManifestFiles
|
||||
$InputResourceManifests
|
||||
$EmbedManifest
|
||||
$OutputManifestFile
|
||||
$ManifestResourceFile
|
||||
$GenerateCatalogFiles
|
||||
$DependencyInformationFile
|
||||
|
||||
// Isolated COM
|
||||
$TypeLibraryFile
|
||||
$RegistrarScriptFile
|
||||
$ComponentFileName
|
||||
$ReplacementsFile
|
||||
|
||||
// Advanced
|
||||
$UpdateFileHashes
|
||||
$UpdateFileHashesSearchPath
|
||||
|
||||
// Command Line
|
||||
$AdditionalOptions
|
||||
}
|
||||
|
||||
$XMLDocumentGenerator
|
||||
{
|
||||
// General
|
||||
$SuppressStartupBanner "Yes (/nologo)"
|
||||
$ValidateIntelliSense
|
||||
$AdditionalDocumentFiles
|
||||
$OutputDocumentFile
|
||||
$DocumentLibraryDependencies
|
||||
$UseUNICODEResponseFiles
|
||||
}
|
||||
|
||||
$BrowseInformation
|
||||
{
|
||||
$SuppressStartupBanner "Yes (/nologo)"
|
||||
$OutputFile "$(OutDir)/$OUTBINNAME.bsc"
|
||||
$AdditionalOptions
|
||||
}
|
||||
|
||||
$Resources
|
||||
{
|
||||
// General
|
||||
$PreprocessorDefinitions "$BASE;NDEBUG;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;%(PreprocessorDefinitions)"
|
||||
$Culture "English (United States) (0x409)"
|
||||
$AdditionalIncludeDirectories
|
||||
$IgnoreStandardIncludePath
|
||||
$ShowProgress
|
||||
$ResourceFileName
|
||||
|
||||
// Command Line
|
||||
$AdditionalOptions
|
||||
}
|
||||
|
||||
$PreBuildEvent
|
||||
{
|
||||
$CommandLine
|
||||
$Description
|
||||
$ExcludedFromBuild "No"
|
||||
}
|
||||
|
||||
$PreLinkEvent
|
||||
{
|
||||
$CommandLine
|
||||
$Description
|
||||
$ExcludedFromBuild "No"
|
||||
}
|
||||
|
||||
$PostBuildEvent
|
||||
{
|
||||
$CommandLine
|
||||
$Description
|
||||
$ExcludedFromBuild "No"
|
||||
}
|
||||
|
||||
$CustomBuildStep
|
||||
{
|
||||
// General
|
||||
$CommandLine
|
||||
$Description
|
||||
$Outputs
|
||||
$AdditionalDependencies
|
||||
}
|
||||
}
|
||||
133
vpc_scripts/source_dll_x360_base.vpc
Normal file
133
vpc_scripts/source_dll_x360_base.vpc
Normal file
@@ -0,0 +1,133 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// SOURCE_DLL_X360_BASE.VPC
|
||||
//
|
||||
// Base Settings for Source(TM) Projects
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
$Include "$SRCDIR\vpc_scripts\version.vpc"
|
||||
|
||||
$MacroRequired "SRCDIR"
|
||||
$MacroRequired "OUTBINNAME" "$PROJECTNAME"
|
||||
$MacroRequired "OUTBINDIR"
|
||||
$MacroRequired "DEVKITBINDIR" "bin"
|
||||
|
||||
// 360 must have a dll load address
|
||||
$Include "$SRCDIR\vpc_scripts\loadaddress.vpc"
|
||||
$MacroRequired "LOADADDRESS_DEVELOPMENT"
|
||||
$MacroRequired "LOADADDRESS_RETAIL"
|
||||
$MacroRequired "LOADADDRESSNAME"
|
||||
|
||||
$Macro DLLDEMOSUFFIX "_demo\" [$DEMO]
|
||||
$MacroEmptyString DLLDEMOSUFFIX "empty" [!$DEMO]
|
||||
|
||||
$Macro LIBPUBLIC "$SRCDIR\lib\public"
|
||||
$Macro LIBCOMMON "$SRCDIR\lib\common"
|
||||
|
||||
$Include "$SRCDIR\vpc_scripts\source_dll_x360_debug.vpc"
|
||||
$Include "$SRCDIR\vpc_scripts\source_dll_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;DLLNAME=$OUTBINNAME"
|
||||
}
|
||||
|
||||
$Linker
|
||||
{
|
||||
// This ignores the linker error "export '<symbol>' specified multiple times; using first specification
|
||||
$AdditionalOptions "$BASE /IGNORE:4197"
|
||||
}
|
||||
|
||||
$Xbox360ImageConversion
|
||||
{
|
||||
// All X360 DLLs must be signed with a special XML containing only version field
|
||||
// the version of the DLL must match the version of default.xex that is signed
|
||||
// with another XML including more settings (privileges, ratings, memory, etc.)
|
||||
// DLLs must NOT be signed with the XML used for XEX
|
||||
$ProjectDefaults "$SRCDIR\common\xlast_$VPCGAME$DLLDEMOSUFFIX\$VPCGAME""_dll.xml"
|
||||
}
|
||||
|
||||
$ConsoleDeployment
|
||||
{
|
||||
$ExcludedFromBuild "Yes"
|
||||
$DeploymentRoot "xe:\$VPCGAME$DLLDEMOSUFFIX"
|
||||
}
|
||||
|
||||
$PreBuildEvent
|
||||
{
|
||||
$CommandLine "if EXIST $OUTBINDIR\$(TargetFileName) for /f $QUOTEdelims=$QUOTE %%A in ('attrib $QUOTE$OUTBINDIR\$(TargetFileName)$QUOTE') do set valveTmpIsReadOnly=$QUOTE%%A$QUOTE" "\n" \
|
||||
"set valveTmpIsReadOnlyLetter=%valveTmpIsReadOnly:~6,1%" "\n" \
|
||||
"if $QUOTE%valveTmpIsReadOnlyLetter%$QUOTE==$QUOTER$QUOTE del /q $(TargetDir)$(TargetName)_converted.dll" "\n" \
|
||||
"$CRCCHECK" "\n"
|
||||
}
|
||||
|
||||
$PostBuildEvent
|
||||
{
|
||||
$CommandLine "call $SRCDIR\vpc_scripts\valve_p4_edit.cmd $OUTBINDIR\$(TargetFileName) $SRCDIR" "\n" \
|
||||
"copy $(TargetDir)$(TargetName)_converted.dll $OUTBINDIR\$(TargetFileName)" "\n" \
|
||||
"if exist $(TargetDir)$(TargetName).map copy $(TargetDir)$(TargetName).map $OUTBINDIR\$(TargetName).map" "\n" \
|
||||
"call $SRCDIR\vpc_scripts\valve_p4_edit.cmd $OUTBINDIR\$(TargetName).pdb $SRCDIR" "\n" \
|
||||
"copy $(TargetDir)$(TargetName).pdb $OUTBINDIR\$(TargetName).pdb" "\n" \
|
||||
"copy $(TargetDir)$(TargetName).xdb $OUTBINDIR\$(TargetName).xdb" "\n" \
|
||||
"call $SRCDIR\vpc_scripts\valve_xbcp_wrapper.cmd $(TargetDir)$(TargetName)_converted.dll $(RemoteRoot)\$DEVKITBINDIR\$(TargetFileName)" "\n"
|
||||
|
||||
$CommandLine "$BASE" \
|
||||
"echo LoadAddressName=$LOADADDRESSNAME > $(TargetDir)$(TargetName).vpcinfo" "\n" \
|
||||
"call $SRCDIR\vpc_scripts\valve_xbcp_wrapper.cmd $(TargetDir)$(TargetName).vpcinfo $(RemoteRoot)\$DEVKITBINDIR\$(TargetName).vpcinfo" "\n" [$VPCINFO]
|
||||
|
||||
|
||||
$Description "Publishing to $OUTBINDIR"
|
||||
$ExcludedFromBuild "No"
|
||||
}
|
||||
|
||||
|
||||
// this forces a dependency on the published directory
|
||||
// when the dependency fails (the dll was deleted), the PostBuildEvent will run, thus causing the publish to re-occur
|
||||
// this allows for faster debug/release flipping without having to recompile or relink
|
||||
$CustomBuildStep
|
||||
{
|
||||
// General
|
||||
$CommandLine "echo Checking Dependency $OUTBINDIR\$(TargetFileName)"
|
||||
$Description " "
|
||||
$Outputs "$OUTBINDIR\$(TargetFileName)"
|
||||
}
|
||||
}
|
||||
|
||||
// Skeleton Project
|
||||
$Project
|
||||
{
|
||||
$Folder "Source Files"
|
||||
{
|
||||
$File "$SRCDIR\public\tier0\memoverride.cpp"
|
||||
{
|
||||
$Configuration
|
||||
{
|
||||
$Compiler
|
||||
{
|
||||
$Create/UsePrecompiledHeader "Not Using Precompiled Headers"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$Folder "Xbox"
|
||||
{
|
||||
$File "xbox\xbox.def"
|
||||
}
|
||||
|
||||
$Folder "Link Libraries"
|
||||
{
|
||||
$ImpLib "$LIBPUBLIC\tier0"
|
||||
$Lib "$LIBPUBLIC\tier1"
|
||||
$Implib "$LIBPUBLIC\vstdlib"
|
||||
$Lib "$LIBPUBLIC\interfaces"
|
||||
}
|
||||
}
|
||||
|
||||
262
vpc_scripts/source_dll_x360_debug.vpc
Normal file
262
vpc_scripts/source_dll_x360_debug.vpc
Normal file
@@ -0,0 +1,262 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// SOURCE_DLL_X360_DEBUG.VPC
|
||||
//
|
||||
// Base Settings for Source(TM) Projects
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
$MacroRequired "LOADADDRESS_DEVELOPMENT"
|
||||
$MacroRequired "SRCDIR"
|
||||
$MacroRequired "OUTBINNAME"
|
||||
$MacroRequired "OUTBINDIR"
|
||||
|
||||
$IgnoreRedundancyWarning "ON"
|
||||
|
||||
$Configuration "Debug"
|
||||
{
|
||||
$General
|
||||
{
|
||||
// General
|
||||
$OutputDirectory ".\Debug_360"
|
||||
$IntermediateDirectory ".\Debug_360"
|
||||
$ExtensionsToDeleteOnClean
|
||||
$BuildLogFile
|
||||
$InheritedProjectPropertySheets
|
||||
|
||||
// Project Defaults
|
||||
$ConfigurationType "Dynamic Library (.xex)"
|
||||
$CharacterSet "Not Set"
|
||||
$WholeProgramOptimization "No Whole Program Optimization"
|
||||
}
|
||||
|
||||
$Debugging
|
||||
{
|
||||
// Action
|
||||
$Command
|
||||
$CommandArguments
|
||||
$MapDVDDrive
|
||||
$RemoteMachine
|
||||
}
|
||||
|
||||
$Compiler
|
||||
{
|
||||
// General
|
||||
$AdditionalIncludeDirectories "$SRCDIR\common;$SRCDIR\public;$SRCDIR\public\tier0;$SRCDIR\public\tier1"
|
||||
$DebugInformationFormat "Program Database (/Zi)"
|
||||
$SuppressStartupBanner "Yes (/nologo)"
|
||||
$WarningLevel "Level 4 (/W4)"
|
||||
$TreatWarningsAsErrors "No"
|
||||
|
||||
// Optimization
|
||||
$Optimization "Disabled (/Od)"
|
||||
$InlineFunctionExpansion "Default"
|
||||
$EnableIntrinsicFunctions "Yes (/Oi)"
|
||||
$FavorSizeOrSpeed "Neither"
|
||||
$EnableFiberSafeOptimizations "No"
|
||||
$WholeProgramOptimization "No"
|
||||
|
||||
// Preprocessor
|
||||
$PreprocessorDefinitions "_HAS_ITERATOR_DEBUGGING=0;_X360;_DEBUG;DEBUG;_USRDLL;_WIN32;WIN32;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE"
|
||||
$PreprocessorDefinitions "$BASE;_CERT" [$CERT]
|
||||
$IgnoreStandardIncludePath "No"
|
||||
$GeneratePreprocessedFile "No"
|
||||
$KeepComments "No"
|
||||
|
||||
// Code Generation
|
||||
$EnableStringPooling "Yes (/GF)"
|
||||
$EnableMinimalRebuild "Yes (/Gm)"
|
||||
$EnableC++Exceptions "No"
|
||||
$SmallerTypeCheck "No"
|
||||
$BasicRuntimeChecks "Both (/RTC1, equiv. to /RTCsu)"
|
||||
$RuntimeLibrary "Multi-threaded Debug (/MTd)"
|
||||
$StructMemberAlignment "Default"
|
||||
// 360 Issue: Enable BufferSecurityCheck below in AdditionalOptions
|
||||
$BufferSecurityCheck "No"
|
||||
$EnableFunctionLevelLinking "No"
|
||||
$FloatingPointModel "Fast (/fp:fast)"
|
||||
$EnableFloatingPointExceptions "No"
|
||||
|
||||
// Language
|
||||
$DisableLanguageExtensions "No"
|
||||
$DefaultCharUnsigned "No"
|
||||
$TreatWCHAR_TAsBuiltInType "Yes (/Zc:wchar_t)"
|
||||
$ForceConformanceInForLoopScope "Yes (/Zc:forScope)"
|
||||
$EnableRunTimeTypeInfo "Yes (/GR)"
|
||||
$OpenMPSupport "No"
|
||||
|
||||
// Precompiled Headers
|
||||
$Create/UsePrecompiledHeader "Not Using Precompiled Headers"
|
||||
$Create/UsePCHThroughFile
|
||||
$PrecompiledHeaderFile
|
||||
|
||||
// Output Files
|
||||
$ExpandAttributedSource "No"
|
||||
$AssemblerOutput "No Listing"
|
||||
$ASMListLocation "$(IntDir)/"
|
||||
$ObjectFileName "$(IntDir)/"
|
||||
$ProgramDatabaseFileName "$(IntDir)/"
|
||||
|
||||
// Browse Information
|
||||
$EnableBrowseInformation "None"
|
||||
$BrowseFile "$(IntDir)/"
|
||||
|
||||
// Advanced
|
||||
$CompileAs "Compile as C++ Code (/TP)"
|
||||
$DisableSpecificWarnings
|
||||
$ForceIncludes "tier0/platform.h"
|
||||
$ShowIncludes "No"
|
||||
$UndefinePreprocessorDefinitions
|
||||
$UndefineAllPreprocessorDefinitions "No"
|
||||
$UseFullPaths "Yes (/FC)"
|
||||
$OmitDefaultLibraryNames "No"
|
||||
|
||||
// Xbox 360
|
||||
$RegisterReservation "No"
|
||||
$TrapIntegerDividesOptimization "No"
|
||||
$PreschedulingOptimization "No"
|
||||
$InlineAssemblyOptimization "No"
|
||||
$Stalls "No"
|
||||
$CallAttributedProfiling "Disabled"
|
||||
|
||||
// Command Line
|
||||
$AdditionalOptions "/QVMX128 /GS"
|
||||
}
|
||||
|
||||
$Linker
|
||||
{
|
||||
// General
|
||||
$OutputFile "$(OutDir)/$OUTBINNAME_360.dll"
|
||||
$ShowProgress "Not Set"
|
||||
$Version
|
||||
$EnableIncrementalLinking "Yes (/INCREMENTAL)"
|
||||
$SuppressStartupBanner "Yes (/NOLOGO)"
|
||||
$IgnoreImportLibrary "No"
|
||||
$AdditionalLibraryDirectories "$SRCDIR\lib\common;$SRCDIR\lib\public"
|
||||
$LinkLibraryDependencies
|
||||
$UseLibraryDependencyInputs
|
||||
|
||||
// Input
|
||||
$AdditionalDependencies "d3d9d.lib xapilibd.lib xboxkrnl.lib xgraphicsd.lib libpmcpbd.lib"
|
||||
$AdditionalDependencies "d3d9d.lib xapilibd.lib xboxkrnl.lib xgraphicsd.lib libpmcpbd.lib xbdm.lib" [$PROFILE]
|
||||
$AdditionalDependencies "d3d9d.lib xapilibd.lib xboxkrnl.lib xgraphicsd.lib" [$CERT]
|
||||
$IgnoreAllDefaultLibraries "No"
|
||||
$IgnoreSpecificLibrary "libc;libcd;libcmt;xapilib"
|
||||
$ModuleDefinitionFile "xbox\xbox.def"
|
||||
$ForceSymbolReferences
|
||||
|
||||
// Debugging
|
||||
$GenerateDebugInfo "Yes (/DEBUG)"
|
||||
$GenerateProgramDatabaseFile "$(IntDir)/$(TargetName).pdb"
|
||||
$StripPrivateSymbols
|
||||
$GenerateMapFile "No"
|
||||
$MapFileName "$(IntDir)/$(TargetName).map"
|
||||
$MapExports "Yes (/MAPINFO:EXPORTS)"
|
||||
|
||||
// System
|
||||
$StackReserveSize "327680"
|
||||
$StackCommitSize "327680"
|
||||
|
||||
// Optimization
|
||||
$References "Default"
|
||||
$EnableCOMDATFolding "Default"
|
||||
$FunctionOrder
|
||||
$ProfileGuidedDatabase
|
||||
$LinkTimeCodeGeneration "Default"
|
||||
|
||||
// Advanced
|
||||
$EntryPoint "_DllMainCRTStartup"
|
||||
$NoEntryPoint "No"
|
||||
$SetChecksum "No"
|
||||
$BaseAddress "$LOADADDRESS_DEVELOPMENT"
|
||||
$FixedBaseAddress "Image must be loaded at a fixed address (/FIXED)"
|
||||
$ImportLibrary
|
||||
$MergeSections
|
||||
$ErrorReporting "Prompt Immediately (/ERRORREPORT:PROMPT)"
|
||||
|
||||
// Command Line
|
||||
$AdditionalOptions
|
||||
}
|
||||
|
||||
$Xbox360ImageConversion
|
||||
{
|
||||
// General
|
||||
$OutputFile "$(OutDir)/$OUTBINNAME_360_converted.dll"
|
||||
$TitleID
|
||||
$LANKey
|
||||
$SuppressStartupBanner "Yes (/NOLOGO)"
|
||||
$BaseAddress
|
||||
$HeapSize
|
||||
$WorkspaceSize "0xA0000"
|
||||
$AdditionalSections
|
||||
$ExportByName "No"
|
||||
|
||||
// Privileges
|
||||
$OpticalDiscDriveMapping "Not Set"
|
||||
$PAL50Incompatible "Not Set"
|
||||
|
||||
// Project Defaults
|
||||
$ProjectDefaults
|
||||
|
||||
// Command Line
|
||||
$AdditionalOptions
|
||||
}
|
||||
|
||||
$BrowseInformation
|
||||
{
|
||||
$SuppressStartupBanner "Yes (/nologo)"
|
||||
$OutputFile "$(OutDir)/$OUTBINNAME.bsc"
|
||||
$AdditionalOptions
|
||||
}
|
||||
|
||||
$PreBuildEvent
|
||||
{
|
||||
$CommandLine
|
||||
$Description
|
||||
$ExcludedFromBuild "No"
|
||||
}
|
||||
|
||||
$PreLinkEvent
|
||||
{
|
||||
$CommandLine
|
||||
$Description
|
||||
$ExcludedFromBuild "No"
|
||||
}
|
||||
|
||||
$PostBuildEvent
|
||||
{
|
||||
$CommandLine
|
||||
$Description
|
||||
$ExcludedFromBuild "No"
|
||||
}
|
||||
|
||||
$CustomBuildStep
|
||||
{
|
||||
// General
|
||||
$CommandLine
|
||||
$Description
|
||||
$Outputs
|
||||
$AdditionalDependencies
|
||||
}
|
||||
|
||||
$ConsoleDeployment
|
||||
{
|
||||
// Common Settings
|
||||
$DeploymentType "Copy to Hard Drive"
|
||||
$DeploymentFiles "$(RemoteRoot)=$(ImagePath);"
|
||||
|
||||
// Copy to Hard Drive
|
||||
$ExcludedFromBuild "Yes"
|
||||
$SuppressStartupBanner "Yes (/nologo)"
|
||||
$Progress "No"
|
||||
$ForceCopy "No"
|
||||
$DeploymentRoot
|
||||
|
||||
// Emulate DVD Drive
|
||||
$EmulationType
|
||||
$Layout
|
||||
$LayoutRoot
|
||||
|
||||
// Command Line
|
||||
$AdditionalOptions
|
||||
}
|
||||
}
|
||||
|
||||
265
vpc_scripts/source_dll_x360_release.vpc
Normal file
265
vpc_scripts/source_dll_x360_release.vpc
Normal file
@@ -0,0 +1,265 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// SOURCE_DLL_X360_RELEASE.VPC
|
||||
//
|
||||
// Base Settings for Source(TM) Projects
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
$MacroRequired "LOADADDRESS_RETAIL"
|
||||
$MacroRequired "SRCDIR"
|
||||
$MacroRequired "OUTBINNAME"
|
||||
$MacroRequired "OUTBINDIR"
|
||||
|
||||
$IgnoreRedundancyWarning "ON"
|
||||
|
||||
$Configuration "Release"
|
||||
{
|
||||
$General
|
||||
{
|
||||
// General
|
||||
$OutputDirectory ".\Release_360"
|
||||
$IntermediateDirectory ".\Release_360"
|
||||
$ExtensionsToDeleteOnClean
|
||||
$BuildLogFile
|
||||
$InheritedProjectPropertySheets
|
||||
|
||||
// Project Defaults
|
||||
$ConfigurationType "Dynamic Library (.xex)"
|
||||
$CharacterSet "Not Set"
|
||||
$WholeProgramOptimization
|
||||
}
|
||||
|
||||
$Debugging
|
||||
{
|
||||
// Action
|
||||
$Command
|
||||
$CommandArguments
|
||||
$MapDVDDrive
|
||||
$RemoteMachine
|
||||
}
|
||||
|
||||
$Compiler
|
||||
{
|
||||
// General
|
||||
$AdditionalIncludeDirectories "$SRCDIR\common;$SRCDIR\public;$SRCDIR\public\tier0;$SRCDIR\public\tier1"
|
||||
$DebugInformationFormat "Program Database (/Zi)"
|
||||
$SuppressStartupBanner "Yes (/nologo)"
|
||||
$WarningLevel "Level 4 (/W4)"
|
||||
$TreatWarningsAsErrors "No"
|
||||
|
||||
// Optimization
|
||||
$Optimization "Full Optimization (/Ox)"
|
||||
$InlineFunctionExpansion "Any Suitable (/Ob2)"
|
||||
$EnableIntrinsicFunctions "Yes (/Oi)"
|
||||
$FavorSizeOrSpeed "Favor Fast Code (/Ot)"
|
||||
$EnableFiberSafeOptimizations
|
||||
$WholeProgramOptimization
|
||||
|
||||
// Preprocessor
|
||||
$PreprocessorDefinitions "_X360;NDEBUG;_USRDLL;_WIN32;WIN32;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;__VMX128_SUPPORTED"
|
||||
$PreprocessorDefinitions "$BASE;_CERT" [$CERT]
|
||||
$PreprocessorDefinitions "$BASE;PROFILE" [$PROFILE]
|
||||
$IgnoreStandardIncludePath
|
||||
$GeneratePreprocessedFile
|
||||
$KeepComments "No"
|
||||
|
||||
// Code Generation
|
||||
$EnableStringPooling "Yes (/GF)"
|
||||
$EnableMinimalRebuild "No"
|
||||
$EnableC++Exceptions "No"
|
||||
$SmallerTypeCheck "No"
|
||||
$BasicRuntimeChecks "Default"
|
||||
$RuntimeLibrary "Multi-threaded (/MT)"
|
||||
$StructMemberAlignment "Default"
|
||||
$BufferSecurityCheck "No"
|
||||
$EnableFunctionLevelLinking "Yes (/Gy)"
|
||||
$FloatingPointModel "Fast (/fp:fast)"
|
||||
$EnableFloatingPointExceptions "No"
|
||||
|
||||
// Language
|
||||
$DisableLanguageExtensions "No"
|
||||
$DefaultCharUnsigned "No"
|
||||
$TreatWCHAR_TAsBuiltInType "Yes (/Zc:wchar_t)"
|
||||
$ForceConformanceInForLoopScope "Yes (/Zc:forScope)"
|
||||
$EnableRunTimeTypeInfo "Yes (/GR)"
|
||||
$OpenMPSupport "No"
|
||||
|
||||
// Precompiled Headers
|
||||
$Create/UsePrecompiledHeader "Not Using Precompiled Headers"
|
||||
$Create/UsePCHThroughFile
|
||||
$PrecompiledHeaderFile
|
||||
|
||||
// Output Files
|
||||
$ExpandAttributedSource "No"
|
||||
$AssemblerOutput "No Listing"
|
||||
$ASMListLocation "$(IntDir)/"
|
||||
$ObjectFileName "$(IntDir)/"
|
||||
$ProgramDatabaseFileName "$(IntDir)/"
|
||||
|
||||
// Browse Information
|
||||
$EnableBrowseInformation "None"
|
||||
$BrowseFile "$(IntDir)/"
|
||||
|
||||
// Advanced
|
||||
$CompileAs "Compile as C++ Code (/TP)"
|
||||
$DisableSpecificWarnings
|
||||
$ForceIncludes "tier0/platform.h"
|
||||
$ShowIncludes "No"
|
||||
$UndefinePreprocessorDefinitions
|
||||
$UndefineAllPreprocessorDefinitions "No"
|
||||
$UseFullPaths
|
||||
$OmitDefaultLibraryNames
|
||||
|
||||
// Xbox 360
|
||||
$RegisterReservation
|
||||
$TrapIntegerDividesOptimization
|
||||
$PreschedulingOptimization
|
||||
$InlineAssemblyOptimization
|
||||
$Stalls
|
||||
$CallAttributedProfiling "Call profiler within function calls. (/callcap)" [$CALLCAP]
|
||||
$CallAttributedProfiling "Call profiler around function calls. (/fastcap)" [$FASTCAP]
|
||||
|
||||
// Command Line
|
||||
$AdditionalOptions "$BASE /QVMX128"
|
||||
$AdditionalOptions "$BASE /Oy-" [$NOFPO]
|
||||
}
|
||||
|
||||
$Linker
|
||||
{
|
||||
// General
|
||||
$OutputFile "$(OutDir)/$OUTBINNAME_360.dll"
|
||||
$ShowProgress "Not Set"
|
||||
$Version
|
||||
$EnableIncrementalLinking "No (/INCREMENTAL:NO)"
|
||||
$SuppressStartupBanner "Yes (/NOLOGO)"
|
||||
$IgnoreImportLibrary "No"
|
||||
$AdditionalLibraryDirectories "$SRCDIR\lib\common;$SRCDIR\lib\public"
|
||||
$LinkLibraryDependencies
|
||||
$UseLibraryDependencyInputs
|
||||
|
||||
// Input
|
||||
$AdditionalDependencies "d3d9.lib xapilib.lib xboxkrnl.lib xgraphics.lib libpmcpb.lib" [!$PROFILE]
|
||||
$AdditionalDependencies "d3d9i.lib xapilibi.lib xboxkrnl.lib xgraphics.lib libpmcpb.lib xbdm.lib" [$PROFILE]
|
||||
$AdditionalDependencies "d3d9.lib xapilib.lib xboxkrnl.lib xgraphics.lib" [$CERT]
|
||||
$IgnoreAllDefaultLibraries "No"
|
||||
$IgnoreSpecificLibrary "libc;libcd;libcmtd" [!$PROFILE]
|
||||
$IgnoreSpecificLibrary "libc;libcd;libcmtd;xapilib" [$PROFILE]
|
||||
$ModuleDefinitionFile "xbox\xbox.def"
|
||||
$ForceSymbolReferences
|
||||
|
||||
// Debugging
|
||||
$GenerateDebugInfo "Yes (/DEBUG)"
|
||||
$GenerateProgramDatabaseFile "$(IntDir)/$(TargetName).pdb"
|
||||
$StripPrivateSymbols
|
||||
$GenerateMapFile "No"
|
||||
$MapFileName "$(IntDir)/$(TargetName).map"
|
||||
$MapExports "Yes (/MAPINFO:EXPORTS)"
|
||||
|
||||
// System
|
||||
$StackReserveSize "327680"
|
||||
$StackCommitSize "327680"
|
||||
|
||||
// Optimization
|
||||
$References "Eliminate Unreferenced Data (/OPT:REF)"
|
||||
$EnableCOMDATFolding "Remove Redundant COMDATs (/OPT:ICF)"
|
||||
$FunctionOrder
|
||||
$ProfileGuidedDatabase
|
||||
$LinkTimeCodeGeneration
|
||||
|
||||
// Advanced
|
||||
$EntryPoint "_DllMainCRTStartup"
|
||||
$NoEntryPoint "No"
|
||||
$SetChecksum "Yes (/RELEASE)"
|
||||
$BaseAddress "$LOADADDRESS_DEVELOPMENT"
|
||||
$BaseAddress "$LOADADDRESS_RETAIL" [$RETAIL]
|
||||
$FixedBaseAddress "Image must be loaded at a fixed address (/FIXED)"
|
||||
$ImportLibrary
|
||||
$MergeSections
|
||||
$ErrorReporting "Prompt Immediately (/ERRORREPORT:PROMPT)"
|
||||
|
||||
// Command Line
|
||||
}
|
||||
|
||||
$Xbox360ImageConversion
|
||||
{
|
||||
// General
|
||||
$OutputFile "$(OutDir)/$OUTBINNAME_360_converted.dll"
|
||||
$TitleID
|
||||
$LANKey
|
||||
$SuppressStartupBanner "Yes (/NOLOGO)"
|
||||
$BaseAddress
|
||||
$HeapSize
|
||||
$WorkspaceSize "0xA0000"
|
||||
$AdditionalSections
|
||||
$ExportByName "No"
|
||||
|
||||
// Privileges
|
||||
$OpticalDiscDriveMapping "Not Set"
|
||||
$PAL50Incompatible "Not Set"
|
||||
|
||||
// Project Defaults
|
||||
$ProjectDefaults
|
||||
|
||||
// Command Line
|
||||
$AdditionalOptions
|
||||
}
|
||||
|
||||
$BrowseInformation
|
||||
{
|
||||
$SuppressStartupBanner "Yes (/nologo)"
|
||||
$OutputFile "$(OutDir)/$OUTBINNAME.bsc"
|
||||
$AdditionalOptions
|
||||
}
|
||||
|
||||
$PreBuildEvent
|
||||
{
|
||||
$CommandLine
|
||||
$Description
|
||||
$ExcludedFromBuild "No"
|
||||
}
|
||||
|
||||
$PreLinkEvent
|
||||
{
|
||||
$CommandLine
|
||||
$Description
|
||||
$ExcludedFromBuild "No"
|
||||
}
|
||||
|
||||
$PostBuildEvent
|
||||
{
|
||||
$CommandLine
|
||||
$Description
|
||||
$ExcludedFromBuild "No"
|
||||
}
|
||||
|
||||
$CustomBuildStep
|
||||
{
|
||||
// General
|
||||
$CommandLine
|
||||
$Description
|
||||
$Outputs
|
||||
$AdditionalDependencies
|
||||
}
|
||||
|
||||
$ConsoleDeployment
|
||||
{
|
||||
// Common Settings
|
||||
$DeploymentType "Copy to Hard Drive"
|
||||
$DeploymentFiles "$(RemoteRoot)=$(ImagePath);"
|
||||
|
||||
// Copy to Hard Drive
|
||||
$ExcludedFromBuild "Yes"
|
||||
$SuppressStartupBanner "Yes (/nologo)"
|
||||
$Progress "No"
|
||||
$ForceCopy "No"
|
||||
$DeploymentRoot
|
||||
|
||||
// Emulate DVD Drive
|
||||
$EmulationType
|
||||
$Layout
|
||||
$LayoutRoot
|
||||
|
||||
// Command Line
|
||||
$AdditionalOptions
|
||||
}
|
||||
}
|
||||
|
||||
20
vpc_scripts/source_exe_base.vpc
Normal file
20
vpc_scripts/source_exe_base.vpc
Normal file
@@ -0,0 +1,20 @@
|
||||
$Include "$SRCDIR\vpc_scripts\platform_dirs.vpc"
|
||||
$include "$SRCDIR\vpc_scripts\source_base.vpc"
|
||||
|
||||
$Include "$SRCDIR\vpc_scripts\source_exe_posix_base.vpc" [$POSIX]
|
||||
$Include "$SRCDIR\vpc_scripts\source_exe_win_win32_base.vpc" [$WIN32 || $WIN64]
|
||||
$Include "$SRCDIR\vpc_scripts\source_xex_x360_base.vpc" [$X360]
|
||||
$Include "$SRCDIR\vpc_scripts\source_ppu_elf_ps3_base.vpc" [$PS3]
|
||||
|
||||
$Include "$SRCDIR\vpc_scripts\source_video_base.vpc"
|
||||
|
||||
$Configuration
|
||||
{
|
||||
$Compiler
|
||||
{
|
||||
$PreprocessorDefinitions "$BASE;DEV_BUILD" [!$PUBLISH]
|
||||
$PreprocessorDefinitions "$BASE;_PROFILE" [$PROFILE && !$RETAIL]
|
||||
$PreprocessorDefinitions "$BASE;RETAIL_ASSERTS" [$RETAIL && $RETAILASSERTS]
|
||||
$PreprocessorDefinitions "$BASE;FRAME_POINTER_OMISSION_DISABLED" // This is now always true.
|
||||
}
|
||||
}
|
||||
18
vpc_scripts/source_exe_con_base.vpc
Normal file
18
vpc_scripts/source_exe_con_base.vpc
Normal file
@@ -0,0 +1,18 @@
|
||||
$Include "$SRCDIR\vpc_scripts\platform_dirs.vpc"
|
||||
$include "$SRCDIR\vpc_scripts\source_base.vpc"
|
||||
|
||||
|
||||
$Include "$SRCDIR\vpc_scripts\source_exe_con_win32_base.vpc" [$WINDOWS]
|
||||
$Include "$SRCDIR\vpc_scripts\source_exe_posix_base.vpc" [$POSIX]
|
||||
$Include "$SRCDIR\vpc_scripts\source_xex_x360_base.vpc" [$X360]
|
||||
|
||||
$Configuration
|
||||
{
|
||||
$Compiler
|
||||
{
|
||||
$PreprocessorDefinitions "$BASE;DEV_BUILD" [!$PUBLISH]
|
||||
$PreprocessorDefinitions "$BASE;_PROFILE" [$PROFILE && !$RETAIL]
|
||||
$PreprocessorDefinitions "$BASE;RETAIL_ASSERTS" [$RETAIL && $RETAILASSERTS]
|
||||
$PreprocessorDefinitions "$BASE;FRAME_POINTER_OMISSION_DISABLED" // This is now always true.
|
||||
}
|
||||
}
|
||||
26
vpc_scripts/source_exe_con_win32_base.vpc
Normal file
26
vpc_scripts/source_exe_con_win32_base.vpc
Normal file
@@ -0,0 +1,26 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// SOURCE_EXE_CON_WIN32_BASE.VPC
|
||||
//
|
||||
// Base Settings for all Source(TM) Projects
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
$IgnoreRedundancyWarning "ON"
|
||||
$MacroRequired "SRCDIR"
|
||||
$MacroRequired "OUTBINDIR"
|
||||
$MacroRequired "PLATSUBDIR"
|
||||
|
||||
|
||||
$Include "$SRCDIR\vpc_scripts\source_exe_win_win32_base.vpc"
|
||||
|
||||
$Configuration
|
||||
{
|
||||
$General
|
||||
{
|
||||
$TargetName "$OUTBINNAME"
|
||||
}
|
||||
|
||||
$Linker
|
||||
{
|
||||
$SubSystem "Console (/SUBSYSTEM:CONSOLE)"
|
||||
}
|
||||
}
|
||||
71
vpc_scripts/source_exe_posix_base.vpc
Normal file
71
vpc_scripts/source_exe_posix_base.vpc
Normal file
@@ -0,0 +1,71 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// SOURCE_EXE_posix.VPC
|
||||
//
|
||||
// Base Settings for Source(TM) Projects
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
$Include "$SRCDIR\vpc_scripts\version.vpc"
|
||||
|
||||
$MacroRequired "SRCDIR"
|
||||
$MacroRequired "OUTBINNAME" "$PROJECTNAME"
|
||||
$Macro IS_LIB_PROJECT "1"
|
||||
$Include "$SRCDIR\vpc_scripts\source_posix_base.vpc"
|
||||
|
||||
$Include "$SRCDIR\vpc_scripts\loadaddress.vpc"
|
||||
|
||||
|
||||
$IgnoreRedundancyWarning "ON"
|
||||
|
||||
$Configuration
|
||||
{
|
||||
$General
|
||||
{
|
||||
$ConfigurationType "Application (.exe)"
|
||||
}
|
||||
|
||||
$Compiler
|
||||
{
|
||||
$PreprocessorDefinitions "$BASE;EXENAME=$OUTBINNAME"
|
||||
}
|
||||
|
||||
$Linker
|
||||
{
|
||||
$OutputFile "$SRCDIR/../game/$OUTBINNAME"
|
||||
|
||||
// In order to get the Valve standard allocator memory alignment (16-byte
|
||||
// alignment for objects that are a multiple of 16 bytes) we use tcmalloc.
|
||||
// Using -l will ask the linker to use it, but if there are no references
|
||||
// to malloc/free then it may not actually use it. Wrapping the flag in the
|
||||
// as-needed controls forces it to be pulled in (from libtcmalloc_minimal.so).
|
||||
$GCC_ExtraLinkerFlags "-Wl,--no-as-needed -ltcmalloc_minimal -Wl,--as-needed" [$LINUXALL&&!$DEDICATED]
|
||||
}
|
||||
}
|
||||
|
||||
$Project
|
||||
{
|
||||
$Folder "Source Files"
|
||||
{
|
||||
$File "$SRCDIR\public\tier0\memoverride.cpp"
|
||||
{
|
||||
$Configuration
|
||||
{
|
||||
$Compiler
|
||||
{
|
||||
$Create/UsePrecompiledHeader "Not Using Precompiled Headers"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$Folder "Resources"
|
||||
{
|
||||
$File "$ROOTSCRIPT"
|
||||
}
|
||||
|
||||
$Folder "Link Libraries" [$LINUXALL&&!$DEDICATED]
|
||||
{
|
||||
$File "$SRCDIR/thirdparty/gperftools-2.0/.libs/libtcmalloc_minimal.so"
|
||||
}
|
||||
}
|
||||
|
||||
5
vpc_scripts/source_exe_qt_base.vpc
Normal file
5
vpc_scripts/source_exe_qt_base.vpc
Normal file
@@ -0,0 +1,5 @@
|
||||
// call up either the posix or win32 vpc file based upon target platform
|
||||
|
||||
//$Include "$SRCDIR\vpc_scripts\source_exe_qt_linux_base.vpc" [$POSIX]
|
||||
$Include "$SRCDIR\vpc_scripts\source_exe_qt_win32_base.vpc" [$WIN32 || $WIN64]
|
||||
|
||||
16
vpc_scripts/source_exe_qt_con_base.vpc
Normal file
16
vpc_scripts/source_exe_qt_con_base.vpc
Normal file
@@ -0,0 +1,16 @@
|
||||
// base file for a console app with qt. win32 only for now. CG: I'm not 100% sure this is the right definition,
|
||||
// but I'm moving the logic here so it doesn't end up pasted into every such app.
|
||||
|
||||
$Include "$SRCDIR\vpc_scripts\source_exe_qt_win32_base.vpc"
|
||||
|
||||
$Configuration
|
||||
{
|
||||
$Linker
|
||||
{
|
||||
$SubSystem "Console (/SUBSYSTEM:CONSOLE)"
|
||||
}
|
||||
$Compiler
|
||||
{
|
||||
$AdditionalIncludeDirectories "$BASE,..\common"
|
||||
}
|
||||
}
|
||||
48
vpc_scripts/source_exe_qt_win32_base.vpc
Normal file
48
vpc_scripts/source_exe_qt_win32_base.vpc
Normal file
@@ -0,0 +1,48 @@
|
||||
//===================== Copyright (c) Valve Corporation. All Rights Reserved. ======================
|
||||
//
|
||||
//==================================================================================================
|
||||
|
||||
$Macro QT_ROOT "$SRCDIR\thirdparty\lgpl\qt"
|
||||
|
||||
$Include "$SRCDIR\vpc_scripts\source_exe_win_win32_base.vpc"
|
||||
$Include "$SRCDIR\vpc_scripts\qt_base.vpc"
|
||||
|
||||
$Configuration
|
||||
{
|
||||
$Compiler
|
||||
{
|
||||
$AdditionalIncludeDirectories "$BASE;.\;$SRCDIR\game\shared;$QT_ROOT\include;.\$QT_TARGET_SUBDIR"
|
||||
$PreprocessorDefinitions "$BASE;UNICODE;QT_LARGEFILE_SUPPORT;QT_DLL;QT_GUI_LIB;QT_CORE_LIB;QT_THREAD_SUPPORT"
|
||||
$PreprocessorDefinitions "$BASE;QT_NO_DEBUG" [!$QTDEBUG]
|
||||
$DisableSpecificWarnings "4127;4512;$BASE"
|
||||
}
|
||||
}
|
||||
|
||||
$Configuration
|
||||
{
|
||||
$Linker
|
||||
{
|
||||
// Link tier0 first because Qt needs our allocators during static object initization!
|
||||
$AdditionalDependencies "$BASE $LIBPUBLIC\tier0.lib"
|
||||
$GenerateManifest "Yes"
|
||||
$AdditionalOptions "$BASE $QUOTE/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'$QUOTE"
|
||||
}
|
||||
}
|
||||
|
||||
$Project
|
||||
{
|
||||
$Folder "Link Libraries" [$QTDEBUG]
|
||||
{
|
||||
$Lib "$QT_ROOT\lib\qtmaind"
|
||||
$Lib "$QT_ROOT\lib\qtcored4"
|
||||
$Lib "$QT_ROOT\lib\qtguid4"
|
||||
}
|
||||
|
||||
$Folder "Link Libraries" [!$QTDEBUG]
|
||||
{
|
||||
$Lib "$QT_ROOT\lib\qtmain"
|
||||
$Lib "$QT_ROOT\lib\qtcore4"
|
||||
$Lib "$QT_ROOT\lib\qtgui4"
|
||||
}
|
||||
}
|
||||
|
||||
129
vpc_scripts/source_exe_win_win32_base.vpc
Normal file
129
vpc_scripts/source_exe_win_win32_base.vpc
Normal file
@@ -0,0 +1,129 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// SOURCE_EXE_WIN_WIN32.VPC
|
||||
//
|
||||
// Base Settings for Source(TM) Projects
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
$Include "$SRCDIR\vpc_scripts\version.vpc"
|
||||
|
||||
$MacroRequired "SRCDIR"
|
||||
$MacroRequired "OUTBINNAME" "$PROJECTNAME"
|
||||
$MacroRequired "OUTBINDIR"
|
||||
|
||||
$Macro OUTBINDIR "$OUTBINDIR$PLATSUBDIR"
|
||||
$Macro LIBPUBLIC "$SRCDIR\lib\public$PLATSUBDIR"
|
||||
$Macro LIBCOMMON "$SRCDIR\lib\common$PLATSUBDIR" [!$VS2015]
|
||||
$Macro LIBCOMMON "$SRCDIR\lib\common$PLATSUBDIR\2015\release" [$VS2015&&!$WIN32]
|
||||
$Macro LIBCOMMON "$SRCDIR\lib\common\win32\2015\release" [$VS2015&&$WIN32]
|
||||
|
||||
$Include "$SRCDIR\vpc_scripts\loadaddress.vpc"
|
||||
$Include "$SRCDIR\vpc_scripts\source_exe_win_win32_debug.vpc"
|
||||
$Include "$SRCDIR\vpc_scripts\source_exe_win_win32_release.vpc"
|
||||
$Include "$SRCDIR\vpc_scripts\source_win32_base.vpc"
|
||||
|
||||
$IgnoreRedundancyWarning "ON"
|
||||
|
||||
// Common Configuration
|
||||
$Configuration
|
||||
{
|
||||
$General
|
||||
{
|
||||
$TargetName "$OUTBINNAME"
|
||||
}
|
||||
|
||||
|
||||
$Compiler
|
||||
{
|
||||
$PreprocessorDefinitions "$BASE;PLATFORM_64BITS;WIN64;_WIN64;COMPILER_MSVC64" [$WIN64]
|
||||
$PreprocessorDefinitions "$BASE;COMPILER_MSVC32" [$WIN32]
|
||||
$PreprocessorDefinitions "$BASE;COMPILER_MSVC;EXENAME=$OUTBINNAME;_DLL_EXT=$_DLL_EXT"
|
||||
}
|
||||
|
||||
$Compiler [$WIN32]
|
||||
{
|
||||
$EnableEnhancedInstructionSet "Streaming SIMD Extensions (/arch:SSE)"
|
||||
}
|
||||
|
||||
$Linker
|
||||
{
|
||||
$AdditionalDependencies "$BASE shell32.lib user32.lib advapi32.lib gdi32.lib comdlg32.lib ole32.lib" [$WIN32]
|
||||
$TargetMachine "MachineX86 (/MACHINE:X86)" [$WIN32]
|
||||
$TargetMachine "MachineX64 (/MACHINE:X64)" [$WIN64]
|
||||
// NXCOMPAT (also known as DEP or Data Access Protection) should be enabled for all
|
||||
// executables for security and debugging reasons.
|
||||
$AdditionalOptions "/NXCOMPAT"
|
||||
// Suppress this pointless warning using the undocumented /ignore linker switch
|
||||
// schemalib.lib(schemaclassinfo.obj) : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library
|
||||
$AdditionalOptions "$BASE /ignore:4221"
|
||||
$AdditionalOptions "$BASE $SRCDIR\lib\public\ftol3.obj" [$VS2013 && $WIN32 && !$DISABLE_FTOL3_OVERRIDE && !$SOURCESDK] // Work around CRT bug https://connect.microsoft.com/VisualStudio/feedback/details/806362/vc12-pollutes-the-floating-point-stack-when-casting-infinity-nan-to-unsigned-long#
|
||||
}
|
||||
|
||||
$PreBuildEvent
|
||||
{
|
||||
$CommandLine "if EXIST $OUTBINDIR\$(TargetFileName) for /f $QUOTEdelims=$QUOTE %%A in ('attrib $QUOTE$OUTBINDIR\$(TargetFileName)$QUOTE') do set valveTmpIsReadOnly=$QUOTE%%A$QUOTE" "\n" \
|
||||
"set valveTmpIsReadOnlyLetter=%valveTmpIsReadOnly:~6,1%" "\n" \
|
||||
"if $QUOTE%valveTmpIsReadOnlyLetter%$QUOTE==$QUOTER$QUOTE del /q $QUOTE$(TargetDir)$QUOTE$(TargetFileName)" "\n" \
|
||||
"$CRCCHECK" "\n"
|
||||
}
|
||||
|
||||
$PostBuildEvent [!$ANALYZE]
|
||||
{
|
||||
$CommandLine "call $SRCDIR\vpc_scripts\valve_p4_edit.cmd $OUTBINDIR\$(TargetFileName) $SRCDIR" "\n" [!$SOURCESDK]
|
||||
$CommandLine "$BASE" "copy $QUOTE$(TargetDir)$QUOTE$(TargetFileName) $OUTBINDIR\$(TargetFileName) >nul" "\n" \
|
||||
"if ERRORLEVEL 1 goto BuildEventFailed" "\n" \
|
||||
"if exist $QUOTE$(TargetDir)$QUOTE$(TargetName).map copy $QUOTE$(TargetDir)$QUOTE$(TargetName).map $OUTBINDIR\$(TargetName).map >nul" "\n"
|
||||
$CommandLine "$BASE" "call $SRCDIR\vpc_scripts\valve_p4_edit.cmd $OUTBINDIR\$(TargetName).pdb $SRCDIR" "\n" [!$SOURCESDK]
|
||||
$CommandLine "$BASE" "copy $QUOTE$(TargetDir)$QUOTE$(TargetName).pdb $OUTBINDIR\$(TargetName).pdb >nul" "\n" \
|
||||
"if ERRORLEVEL 1 goto BuildEventFailed" "\n" \
|
||||
"goto BuildEventOK" "\n" \
|
||||
":BuildEventFailed" "\n" \
|
||||
"echo *** ERROR! PostBuildStep FAILED for $(ProjectName)! EXE or DLL is probably running. ***" "\n" \
|
||||
"del /q $QUOTE$(TargetDir)$QUOTE$(TargetFileName)" "\n" \
|
||||
"exit 1" "\n" \
|
||||
":BuildEventOK" "\n"
|
||||
$Description "Publishing to $OUTBINDIR"
|
||||
$ExcludedFromBuild "No"
|
||||
}
|
||||
}
|
||||
|
||||
// Skeleton Project - All derived projects get this as a starting base
|
||||
$Project
|
||||
{
|
||||
$Folder "Source Files"
|
||||
{
|
||||
$File "$SRCDIR\public\tier0\memoverride.cpp"
|
||||
{
|
||||
$Configuration
|
||||
{
|
||||
$Compiler
|
||||
{
|
||||
$Create/UsePrecompiledHeader "Not Using Precompiled Headers"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Implement __imp__EncodePointer and __imp__DecodePointer so that we can run on XP SP1
|
||||
// when building with VS 2010 and higher.
|
||||
$File "$SRCDIR\public\tier0\pointeroverride.asm" [$WIN32]
|
||||
{
|
||||
$Configuration
|
||||
{
|
||||
$CustomBuildStep
|
||||
{
|
||||
// General
|
||||
$CommandLine "$QUOTE$(VCInstallDir)bin\ml.exe$QUOTE /c /Cp /Zi /Fo$QUOTE$(IntDir)\$(InputName).obj$QUOTE $QUOTE$(InputPath)$QUOTE"
|
||||
$Description "Compiling pointeroverride.asm"
|
||||
$Outputs "$(IntDir)\$(InputName).obj"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$Folder "Link Libraries"
|
||||
{
|
||||
$Implib "$LIBPUBLIC\tier0"
|
||||
$Lib "$LIBPUBLIC\tier1"
|
||||
$Implib "$LIBPUBLIC\vstdlib"
|
||||
}
|
||||
}
|
||||
|
||||
333
vpc_scripts/source_exe_win_win32_debug.vpc
Normal file
333
vpc_scripts/source_exe_win_win32_debug.vpc
Normal file
@@ -0,0 +1,333 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// SOURCE_EXE_WIN_WIN32_DEBUG.VPC
|
||||
//
|
||||
// Base Settings for Source(TM) Projects
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
$IgnoreRedundancyWarning "ON"
|
||||
|
||||
$MacroRequired "SRCDIR"
|
||||
$MacroRequired "OUTBINNAME"
|
||||
$MacroRequired "OUTBINDIR"
|
||||
$MacroRequired "LIBPUBLIC"
|
||||
$MacroRequired "LIBCOMMON"
|
||||
$MacroRequired "PLATSUBDIR"
|
||||
$MacroRequiredAllowEmpty "GAMENAME"
|
||||
$MacroRequiredAllowEmpty "INTERMEDIATESUBDIR"
|
||||
$MacroRequiredAllowEmpty "_UNITYSUBDIR"
|
||||
$MacroRequiredAllowEmpty "_STATICSUBDIR"
|
||||
$Macro "_SUBDIRSUFFIX" "$INTERMEDIATESUBDIR$_STATICSUBDIR$GAMENAME$PLATSUBDIR$_UNITYSUBDIR"
|
||||
|
||||
$Configuration "Debug"
|
||||
{
|
||||
$General
|
||||
{
|
||||
// General
|
||||
$OutputDirectory ".\Debug$_SUBDIRSUFFIX"
|
||||
$IntermediateDirectory ".\Debug$_SUBDIRSUFFIX"
|
||||
$ExtensionsToDeleteOnClean
|
||||
$BuildLogFile
|
||||
$InheritedProjectPropertySheets
|
||||
|
||||
// Project Defaults
|
||||
$ConfigurationType "Application (.exe)"
|
||||
$UseOfMFC
|
||||
$UseOfATL
|
||||
$MinimizeCRTUseInATL
|
||||
$CharacterSet "Use Multi-Byte Character Set"
|
||||
$CommonLanguageRuntimeSupport
|
||||
$WholeProgramOptimization
|
||||
}
|
||||
|
||||
$Debugging
|
||||
{
|
||||
// Action
|
||||
$Command
|
||||
$CommandArguments
|
||||
$WorkingDirectory
|
||||
$Attach
|
||||
$DebuggerType
|
||||
$Environment
|
||||
$MergeEnvironment
|
||||
$SQLDebugging
|
||||
}
|
||||
|
||||
$Compiler
|
||||
{
|
||||
// General
|
||||
$AdditionalIncludeDirectories "$SRCDIR\common;$SRCDIR\public;$SRCDIR\public\tier0;$SRCDIR\public\tier1"
|
||||
$Resolve#UsingReferences
|
||||
$DebugInformationFormat "Program Database for Edit & Continue (/ZI)" [$WIN32]
|
||||
$DebugInformationFormat "Program Database (/Zi)" [$WIN64]
|
||||
$SuppressStartupBanner
|
||||
$WarningLevel "Level 4 (/W4)"
|
||||
$TreatWarningsAsErrors "No"
|
||||
$UseUNICODEResponseFiles "No"
|
||||
|
||||
// Optimization
|
||||
$Optimization "Disabled (/Od)"
|
||||
$InlineFunctionExpansion
|
||||
$EnableIntrinsicFunctions
|
||||
$FavorSizeOrSpeed
|
||||
$OmitFramePointers
|
||||
$EnableFiberSafeOptimizations
|
||||
$WholeProgramOptimization
|
||||
|
||||
// Preprocessor
|
||||
$PreprocessorDefinitions "$BASE;WIN32;_WIN32;_DEBUG;DEBUG;_WINDOWS;_LIB;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)"
|
||||
$PreprocessorDefinitions "$BASE;_HAS_ITERATOR_DEBUGGING=0;_ALLOW_RUNTIME_LIBRARY_MISMATCH;_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH;_ALLOW_MSC_VER_MISMATCH;" [!$WIN64&&!$VS2015]
|
||||
$IgnoreStandardIncludePath
|
||||
$GeneratePreprocessedFile
|
||||
$KeepComments
|
||||
|
||||
// Code Generation
|
||||
$EnableStringPooling "Yes (/GF)"
|
||||
// EnableMinimalRebuild is incompatible with /MP (multi-processor builds)
|
||||
// and it also makes it hard to iterate on warnings because the compiler
|
||||
// detects that there is no reason to recompile when you request it.
|
||||
// It should always be off? It should definitely be off for /analyze builds.
|
||||
//$EnableMinimalRebuild "Yes (/Gm)" [!$ANALYZE]
|
||||
$EnableC++Exceptions "No"
|
||||
$SmallerTypeCheck
|
||||
$BasicRuntimeChecks "Default"
|
||||
$RuntimeLibrary "Multi-threaded Debug (/MTd)"
|
||||
$StructMemberAlignment
|
||||
$BufferSecurityCheck "Yes"
|
||||
$EnableFunctionLevelLinking
|
||||
$EnableEnhancedInstructionSet
|
||||
$FloatingPointModel "Fast (/fp:fast)"
|
||||
$EnableFloatingPointExceptions
|
||||
|
||||
// Language
|
||||
$DisableLanguageExtensions
|
||||
$DefaultCharUnsigned "No"
|
||||
$TreatWCHAR_TAsBuiltInType "Yes (/Zc:wchar_t)"
|
||||
$ForceConformanceInForLoopScope "Yes (/Zc:forScope)"
|
||||
$EnableRunTimeTypeInfo "Yes (/GR)"
|
||||
$OpenMPSupport "No"
|
||||
|
||||
// Precompiled Headers
|
||||
$Create/UsePrecompiledHeader "Not Using Precompiled Headers"
|
||||
$Create/UsePCHThroughFile
|
||||
$PrecompiledHeaderFile
|
||||
|
||||
// Output Files
|
||||
$ExpandAttributedSource "No"
|
||||
$AssemblerOutput "No Listing"
|
||||
$ASMListLocation "$(IntDir)/"
|
||||
$ObjectFileName "$(IntDir)/"
|
||||
$ProgramDatabaseFileName "$(IntDir)/"
|
||||
$GenerateXMLDocumentationFiles
|
||||
$XMLDocumentationFileName
|
||||
|
||||
// Browse Information
|
||||
$EnableBrowseInformation "None"
|
||||
$BrowseFile "$(IntDir)/"
|
||||
|
||||
// Advanced
|
||||
$CallingConvention
|
||||
$CompileAs "Compile as C++ Code (/TP)"
|
||||
$DisableSpecificWarnings
|
||||
$ForceIncludes
|
||||
$Force#Using
|
||||
$ShowIncludes
|
||||
$UndefinePreprocessorDefinitions
|
||||
$UndefineAllPreprocessorDefinitions
|
||||
$UseFullPaths "Yes (/FC)"
|
||||
$OmitDefaultLibraryNames
|
||||
$ErrorReporting "Prompt Immediately (/errorReport:prompt)"
|
||||
|
||||
// Command Line
|
||||
$AdditionalOptions
|
||||
}
|
||||
|
||||
$Linker
|
||||
{
|
||||
// General
|
||||
$OutputFile "$(OutDir)/$OUTBINNAME.exe"
|
||||
$ShowProgress "Not Set"
|
||||
$Version
|
||||
$EnableIncrementalLinking "Yes (/INCREMENTAL)"
|
||||
$SuppressStartupBanner "Yes (/NOLOGO)"
|
||||
$IgnoreImportLibrary
|
||||
$RegisterOutput
|
||||
$AdditionalLibraryDirectories
|
||||
$LinkLibraryDependencies
|
||||
$UseLibraryDependencyInputs
|
||||
$UseUNICODEResponseFiles "No"
|
||||
|
||||
// Input
|
||||
$AdditionalDependencies
|
||||
$IgnoreAllDefaultLibraries
|
||||
$IgnoreSpecificLibrary "libc;libcd;libcmt;libcpmt;libcpmt1"
|
||||
$ModuleDefinitionFile
|
||||
$AddModuleToAssembly
|
||||
$EmbedManagedResourceFile
|
||||
$ForceSymbolReferences
|
||||
$DelayLoadedDLLs
|
||||
$AssemblyLinkResource
|
||||
|
||||
// Manifest File
|
||||
$GenerateManifest "Yes"
|
||||
$ManifestFile
|
||||
$AdditionalManifestDependencies
|
||||
$AllowIsolation
|
||||
$UACExecutionLevel
|
||||
|
||||
// Debugging
|
||||
$GenerateDebugInfo "Yes (/DEBUG)"
|
||||
$GenerateProgramDatabaseFile "$(IntDir)/$(TargetName).pdb"
|
||||
$StripPrivateSymbols
|
||||
$MapExports
|
||||
$DebuggableAssembly
|
||||
|
||||
// System
|
||||
$SubSystem "Windows (/SUBSYSTEM:WINDOWS)"
|
||||
$HeapReserveSize
|
||||
$HeapCommitSize
|
||||
$StackReserveSize
|
||||
$StackCommitSize
|
||||
$EnableLargeAddresses
|
||||
$TerminalServer
|
||||
$SwapRunFromCD
|
||||
$SwapRunFromNetwork
|
||||
$Driver
|
||||
|
||||
// DYNAMICBASE/ASLR in debug builds is annoying and not helpful.
|
||||
$RandomizedBaseAddress "false"
|
||||
|
||||
// Optimization
|
||||
$References
|
||||
$EnableCOMDATFolding
|
||||
$OptimizeForWindows98
|
||||
$FunctionOrder
|
||||
$ProfileGuidedDatabase
|
||||
$LinkTimeCodeGeneration
|
||||
|
||||
// Embedded IDL
|
||||
$MIDLCommands
|
||||
$IgnoreEmbeddedIDL
|
||||
$MergeIDLBaseFileName
|
||||
$TypeLibrary
|
||||
$TypeLibResourceID
|
||||
|
||||
// Advanced
|
||||
$EntryPoint
|
||||
$NoEntryPoint
|
||||
$SetChecksum
|
||||
$BaseAddress "$LOADADDRESS_DEVELOPMENT"
|
||||
$FixedBaseAddress
|
||||
$TurnOffAssemblyGeneration
|
||||
$DelayLoadedDLL
|
||||
$ImportLibrary
|
||||
$MergeSections
|
||||
$TargetMachine
|
||||
$Profile
|
||||
$CLRThreadAttribute
|
||||
$CLRImageType
|
||||
$KeyFile
|
||||
$KeyContainer
|
||||
$DelaySign
|
||||
$ErrorReporting "Prompt Immediately (/ERRORREPORT:PROMPT)"
|
||||
$CLRUnmanagedCodeCheck
|
||||
// SAFE_SEH should always be disabled on debug builds.
|
||||
$ImageHasSafeExceptionHandlers "false"
|
||||
|
||||
// Command Line
|
||||
$AdditionalOptions
|
||||
}
|
||||
|
||||
$ManifestTool
|
||||
{
|
||||
// General
|
||||
$SuppressStartupBanner "Yes (/nologo)"
|
||||
$VerboseOutput
|
||||
$AssemblyIdentity
|
||||
$UseUNICODEResponseFiles
|
||||
$UseFAT32WorkAround
|
||||
|
||||
// Input And Output
|
||||
$AdditionalManifestFiles "$SRCDIR\public\windows_default.manifest" [!$SOURCESDK]
|
||||
$InputResourceManifests
|
||||
$EmbedManifest
|
||||
$OutputManifestFile
|
||||
$ManifestResourceFile
|
||||
$GenerateCatalogFiles
|
||||
$DependencyInformationFile
|
||||
|
||||
// Isolated COM
|
||||
$TypeLibraryFile
|
||||
$RegistrarScriptFile
|
||||
$ComponentFileName
|
||||
$ReplacementsFile
|
||||
|
||||
// Advanced
|
||||
$UpdateFileHashes
|
||||
$UpdateFileHashesSearchPath
|
||||
|
||||
// Command Line
|
||||
$AdditionalOptions
|
||||
}
|
||||
|
||||
$XMLDocumentGenerator
|
||||
{
|
||||
// General
|
||||
$SuppressStartupBanner "Yes (/nologo)"
|
||||
$ValidateIntelliSense
|
||||
$AdditionalDocumentFiles
|
||||
$OutputDocumentFile
|
||||
$DocumentLibraryDependencies
|
||||
$UseUNICODEResponseFiles
|
||||
}
|
||||
|
||||
$BrowseInformation
|
||||
{
|
||||
$SuppressStartupBanner "Yes (/nologo)"
|
||||
$OutputFile "$(OutDir)/$OUTBINNAME.bsc"
|
||||
$AdditionalOptions
|
||||
}
|
||||
|
||||
$Resources
|
||||
{
|
||||
// General
|
||||
$PreprocessorDefinitions "_DEBUG;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;%(PreprocessorDefinitions)"
|
||||
$Culture "English (United States) (0x409)"
|
||||
$AdditionalIncludeDirectories
|
||||
$IgnoreStandardIncludePath
|
||||
$ShowProgress
|
||||
$ResourceFileName
|
||||
|
||||
// Command Line
|
||||
$AdditionalOptions
|
||||
}
|
||||
|
||||
$PreBuildEvent
|
||||
{
|
||||
$CommandLine
|
||||
$Description
|
||||
$ExcludedFromBuild "No"
|
||||
}
|
||||
|
||||
$PreLinkEvent
|
||||
{
|
||||
$CommandLine
|
||||
$Description
|
||||
$ExcludedFromBuild "No"
|
||||
}
|
||||
|
||||
$PostBuildEvent
|
||||
{
|
||||
$CommandLine
|
||||
$Description
|
||||
$ExcludedFromBuild "No"
|
||||
}
|
||||
|
||||
$CustomBuildStep
|
||||
{
|
||||
// General
|
||||
$CommandLine
|
||||
$Description
|
||||
$Outputs
|
||||
$AdditionalDependencies
|
||||
}
|
||||
}
|
||||
353
vpc_scripts/source_exe_win_win32_release.vpc
Normal file
353
vpc_scripts/source_exe_win_win32_release.vpc
Normal file
@@ -0,0 +1,353 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// SOURCE_EXE_WIN_WIN32_RELEASE.VPC
|
||||
//
|
||||
// Base Settings for Source(TM) Projects
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
$IgnoreRedundancyWarning "ON"
|
||||
|
||||
// Disable frame pointer omission to allow fast stack walking, necessary for
|
||||
// good ETW profiling.
|
||||
$Conditional NOFPO "1"
|
||||
|
||||
$MacroRequired "SRCDIR"
|
||||
$MacroRequired "OUTBINNAME"
|
||||
$MacroRequired "OUTBINDIR"
|
||||
$MacroRequired "LIBPUBLIC"
|
||||
$MacroRequired "LIBCOMMON"
|
||||
$MacroRequired "PLATSUBDIR"
|
||||
$MacroRequiredAllowEmpty "GAMENAME"
|
||||
$MacroRequiredAllowEmpty "INTERMEDIATESUBDIR"
|
||||
$MacroRequiredAllowEmpty "_UNITYSUBDIR"
|
||||
$MacroRequiredAllowEmpty "_STATICSUBDIR"
|
||||
$Macro "_SUBDIRSUFFIX" "$INTERMEDIATESUBDIR$_STATICSUBDIR$GAMENAME$PLATSUBDIR$_UNITYSUBDIR"
|
||||
|
||||
$Configuration "Release"
|
||||
{
|
||||
$General
|
||||
{
|
||||
// General
|
||||
$OutputDirectory ".\Release$_SUBDIRSUFFIX" [!$RETAIL && !$PROFILE]
|
||||
$IntermediateDirectory ".\Release$_SUBDIRSUFFIX" [!$RETAIL && !$PROFILE]
|
||||
$OutputDirectory ".\Retail$_SUBDIRSUFFIX" [$RETAIL]
|
||||
$IntermediateDirectory ".\Retail$_SUBDIRSUFFIX" [$RETAIL]
|
||||
$OutputDirectory ".\Profile$_SUBDIRSUFFIX" [!$RETAIL && $PROFILE]
|
||||
$IntermediateDirectory ".\Profile$_SUBDIRSUFFIX" [!$RETAIL && $PROFILE]
|
||||
$ExtensionsToDeleteOnClean
|
||||
$BuildLogFile
|
||||
$InheritedProjectPropertySheets
|
||||
|
||||
// Project Defaults
|
||||
$ConfigurationType "Application (.exe)"
|
||||
$UseOfMFC
|
||||
$UseOfATL
|
||||
$MinimizeCRTUseInATL
|
||||
$CharacterSet "Use Multi-Byte Character Set"
|
||||
$CommonLanguageRuntimeSupport
|
||||
$WholeProgramOptimization "Use Link Time Code Generation" [$LTCG]
|
||||
}
|
||||
|
||||
$Debugging
|
||||
{
|
||||
// Action
|
||||
$Command
|
||||
$CommandArguments
|
||||
$WorkingDirectory
|
||||
$Attach
|
||||
$DebuggerType
|
||||
$Environment
|
||||
$MergeEnvironment
|
||||
$SQLDebugging
|
||||
}
|
||||
|
||||
$Compiler
|
||||
{
|
||||
// General
|
||||
$AdditionalIncludeDirectories "$SRCDIR\common;$SRCDIR\public;$SRCDIR\public\tier0;$SRCDIR\public\tier1"
|
||||
$Resolve#UsingReferences
|
||||
$DebugInformationFormat "Program Database (/Zi)"
|
||||
$SuppressStartupBanner
|
||||
$WarningLevel "Level 4 (/W4)"
|
||||
$TreatWarningsAsErrors
|
||||
$UseUnicodeResponseFiles
|
||||
|
||||
// Optimization
|
||||
$Optimization "Maximize Speed (/O2)"
|
||||
$InlineFunctionExpansion "Any Suitable (/Ob2)"
|
||||
$EnableIntrinsicFunctions "Yes (/Oi)"
|
||||
$FavorSizeOrSpeed "Favor Fast Code (/Ot)"
|
||||
$OmitFramePointers
|
||||
$EnableFiberSafeOptimizations
|
||||
$WholeProgramOptimization
|
||||
|
||||
// Preprocessor
|
||||
$PreprocessorDefinitions "$BASE;WIN32;_WIN32;NDEBUG;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_ALLOW_RUNTIME_LIBRARY_MISMATCH;_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH;_ALLOW_MSC_VER_MISMATCH;%(PreprocessorDefinitions)"
|
||||
$PreprocessorDefinitions "$BASE;RELEASEASSERTS" [$RELEASEASSERTS]
|
||||
$IgnoreStandardIncludePath
|
||||
$GeneratePreprocessedFile
|
||||
$KeepComments
|
||||
|
||||
// Code Generation
|
||||
$EnableStringPooling "Yes (/GF)"
|
||||
$EnableMinimalRebuild
|
||||
$EnableC++Exceptions "No"
|
||||
$SmallerTypeCheck
|
||||
$BasicRuntimeChecks
|
||||
$RuntimeLibrary "Multi-threaded (/MT)"
|
||||
$StructMemberAlignment
|
||||
$BufferSecurityCheck "No" [$RETAIL]
|
||||
$BufferSecurityCheck "Yes" [!$RETAIL]
|
||||
$EnableFunctionLevelLinking "Yes (/Gy)"
|
||||
$EnableEnhancedInstructionSet
|
||||
$FloatingPointModel "Fast (/fp:fast)"
|
||||
$EnableFloatingPointExceptions
|
||||
|
||||
// Language
|
||||
$DisableLanguageExtensions
|
||||
$DefaultCharUnsigned "No"
|
||||
$TreatWCHAR_TAsBuiltInType "Yes (/Zc:wchar_t)"
|
||||
$ForceConformanceInForLoopScope "Yes (/Zc:forScope)"
|
||||
$EnableRunTimeTypeInfo "Yes (/GR)"
|
||||
$OpenMPSupport "No"
|
||||
|
||||
// Precompiled Headers
|
||||
$Create/UsePrecompiledHeader "Not Using Precompiled Headers"
|
||||
$Create/UsePCHThroughFile
|
||||
$PrecompiledHeaderFile
|
||||
|
||||
// Output Files
|
||||
$ExpandAttributedSource "No"
|
||||
$AssemblerOutput "No Listing"
|
||||
$ASMListLocation "$(IntDir)/"
|
||||
$ObjectFileName "$(IntDir)/"
|
||||
$ProgramDatabaseFileName "$(IntDir)/"
|
||||
$GenerateXMLDocumentationFiles
|
||||
$XMLDocumentationFileName
|
||||
|
||||
// Browse Information
|
||||
$EnableBrowseInformation "None"
|
||||
$BrowseFile "$(IntDir)/"
|
||||
|
||||
// Advanced
|
||||
$CallingConvention
|
||||
$CompileAs "Compile as C++ Code (/TP)"
|
||||
$DisableSpecificWarnings
|
||||
$ForceIncludes
|
||||
$Force#Using
|
||||
$ShowIncludes
|
||||
$UndefinePreprocessorDefinitions
|
||||
$UndefineAllPreprocessorDefinitions
|
||||
$UseFullPaths "Yes (/FC)"
|
||||
$OmitDefaultLibraryNames
|
||||
$ErrorReporting "Prompt Immediately (/errorReport:prompt)"
|
||||
|
||||
// Enable extra debugging information. This switch requires VS 2013 Update 3.
|
||||
// With VS 2013 make sure that Edit-And-Continue is disabled in the debugger settings so that
|
||||
// the debugger uses the enhanced debug information.
|
||||
// http://randomascii.wordpress.com/2013/09/11/debugging-optimized-codenew-in-visual-studio-2012/
|
||||
$AdditionalOptions "$BASE /Zo"
|
||||
// Command Line
|
||||
$AdditionalOptions "$BASE /Oy-" [$NOFPO]
|
||||
}
|
||||
|
||||
$Linker
|
||||
{
|
||||
// General
|
||||
$OutputFile "$(OutDir)/$OUTBINNAME.exe"
|
||||
$ShowProgress "Not Set"
|
||||
$Version
|
||||
$EnableIncrementalLinking "No (/INCREMENTAL:NO)"
|
||||
$SuppressStartupBanner "Yes (/NOLOGO)"
|
||||
$IgnoreImportLibrary
|
||||
$RegisterOutput
|
||||
$AdditionalLibraryDirectories
|
||||
$LinkLibraryDependencies
|
||||
$UseLibraryDependencyInputs
|
||||
$UseUNICODEResponseFiles "No"
|
||||
|
||||
// Input
|
||||
$AdditionalDependencies
|
||||
$IgnoreAllDefaultLibraries
|
||||
$IgnoreSpecificLibrary "libc;libcd;libcmtd;libcpmtd;libcpmtd0;libcpmtd1"
|
||||
$ModuleDefinitionFile
|
||||
$AddModuleToAssembly
|
||||
$EmbedManagedResourceFile
|
||||
$ForceSymbolReferences
|
||||
$DelayLoadedDLLs
|
||||
$AssemblyLinkResource
|
||||
|
||||
// Manifest File
|
||||
$GenerateManifest "Yes"
|
||||
$ManifestFile
|
||||
$AdditionalManifestDependencies
|
||||
$AllowIsolation
|
||||
$UACExecutionLevel
|
||||
|
||||
// Debugging
|
||||
$GenerateDebugInfo "Yes (/DEBUG)"
|
||||
$GenerateProgramDatabaseFile "$(IntDir)/$(TargetName).pdb"
|
||||
$StripPrivateSymbols
|
||||
$MapExports
|
||||
$DebuggableAssembly
|
||||
|
||||
// System
|
||||
$SubSystem "Windows (/SUBSYSTEM:WINDOWS)"
|
||||
$HeapReserveSize
|
||||
$HeapCommitSize
|
||||
$StackReserveSize
|
||||
$StackCommitSize
|
||||
$EnableLargeAddresses
|
||||
$TerminalServer
|
||||
$SwapRunFromCD
|
||||
$SwapRunFromNetwork
|
||||
$Driver
|
||||
|
||||
// RandomizeBaseAddress (/DYNAMICBASE, /ASLR) is a hugely important security setting.
|
||||
// However it can cause confusion during development and can make tracking down certain
|
||||
// bugs tricky by making code/stack/heap addresses change between runs. Enable for retail,
|
||||
// but disable for development builds.
|
||||
$RandomizedBaseAddress "true" [$RETAIL]
|
||||
$RandomizedBaseAddress "false" [!$RETAIL]
|
||||
|
||||
// Optimization
|
||||
$References "Eliminate Unreferenced Data (/OPT:REF)"
|
||||
// COMDAT folding can be very confusing when debugging and profiling because it can
|
||||
// cause execution to go through nonsensical functions (that happen to be binary
|
||||
// equivalent to the logical function). The performance benefit is small enough that
|
||||
// it is not worth enabling in the development builds. It should be enabled on retail
|
||||
// builds.
|
||||
$EnableCOMDATFolding "Remove Redundant COMDATs (/OPT:ICF)" [$RETAIL]
|
||||
$EnableCOMDATFolding "No (/OPT:NOICF)" [!$RETAIL]
|
||||
$OptimizeForWindows98
|
||||
$FunctionOrder
|
||||
$ProfileGuidedDatabase
|
||||
$LinkTimeCodeGeneration
|
||||
|
||||
// Embedded IDL
|
||||
$MIDLCommands
|
||||
$IgnoreEmbeddedIDL
|
||||
$MergeIDLBaseFileName
|
||||
$TypeLibrary
|
||||
$TypeLibResourceID
|
||||
|
||||
// Advanced
|
||||
$EntryPoint
|
||||
$NoEntryPoint
|
||||
$SetChecksum
|
||||
$BaseAddress "$LOADADDRESS_DEVELOPMENT"
|
||||
//$BaseAddress "$LOADADDRESS_RETAIL" [$RETAIL]
|
||||
$FixedBaseAddress
|
||||
$TurnOffAssemblyGeneration
|
||||
$DelayLoadedDLL
|
||||
$ImportLibrary
|
||||
$MergeSections
|
||||
$TargetMachine
|
||||
$Profile
|
||||
$CLRThreadAttribute
|
||||
$CLRImageType
|
||||
$KeyFile
|
||||
$KeyContainer
|
||||
$DelaySign
|
||||
$ErrorReporting "Prompt Immediately (/ERRORREPORT:PROMPT)"
|
||||
$CLRUnmanagedCodeCheck
|
||||
// Most DLLs cannot yet handle SafeSEH
|
||||
$ImageHasSafeExceptionHandlers "false"
|
||||
|
||||
// Command Line
|
||||
$AdditionalOptions
|
||||
}
|
||||
|
||||
$ManifestTool
|
||||
{
|
||||
// General
|
||||
$SuppressStartupBanner "Yes (/nologo)"
|
||||
$VerboseOutput
|
||||
$AssemblyIdentity
|
||||
$UseUNICODEResponseFiles
|
||||
$UseFAT32WorkAround
|
||||
|
||||
// Input And Output
|
||||
$AdditionalManifestFiles "$SRCDIR\public\windows_default.manifest" [!$SOURCESDK]
|
||||
$InputResourceManifests
|
||||
$EmbedManifest
|
||||
$OutputManifestFile
|
||||
$ManifestResourceFile
|
||||
$GenerateCatalogFiles
|
||||
$DependencyInformationFile
|
||||
|
||||
// Isolated COM
|
||||
$TypeLibraryFile
|
||||
$RegistrarScriptFile
|
||||
$ComponentFileName
|
||||
$ReplacementsFile
|
||||
|
||||
// Advanced
|
||||
$UpdateFileHashes
|
||||
$UpdateFileHashesSearchPath
|
||||
|
||||
// Command Line
|
||||
$AdditionalOptions
|
||||
}
|
||||
|
||||
$XMLDocumentGenerator
|
||||
{
|
||||
// General
|
||||
$SuppressStartupBanner "Yes (/nologo)"
|
||||
$ValidateIntelliSense
|
||||
$AdditionalDocumentFiles
|
||||
$OutputDocumentFile
|
||||
$DocumentLibraryDependencies
|
||||
$UseUNICODEResponseFiles
|
||||
}
|
||||
|
||||
$BrowseInformation
|
||||
{
|
||||
$SuppressStartupBanner "Yes (/nologo)"
|
||||
$OutputFile "$(OutDir)/$OUTBINNAME.bsc"
|
||||
$AdditionalOptions
|
||||
}
|
||||
|
||||
$Resources
|
||||
{
|
||||
// General
|
||||
$PreprocessorDefinitions "NDEBUG;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;%(PreprocessorDefinitions)"
|
||||
$Culture "English (United States) (0x409)"
|
||||
$AdditionalIncludeDirectories
|
||||
$IgnoreStandardIncludePath
|
||||
$ShowProgress
|
||||
$ResourceFileName
|
||||
|
||||
// Command Line
|
||||
$AdditionalOptions
|
||||
}
|
||||
|
||||
$PreBuildEvent
|
||||
{
|
||||
$CommandLine
|
||||
$Description
|
||||
$ExcludedFromBuild "No"
|
||||
}
|
||||
|
||||
$PreLinkEvent
|
||||
{
|
||||
$CommandLine
|
||||
$Description
|
||||
$ExcludedFromBuild "No"
|
||||
}
|
||||
|
||||
$PostBuildEvent
|
||||
{
|
||||
$CommandLine
|
||||
$Description
|
||||
$ExcludedFromBuild "No"
|
||||
}
|
||||
|
||||
$CustomBuildStep
|
||||
{
|
||||
// General
|
||||
$CommandLine
|
||||
$Description
|
||||
$Outputs
|
||||
$AdditionalDependencies
|
||||
}
|
||||
}
|
||||
22
vpc_scripts/source_lib_base.vpc
Normal file
22
vpc_scripts/source_lib_base.vpc
Normal file
@@ -0,0 +1,22 @@
|
||||
$Include "$SRCDIR\vpc_scripts\platform_dirs.vpc"
|
||||
$include "$SRCDIR\vpc_scripts\source_base.vpc"
|
||||
|
||||
$MacroRequired OUTLIBDIR "$SRCDIR\lib\public$PLATSUBDIR"
|
||||
|
||||
$include "$SRCDIR\vpc_scripts\source_lib_posix_base.vpc" [$POSIX]
|
||||
$include "$SRCDIR\vpc_scripts\source_lib_win32_base.vpc" [$WIN32 || $WIN64]
|
||||
$include "$SRCDIR\vpc_scripts\source_lib_x360_base.vpc" [$X360]
|
||||
$include "$SRCDIR\vpc_scripts\source_ppu_lib_ps3_base.vpc" [$PS3]
|
||||
|
||||
$include "$SRCDIR\vpc_scripts\source_video_base.vpc"
|
||||
|
||||
$Configuration
|
||||
{
|
||||
$Compiler
|
||||
{
|
||||
$PreprocessorDefinitions "$BASE;DEV_BUILD" [!$PUBLISH]
|
||||
$PreprocessorDefinitions "$BASE;_PROFILE" [$PROFILE && !$RETAIL]
|
||||
$PreprocessorDefinitions "$BASE;RETAIL_ASSERTS" [$RETAIL && $RETAILASSERTS]
|
||||
$PreprocessorDefinitions "$BASE;FRAME_POINTER_OMISSION_DISABLED" // This is now always true.
|
||||
}
|
||||
}
|
||||
19
vpc_scripts/source_lib_posix_base.vpc
Normal file
19
vpc_scripts/source_lib_posix_base.vpc
Normal file
@@ -0,0 +1,19 @@
|
||||
|
||||
$MacroRequired "OUTLIBNAME" "$PROJECTNAME"
|
||||
$Macro IS_LIB_PROJECT "1"
|
||||
|
||||
$Include "$SRCDIR\vpc_scripts\source_posix_base.vpc"
|
||||
|
||||
$Configuration
|
||||
{
|
||||
$General
|
||||
{
|
||||
$ConfigurationType "Static Library (.lib)"
|
||||
$GameOutputFile "$OUTLIBDIR/$OUTLIBNAME$_STATICLIB_EXT"
|
||||
}
|
||||
|
||||
$Linker
|
||||
{
|
||||
$OutputFile "$OUTLIBNAME$_STATICLIB_EXT"
|
||||
}
|
||||
}
|
||||
2
vpc_scripts/source_lib_qt_base.vpc
Normal file
2
vpc_scripts/source_lib_qt_base.vpc
Normal file
@@ -0,0 +1,2 @@
|
||||
// include either the windows base or the currently non-existing ones for other platforms
|
||||
$include "$SRCDIR\vpc_scripts\source_lib_qt_win32_base.vpc"
|
||||
22
vpc_scripts/source_lib_qt_win32_base.vpc
Normal file
22
vpc_scripts/source_lib_qt_win32_base.vpc
Normal file
@@ -0,0 +1,22 @@
|
||||
//===================== Copyright (c) Valve Corporation. All Rights Reserved. ======================
|
||||
//
|
||||
//==================================================================================================
|
||||
|
||||
$Macro QT_ROOT "$SRCDIR\thirdparty\lgpl\qt"
|
||||
|
||||
$Include "$SRCDIR\vpc_scripts\source_lib_base.vpc"
|
||||
$Include "$SRCDIR\vpc_scripts\qt_base.vpc"
|
||||
|
||||
$Configuration
|
||||
{
|
||||
$Compiler
|
||||
{
|
||||
$AdditionalIncludeDirectories "$BASE;.\;$SRCDIR\game\shared;$QT_ROOT\include;.\$QT_TARGET_SUBDIR"
|
||||
$PreprocessorDefinitions "$BASE;QT_LARGEFILE_SUPPORT;QT_DLL;QT_GUI_LIB;QT_CORE_LIB;QT_THREAD_SUPPORT"
|
||||
$PreprocessorDefinitions "$BASE;QT_NO_DEBUG" [!$QTDEBUG]
|
||||
$DisableSpecificWarnings "4127;4512;$BASE"
|
||||
|
||||
// Causes a bunch of bogus compiler warnings for now; let's disable it
|
||||
$Detect64bitPortabilityIssues "No"
|
||||
}
|
||||
}
|
||||
88
vpc_scripts/source_lib_win32_base.vpc
Normal file
88
vpc_scripts/source_lib_win32_base.vpc
Normal file
@@ -0,0 +1,88 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// SOURCE_LIB_WIN32_BASE.VPC
|
||||
//
|
||||
// Base Settings for all Source(TM) Projects
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
$Include "$SRCDIR\vpc_scripts\version.vpc"
|
||||
|
||||
$MacroRequired "SRCDIR"
|
||||
$MacroRequired "OUTLIBNAME" "$PROJECTNAME"
|
||||
$MacroRequired "OUTLIBDIR"
|
||||
|
||||
$Macro LIBPUBLIC "$SRCDIR\lib\public$PLATSUBDIR"
|
||||
$Macro LIBCOMMON "$SRCDIR\lib\common$PLATSUBDIR" [!$VS2015]
|
||||
$Macro LIBCOMMON "$SRCDIR\lib\common$PLATSUBDIR\2015\release" [$VS2015&&!$WIN32]
|
||||
$Macro LIBCOMMON "$SRCDIR\lib\common\win32\2015\release" [$VS2015&&$WIN32]
|
||||
|
||||
$Include "$SRCDIR\vpc_scripts\source_lib_win32_debug.vpc"
|
||||
$Include "$SRCDIR\vpc_scripts\source_lib_win32_release.vpc"
|
||||
$Include "$SRCDIR\vpc_scripts\source_win32_base.vpc"
|
||||
|
||||
$IgnoreRedundancyWarning "ON"
|
||||
|
||||
// Common Configuration
|
||||
$Configuration
|
||||
{
|
||||
$General
|
||||
{
|
||||
$TargetName "$OUTLIBNAME"
|
||||
}
|
||||
|
||||
|
||||
$Compiler
|
||||
{
|
||||
$PreprocessorDefinitions "$BASE;PLATFORM_64BITS;WIN64;_WIN64;COMPILER_MSVC64" [$WIN64]
|
||||
$PreprocessorDefinitions "$BASE;COMPILER_MSVC32" [$WIN32]
|
||||
$PreprocessorDefinitions "$BASE;COMPILER_MSVC;_DLL_EXT=$_DLL_EXT"
|
||||
$PreprocessorDefinitions "$BASE;LIBNAME=$OUTLIBNAME"
|
||||
}
|
||||
|
||||
$Compiler [$WIN32]
|
||||
{
|
||||
$EnableEnhancedInstructionSet "Streaming SIMD Extensions (/arch:SSE)"
|
||||
}
|
||||
|
||||
$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" \
|
||||
") else ( if not EXIST $OUTLIBDIR mkdir $OUTLIBDIR )" "\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 [!$ANALYZE && !$SOURCESDK]
|
||||
{
|
||||
$CommandLine "call $SRCDIR\vpc_scripts\valve_p4_edit.cmd $OUTLIBDIR\$(TargetName).lib $SRCDIR"
|
||||
}
|
||||
|
||||
$Librarian
|
||||
{
|
||||
// Suppress this warning using the undocumented /ignore linker switch
|
||||
// schemalib.lib(schemaclassinfo.obj) : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library
|
||||
$AdditionalOptions "$BASE /ignore:4221"
|
||||
}
|
||||
}
|
||||
|
||||
// Skeleton Project - All derived projects get this as a starting base
|
||||
$Project
|
||||
{
|
||||
$Folder "Source Files"
|
||||
{
|
||||
$File "$SRCDIR\common\debug_lib_check.cpp" [!$SOURCESDK]
|
||||
{
|
||||
$Configuration
|
||||
{
|
||||
$Compiler
|
||||
{
|
||||
$Create/UsePrecompiledHeader "Not Using Precompiled Headers"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
207
vpc_scripts/source_lib_win32_debug.vpc
Normal file
207
vpc_scripts/source_lib_win32_debug.vpc
Normal file
@@ -0,0 +1,207 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// SOURCE_LIB_WIN32_DEBUG.VPC
|
||||
//
|
||||
// Base Settings for all Source(TM) Projects
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
$IgnoreRedundancyWarning "ON"
|
||||
|
||||
$MacroRequired "SRCDIR"
|
||||
$MacroRequired "OUTLIBNAME"
|
||||
$MacroRequired "OUTLIBDIR"
|
||||
$MacroRequired "LIBPUBLIC"
|
||||
$MacroRequired "LIBCOMMON"
|
||||
$MacroRequired "PLATSUBDIR"
|
||||
$MacroRequiredAllowEmpty "GAMENAME"
|
||||
$MacroRequiredAllowEmpty "INTERMEDIATESUBDIR"
|
||||
$MacroRequiredAllowEmpty "_UNITYSUBDIR"
|
||||
$MacroRequiredAllowEmpty "_STATICSUBDIR"
|
||||
$Macro "_SUBDIRSUFFIX" "$INTERMEDIATESUBDIR$_STATICSUBDIR$GAMENAME$PLATSUBDIR$_UNITYSUBDIR"
|
||||
|
||||
$Configuration "Debug"
|
||||
{
|
||||
$General
|
||||
{
|
||||
// General
|
||||
$OutputDirectory "$OUTLIBDIR"
|
||||
$IntermediateDirectory ".\Debug$_SUBDIRSUFFIX"
|
||||
$ExtensionsToDeleteOnClean
|
||||
$BuildLogFile
|
||||
$InheritedProjectPropertySheets
|
||||
|
||||
// Project Defaults
|
||||
$ConfigurationType "Static Library (.lib)"
|
||||
$UseOfMFC
|
||||
$UseOfATL
|
||||
$MinimizeCRTUseInATL
|
||||
$CharacterSet "Use Multi-Byte Character Set"
|
||||
$CommonLanguageRuntimeSupport
|
||||
$WholeProgramOptimization
|
||||
}
|
||||
|
||||
$Debugging
|
||||
{
|
||||
$Command
|
||||
$CommandArguments
|
||||
$WorkingDirectory
|
||||
$Attach
|
||||
$DebuggerType
|
||||
$Environment
|
||||
$MergeEnvironment
|
||||
$SQLDebugging
|
||||
}
|
||||
|
||||
$Compiler
|
||||
{
|
||||
// General
|
||||
$AdditionalIncludeDirectories "$SRCDIR\common;$SRCDIR\public;$SRCDIR\public\tier0;$SRCDIR\public\tier1"
|
||||
$Resolve#UsingReferences
|
||||
$DebugInformationFormat "Program Database for Edit & Continue (/ZI)" [$WIN32]
|
||||
$DebugInformationFormat "Program Database (/Zi)" [$WIN64]
|
||||
$SuppressStartupBanner
|
||||
$WarningLevel "Level 4 (/W4)"
|
||||
$Detect64bitPortabilityIssues "Yes (/Wp64)"
|
||||
$TreatWarningsAsErrors
|
||||
$UseUNICODEResponseFiles "No"
|
||||
|
||||
// Optimization
|
||||
$Optimization "Disabled (/Od)"
|
||||
$InlineFunctionExpansion
|
||||
$EnableIntrinsicFunctions
|
||||
$FavorSizeOrSpeed
|
||||
$OmitFramePointers
|
||||
$EnableFiberSafeOptimizations
|
||||
$WholeProgramOptimization
|
||||
|
||||
// Preprocessor
|
||||
$PreprocessorDefinitions "$BASE;WIN32;_WIN32;_DEBUG;DEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)"
|
||||
$PreprocessorDefinitions "$BASE;_HAS_ITERATOR_DEBUGGING=0;_ALLOW_RUNTIME_LIBRARY_MISMATCH;_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH;_ALLOW_MSC_VER_MISMATCH;" [!$WIN64&&!$VS2015]
|
||||
$IgnoreStandardIncludePath
|
||||
$GeneratePreprocessedFile
|
||||
$KeepComments
|
||||
|
||||
// Code Generation
|
||||
$EnableStringPooling "Yes (/GF)"
|
||||
// EnableMinimalRebuild is incompatible with /MP (multi-processor builds)
|
||||
// and it also makes it hard to iterate on warnings because the compiler
|
||||
// detects that there is no reason to recompile when you request it.
|
||||
// It should always be off? It should definitely be off for /analyze builds.
|
||||
//$EnableMinimalRebuild "Yes (/Gm)" [!$ANALYZE]
|
||||
$EnableC++Exceptions "No"
|
||||
$SmallerTypeCheck
|
||||
$BasicRuntimeChecks "Default"
|
||||
$RuntimeLibrary "Multi-threaded Debug (/MTd)"
|
||||
$StructMemberAlignment
|
||||
$BufferSecurityCheck "Yes"
|
||||
$EnableFunctionLevelLinking
|
||||
$EnableEnhancedInstructionSet
|
||||
$FloatingPointModel "Fast (/fp:fast)"
|
||||
$EnableFloatingPointExceptions
|
||||
|
||||
// Language
|
||||
$DisableLanguageExtensions
|
||||
$DefaultCharUnsigned
|
||||
$TreatWCHAR_TAsBuiltInType "Yes (/Zc:wchar_t)"
|
||||
$ForceConformanceInForLoopScope "Yes (/Zc:forScope)"
|
||||
$EnableRunTimeTypeInfo "Yes (/GR)"
|
||||
$OpenMPSupport "No"
|
||||
|
||||
// Precompiled Headers
|
||||
$Create/UsePrecompiledHeader "Not Using Precompiled Headers"
|
||||
$Create/UsePCHThroughFile
|
||||
$PrecompiledHeaderFile
|
||||
|
||||
// Output Files
|
||||
$ExpandAttributedSource "No"
|
||||
$AssemblerOutput "No Listing"
|
||||
$ASMListLocation "$(IntDir)/"
|
||||
$ObjectFileName "$(IntDir)/"
|
||||
$ProgramDatabaseFileName "$(IntDir)/"
|
||||
$GenerateXMLDocumentationFiles "No"
|
||||
$XMLDocumentationFileName
|
||||
|
||||
// Browse Information
|
||||
$EnableBrowseInformation "None"
|
||||
$BrowseFile "$(IntDir)/"
|
||||
|
||||
// Advanced
|
||||
$CallingConvention
|
||||
$CompileAs "Compile as C++ Code (/TP)"
|
||||
$DisableSpecificWarnings
|
||||
$ForceIncludes
|
||||
$Force#Using
|
||||
$ShowIncludes
|
||||
$UndefinePreprocessorDefinitions
|
||||
$UndefineAllPreprocessorDefinitions
|
||||
$UseFullPaths "Yes (/FC)"
|
||||
$OmitDefaultLibraryNames
|
||||
$ErrorReporting "Prompt Immediately (/errorReport:prompt)"
|
||||
}
|
||||
|
||||
$Librarian
|
||||
{
|
||||
// General
|
||||
$OutputFile "$OUTLIBDIR\$OUTLIBNAME.lib"
|
||||
$AdditionalDependencies
|
||||
$AdditionalLibraryDirectories
|
||||
$SuppressStartupBanner "Yes (/NOLOGO)"
|
||||
$ModuleDefinitionFileName
|
||||
$IgnoreAllDefaultLibraries
|
||||
$IgnoreSpecificLibrary
|
||||
$ExportNamedFunctions
|
||||
$ForceSymbolReferences
|
||||
$UseUNICODEResponseFiles "No"
|
||||
$LinkLibraryDependencies
|
||||
|
||||
// Command Line
|
||||
$AdditionalOptions
|
||||
}
|
||||
|
||||
$XMLDocumentGenerator
|
||||
{
|
||||
// General
|
||||
$SuppressStartupBanner "Yes (/nologo)"
|
||||
$ValidateIntelliSense
|
||||
$AdditionalDocumentFiles
|
||||
$OutputDocumentFile
|
||||
$DocumentLibraryDependencies
|
||||
$UseUNICODEResponseFiles
|
||||
}
|
||||
|
||||
$BrowseInformation
|
||||
{
|
||||
$SuppressStartupBanner "Yes (/nologo)"
|
||||
$OutputFile "$(OutDir)/$OUTLIBNAME.bsc"
|
||||
$AdditionalOptions
|
||||
}
|
||||
|
||||
$PreBuildEvent
|
||||
{
|
||||
$CommandLine
|
||||
$Description
|
||||
$ExcludedFromBuild "No"
|
||||
}
|
||||
|
||||
$PreLinkEvent
|
||||
{
|
||||
$CommandLine
|
||||
$Description
|
||||
$ExcludedFromBuild "No"
|
||||
}
|
||||
|
||||
$PostBuildEvent
|
||||
{
|
||||
$CommandLine
|
||||
$Description
|
||||
$ExcludedFromBuild "No"
|
||||
}
|
||||
|
||||
$CustomBuildStep
|
||||
{
|
||||
// General
|
||||
$CommandLine
|
||||
$Description
|
||||
$Outputs
|
||||
$AdditionalDependencies
|
||||
}
|
||||
}
|
||||
216
vpc_scripts/source_lib_win32_release.vpc
Normal file
216
vpc_scripts/source_lib_win32_release.vpc
Normal file
@@ -0,0 +1,216 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// SOURCE_LIB_WIN32_RELEASE.VPC
|
||||
//
|
||||
// Base Settings for all Source(TM) Projects
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
$IgnoreRedundancyWarning "ON"
|
||||
|
||||
// Disable frame pointer omission to allow fast stack walking, necessary for
|
||||
// good ETW profiling.
|
||||
$Conditional NOFPO "1"
|
||||
|
||||
$MacroRequired "SRCDIR"
|
||||
$MacroRequired "OUTLIBNAME"
|
||||
$MacroRequired "OUTLIBDIR"
|
||||
$MacroRequired "LIBPUBLIC"
|
||||
$MacroRequired "LIBCOMMON"
|
||||
$MacroRequired "PLATSUBDIR"
|
||||
$MacroRequiredAllowEmpty "GAMENAME"
|
||||
$MacroRequiredAllowEmpty "INTERMEDIATESUBDIR"
|
||||
$MacroRequiredAllowEmpty "_UNITYSUBDIR"
|
||||
$MacroRequiredAllowEmpty "_STATICSUBDIR"
|
||||
$Macro "_SUBDIRSUFFIX" "$INTERMEDIATESUBDIR$_STATICSUBDIR$GAMENAME$PLATSUBDIR$_UNITYSUBDIR"
|
||||
|
||||
$Configuration "Release"
|
||||
{
|
||||
$General
|
||||
{
|
||||
// General
|
||||
$OutputDirectory "$OUTLIBDIR"
|
||||
$IntermediateDirectory ".\Release$_SUBDIRSUFFIX" [!$RETAIL && !$PROFILE]
|
||||
$IntermediateDirectory ".\Retail$_SUBDIRSUFFIX" [$RETAIL]
|
||||
$IntermediateDirectory ".\Profile$_SUBDIRSUFFIX" [!$RETAIL && $PROFILE]
|
||||
$ExtensionsToDeleteOnClean
|
||||
$BuildLogFile
|
||||
$InheritedProjectPropertySheets
|
||||
|
||||
// Project Defaults
|
||||
$ConfigurationType "Static Library (.lib)"
|
||||
$UseOfMFC
|
||||
$UseOfATL
|
||||
$MinimizeCRTUseInATL
|
||||
$CharacterSet "Use Multi-Byte Character Set"
|
||||
$CommonLanguageRuntimeSupport
|
||||
$WholeProgramOptimization "Use Link Time Code Generation" [$LTCG]
|
||||
}
|
||||
|
||||
$Debugging
|
||||
{
|
||||
$Command
|
||||
$CommandArguments
|
||||
$WorkingDirectory
|
||||
$Attach
|
||||
$DebuggerType
|
||||
$Environment
|
||||
$MergeEnvironment
|
||||
$SQLDebugging
|
||||
}
|
||||
|
||||
$Compiler
|
||||
{
|
||||
// General
|
||||
$AdditionalIncludeDirectories "$SRCDIR\common;$SRCDIR\public;$SRCDIR\public\tier0;$SRCDIR\public\tier1"
|
||||
$Resolve#UsingReferences
|
||||
$DebugInformationFormat "C7 Compatible (/Z7)"
|
||||
$SuppressStartupBanner
|
||||
$WarningLevel "Level 4 (/W4)"
|
||||
$Detect64bitPortabilityIssues "Yes (/Wp64)"
|
||||
$TreatWarningsAsErrors
|
||||
$UseUNICODEResponseFiles "No"
|
||||
|
||||
// Optimization
|
||||
$Optimization "Maximize Speed (/O2)"
|
||||
$InlineFunctionExpansion "Any Suitable (/Ob2)"
|
||||
$EnableIntrinsicFunctions "Yes (/Oi)"
|
||||
$FavorSizeOrSpeed "Favor Fast Code (/Ot)"
|
||||
$OmitFramePointers
|
||||
$EnableFiberSafeOptimizations
|
||||
$WholeProgramOptimization
|
||||
|
||||
// Preprocessor
|
||||
$PreprocessorDefinitions "$BASE;WIN32;_WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_ALLOW_RUNTIME_LIBRARY_MISMATCH;_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH;_ALLOW_MSC_VER_MISMATCH;%(PreprocessorDefinitions)"
|
||||
$PreprocessorDefinitions "$BASE;RELEASEASSERTS" [$RELEASEASSERTS]
|
||||
$IgnoreStandardIncludePath
|
||||
$GeneratePreprocessedFile
|
||||
$KeepComments
|
||||
|
||||
// Code Generation
|
||||
$EnableStringPooling "Yes (/GF)"
|
||||
$EnableMinimalRebuild
|
||||
$EnableC++Exceptions "No"
|
||||
$SmallerTypeCheck
|
||||
$BasicRuntimeChecks
|
||||
$RuntimeLibrary "Multi-threaded (/MT)"
|
||||
$StructMemberAlignment
|
||||
$BufferSecurityCheck "No" [$RETAIL]
|
||||
$BufferSecurityCheck "Yes" [!$RETAIL]
|
||||
$EnableFunctionLevelLinking "Yes (/Gy)"
|
||||
$EnableEnhancedInstructionSet
|
||||
$FloatingPointModel "Fast (/fp:fast)"
|
||||
$EnableFloatingPointExceptions
|
||||
|
||||
// Language
|
||||
$DisableLanguageExtensions
|
||||
$DefaultCharUnsigned
|
||||
$TreatWCHAR_TAsBuiltInType "Yes (/Zc:wchar_t)"
|
||||
$ForceConformanceInForLoopScope "Yes (/Zc:forScope)"
|
||||
$EnableRunTimeTypeInfo "Yes (/GR)"
|
||||
$OpenMPSupport "No"
|
||||
|
||||
// Precompiled Headers
|
||||
$Create/UsePrecompiledHeader "Not Using Precompiled Headers"
|
||||
$Create/UsePCHThroughFile
|
||||
$PrecompiledHeaderFile
|
||||
|
||||
// Output Files
|
||||
$ExpandAttributedSource "No"
|
||||
$AssemblerOutput "No Listing"
|
||||
$ASMListLocation "$(IntDir)/"
|
||||
$ObjectFileName "$(IntDir)/"
|
||||
$ProgramDatabaseFileName "$(IntDir)/"
|
||||
$GenerateXMLDocumentationFiles "No"
|
||||
$XMLDocumentationFileName
|
||||
|
||||
// Browse Information
|
||||
$EnableBrowseInformation "None"
|
||||
$BrowseFile "$(IntDir)/"
|
||||
|
||||
// Advanced
|
||||
$CallingConvention
|
||||
$CompileAs "Compile as C++ Code (/TP)"
|
||||
$DisableSpecificWarnings
|
||||
$ForceIncludes
|
||||
$Force#Using
|
||||
$ShowIncludes
|
||||
$UndefinePreprocessorDefinitions
|
||||
$UndefineAllPreprocessorDefinitions
|
||||
$UseFullPaths "Yes (/FC)"
|
||||
$OmitDefaultLibraryNames
|
||||
$ErrorReporting "Prompt Immediately (/errorReport:prompt)"
|
||||
|
||||
// Enable extra debugging information. This switch requires VS 2013 Update 3.
|
||||
// With VS 2013 make sure that Edit-And-Continue is disabled in the debugger settings so that
|
||||
// the debugger uses the enhanced debug information.
|
||||
// http://randomascii.wordpress.com/2013/09/11/debugging-optimized-codenew-in-visual-studio-2012/
|
||||
$AdditionalOptions "$BASE /Zo"
|
||||
$AdditionalOptions "$BASE /Oy-" [$NOFPO]
|
||||
}
|
||||
|
||||
$Librarian
|
||||
{
|
||||
// General
|
||||
$OutputFile "$OUTLIBDIR\$OUTLIBNAME.lib"
|
||||
$AdditionalDependencies
|
||||
$AdditionalLibraryDirectories
|
||||
$SuppressStartupBanner "Yes (/NOLOGO)"
|
||||
$ModuleDefinitionFileName
|
||||
$IgnoreAllDefaultLibraries
|
||||
$IgnoreSpecificLibrary
|
||||
$ExportNamedFunctions
|
||||
$ForceSymbolReferences
|
||||
$UseUNICODEResponseFiles "No"
|
||||
$LinkLibraryDependencies
|
||||
|
||||
// Command Line
|
||||
$AdditionalOptions
|
||||
}
|
||||
|
||||
$XMLDocumentGenerator
|
||||
{
|
||||
// General
|
||||
$SuppressStartupBanner "Yes (/nologo)"
|
||||
$ValidateIntelliSense
|
||||
$AdditionalDocumentFiles
|
||||
$OutputDocumentFile
|
||||
$DocumentLibraryDependencies
|
||||
$UseUNICODEResponseFiles
|
||||
}
|
||||
|
||||
$BrowseInformation
|
||||
{
|
||||
$SuppressStartupBanner "Yes (/nologo)"
|
||||
$OutputFile "$(OutDir)/$OUTLIBNAME.bsc"
|
||||
$AdditionalOptions
|
||||
}
|
||||
|
||||
$PreBuildEvent
|
||||
{
|
||||
$CommandLine
|
||||
$Description
|
||||
$ExcludedFromBuild "No"
|
||||
}
|
||||
|
||||
$PreLinkEvent
|
||||
{
|
||||
$CommandLine
|
||||
$Description
|
||||
$ExcludedFromBuild "No"
|
||||
}
|
||||
|
||||
$PostBuildEvent
|
||||
{
|
||||
$CommandLine
|
||||
$Description
|
||||
$ExcludedFromBuild "No"
|
||||
}
|
||||
|
||||
$CustomBuildStep
|
||||
{
|
||||
// General
|
||||
$CommandLine
|
||||
$Description
|
||||
$Outputs
|
||||
$AdditionalDependencies
|
||||
}
|
||||
}
|
||||
66
vpc_scripts/source_lib_x360_base.vpc
Normal file
66
vpc_scripts/source_lib_x360_base.vpc
Normal file
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
176
vpc_scripts/source_lib_x360_debug.vpc
Normal file
176
vpc_scripts/source_lib_x360_debug.vpc
Normal file
@@ -0,0 +1,176 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// SOURCE_LIB_X360_DEBUG.VPC
|
||||
//
|
||||
// Base Settings for Source(TM) Projects
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
$IgnoreRedundancyWarning "ON"
|
||||
|
||||
$MacroRequired "SRCDIR"
|
||||
$MacroRequired "OUTLIBNAME"
|
||||
$MacroRequired "OUTLIBDIR"
|
||||
|
||||
$Configuration "Debug"
|
||||
{
|
||||
$General
|
||||
{
|
||||
// General
|
||||
$OutputDirectory ".\Debug_360"
|
||||
$IntermediateDirectory ".\Debug_360"
|
||||
$ExtensionsToDeleteOnClean
|
||||
$BuildLogFile
|
||||
$InheritedProjectPropertySheets
|
||||
|
||||
// Project Defaults
|
||||
$ConfigurationType "Static Library (.lib)"
|
||||
$CharacterSet "Not Set"
|
||||
$WholeProgramOptimization "No Whole Program Optimization"
|
||||
}
|
||||
|
||||
$Debugging
|
||||
{
|
||||
$Command
|
||||
$CommandArguments
|
||||
$MapDVDDrive
|
||||
$RemoteMachine
|
||||
}
|
||||
|
||||
$Compiler
|
||||
{
|
||||
// General
|
||||
$AdditionalIncludeDirectories "$SRCDIR\common;$SRCDIR\public;$SRCDIR\public\tier0;$SRCDIR\public\tier1"
|
||||
$DebugInformationFormat "Program Database (/Zi)"
|
||||
$SuppressStartupBanner "Yes (/nologo)"
|
||||
$WarningLevel "Level 4 (/W4)"
|
||||
$TreatWarningsAsErrors "No"
|
||||
|
||||
// Optimization
|
||||
$Optimization "Disabled (/Od)"
|
||||
$InlineFunctionExpansion
|
||||
$EnableIntrinsicFunctions "Yes (/Oi)"
|
||||
$FavorSizeOrSpeed
|
||||
$EnableFiberSafeOptimizations
|
||||
$WholeProgramOptimization
|
||||
|
||||
// Preprocessor
|
||||
$PreprocessorDefinitions "_HAS_ITERATOR_DEBUGGING=0;_X360;_DEBUG;DEBUG;_LIB;_WIN32;WIN32;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE"
|
||||
$PreprocessorDefinitions "$BASE;_CERT" [$CERT]
|
||||
$IgnoreStandardIncludePath
|
||||
$GeneratePreprocessedFile
|
||||
$KeepComments
|
||||
|
||||
// Code Generation
|
||||
$EnableStringPooling "Yes (/GF)"
|
||||
$EnableMinimalRebuild "Yes (/Gm)"
|
||||
$EnableC++Exceptions "No"
|
||||
$SmallerTypeCheck
|
||||
$BasicRuntimeChecks "Both (/RTC1, equiv. to /RTCsu)"
|
||||
$RuntimeLibrary "Multi-threaded Debug (/MTd)"
|
||||
$StructMemberAlignment
|
||||
// 360 Issue: Enable BufferSecurityCheck below in AdditionalOptions
|
||||
$BufferSecurityCheck "No"
|
||||
$EnableFunctionLevelLinking
|
||||
$FloatingPointModel "Fast (/fp:fast)"
|
||||
$EnableFloatingPointExceptions "No"
|
||||
|
||||
// Language
|
||||
$DisableLanguageExtensions
|
||||
$DefaultCharUnsigned
|
||||
$TreatWCHAR_TAsBuiltInType "Yes (/Zc:wchar_t)"
|
||||
$ForceConformanceInForLoopScope "Yes (/Zc:forScope)"
|
||||
$EnableRunTimeTypeInfo "Yes (/GR)"
|
||||
$OpenMPSupport "No"
|
||||
|
||||
// Precompiled Headers
|
||||
$Create/UsePrecompiledHeader "Not Using Precompiled Headers"
|
||||
$Create/UsePCHThroughFile
|
||||
$PrecompiledHeaderFile
|
||||
|
||||
// Output Files
|
||||
$ExpandAttributedSource "No"
|
||||
$AssemblerOutput "No Listing"
|
||||
$ASMListLocation "$(IntDir)/"
|
||||
$ObjectFileName "$(IntDir)/"
|
||||
$ProgramDatabaseFileName "$(IntDir)/"
|
||||
|
||||
// Browse Information
|
||||
$EnableBrowseInformation "None"
|
||||
$BrowseFile "$(IntDir)/"
|
||||
|
||||
// Advanced
|
||||
$CompileAs "Compile as C++ Code (/TP)"
|
||||
$DisableSpecificWarnings
|
||||
$ForceIncludes "tier0/platform.h"
|
||||
$ShowIncludes "No"
|
||||
$UndefinePreprocessorDefinitions
|
||||
$UndefineAllPreprocessorDefinitions "No"
|
||||
$UseFullPaths
|
||||
$OmitDefaultLibraryNames
|
||||
|
||||
// Xbox 360
|
||||
$RegisterReservation "No"
|
||||
$TrapIntegerDividesOptimization "No"
|
||||
$PreschedulingOptimization "No"
|
||||
$InlineAssemblyOptimization "No"
|
||||
$Stalls "No"
|
||||
$CallAttributedProfiling "Disabled"
|
||||
|
||||
// Command Line
|
||||
$AdditionalOptions "/QVMX128 /GS"
|
||||
}
|
||||
|
||||
$Librarian
|
||||
{
|
||||
// General
|
||||
$OutputFile "$OUTLIBDIR\$OUTLIBNAME_360.lib"
|
||||
$AdditionalDependencies
|
||||
$AdditionalLibraryDirectories
|
||||
$SuppressStartupBanner "Yes (/NOLOGO)"
|
||||
$ModuleDefinitionFileName
|
||||
$IgnoreAllDefaultLibraries
|
||||
$IgnoreSpecificLibrary
|
||||
$ExportNamedFunctions
|
||||
$ForceSymbolReferences
|
||||
$LinkLibraryDependencies
|
||||
|
||||
// Command Line
|
||||
$AdditionalOptions
|
||||
}
|
||||
|
||||
$BrowseInformation
|
||||
{
|
||||
$SuppressStartupBanner "Yes (/nologo)"
|
||||
$OutputFile "$(OutDir)/$OUTLIBNAME.bsc"
|
||||
$AdditionalOptions
|
||||
}
|
||||
|
||||
$PreBuildEvent
|
||||
{
|
||||
$CommandLine
|
||||
$Description
|
||||
$ExcludedFromBuild "No"
|
||||
}
|
||||
|
||||
$PreLinkEvent
|
||||
{
|
||||
$CommandLine
|
||||
$Description
|
||||
$ExcludedFromBuild "No"
|
||||
}
|
||||
|
||||
$PostBuildEvent
|
||||
{
|
||||
$CommandLine
|
||||
$Description
|
||||
$ExcludedFromBuild "No"
|
||||
}
|
||||
|
||||
$CustomBuildStep
|
||||
{
|
||||
// General
|
||||
$CommandLine
|
||||
$Description
|
||||
$Outputs
|
||||
$AdditionalDependencies
|
||||
}
|
||||
}
|
||||
178
vpc_scripts/source_lib_x360_release.vpc
Normal file
178
vpc_scripts/source_lib_x360_release.vpc
Normal file
@@ -0,0 +1,178 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// SOURCE_LIB_X360_RELEASE.VPC
|
||||
//
|
||||
// Base Settings for Source(TM) Projects
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
$IgnoreRedundancyWarning "ON"
|
||||
|
||||
$MacroRequired "SRCDIR"
|
||||
$MacroRequired "OUTLIBNAME"
|
||||
$MacroRequired "OUTLIBDIR"
|
||||
|
||||
$Configuration "Release"
|
||||
{
|
||||
$General
|
||||
{
|
||||
// General
|
||||
$OutputDirectory ".\Release_360"
|
||||
$IntermediateDirectory ".\Release_360"
|
||||
$ExtensionsToDeleteOnClean
|
||||
$BuildLogFile
|
||||
$InheritedProjectPropertySheets
|
||||
|
||||
// Project Defaults
|
||||
$ConfigurationType "Static Library (.lib)"
|
||||
$CharacterSet "Not Set"
|
||||
$WholeProgramOptimization
|
||||
}
|
||||
|
||||
$Debugging
|
||||
{
|
||||
$Command
|
||||
$CommandArguments
|
||||
$MapDVDDrive
|
||||
$RemoteMachine
|
||||
}
|
||||
|
||||
$Compiler
|
||||
{
|
||||
// General
|
||||
$AdditionalIncludeDirectories "$SRCDIR\common;$SRCDIR\public;$SRCDIR\public\tier0;$SRCDIR\public\tier1"
|
||||
$DebugInformationFormat "C7 Compatible (/Z7)"
|
||||
$SuppressStartupBanner "Yes (/nologo)"
|
||||
$WarningLevel "Level 4 (/W4)"
|
||||
$TreatWarningsAsErrors "No"
|
||||
|
||||
// Optimization
|
||||
$Optimization "Full Optimization (/Ox)"
|
||||
$InlineFunctionExpansion "Any Suitable (/Ob2)"
|
||||
$EnableIntrinsicFunctions "Yes (/Oi)"
|
||||
$FavorSizeOrSpeed "Favor Fast Code (/Ot)"
|
||||
$EnableFiberSafeOptimizations
|
||||
$WholeProgramOptimization
|
||||
|
||||
// Preprocessor
|
||||
$PreprocessorDefinitions "_X360;NDEBUG;_LIB;_WIN32;WIN32;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;__VMX128_SUPPORTED"
|
||||
$PreprocessorDefinitions "$BASE;_CERT" [$CERT]
|
||||
$PreprocessorDefinitions "$BASE;PROFILE" [$PROFILE]
|
||||
$IgnoreStandardIncludePath
|
||||
$GeneratePreprocessedFile
|
||||
$KeepComments
|
||||
|
||||
// Code Generation
|
||||
$EnableStringPooling "Yes (/GF)"
|
||||
$EnableMinimalRebuild "No"
|
||||
$EnableC++Exceptions "No"
|
||||
$SmallerTypeCheck "No"
|
||||
$BasicRuntimeChecks "Default"
|
||||
$RuntimeLibrary "Multi-threaded (/MT)"
|
||||
$StructMemberAlignment "Default"
|
||||
$BufferSecurityCheck "No"
|
||||
$EnableFunctionLevelLinking "Yes (/Gy)"
|
||||
$FloatingPointModel "Fast (/fp:fast)"
|
||||
$EnableFloatingPointExceptions "No"
|
||||
|
||||
// Language
|
||||
$DisableLanguageExtensions "No"
|
||||
$DefaultCharUnsigned "No"
|
||||
$TreatWCHAR_TAsBuiltInType "Yes (/Zc:wchar_t)"
|
||||
$ForceConformanceInForLoopScope "Yes (/Zc:forScope)"
|
||||
$EnableRunTimeTypeInfo "Yes (/GR)"
|
||||
$OpenMPSupport "No"
|
||||
|
||||
// Precompiled Headers
|
||||
$Create/UsePrecompiledHeader "Not Using Precompiled Headers"
|
||||
$Create/UsePCHThroughFile
|
||||
$PrecompiledHeaderFile
|
||||
|
||||
// Output Files
|
||||
$ExpandAttributedSource "No"
|
||||
$AssemblerOutput "No Listing"
|
||||
$ASMListLocation "$(IntDir)/"
|
||||
$ObjectFileName "$(IntDir)/"
|
||||
$ProgramDatabaseFileName "$(IntDir)/"
|
||||
|
||||
// Browse Information
|
||||
$EnableBrowseInformation "None"
|
||||
$BrowseFile "$(IntDir)/"
|
||||
|
||||
// Advanced
|
||||
$CompileAs "Compile as C++ Code (/TP)"
|
||||
$DisableSpecificWarnings
|
||||
$ForceIncludes "tier0/platform.h"
|
||||
$ShowIncludes "No"
|
||||
$UndefinePreprocessorDefinitions
|
||||
$UndefineAllPreprocessorDefinitions "No"
|
||||
$UseFullPaths
|
||||
$OmitDefaultLibraryNames
|
||||
|
||||
// Xbox 360
|
||||
$RegisterReservation
|
||||
$TrapIntegerDividesOptimization
|
||||
$PreschedulingOptimization
|
||||
$InlineAssemblyOptimization
|
||||
$Stalls
|
||||
$CallAttributedProfiling "Call profiler within function calls. (/callcap)" [$CALLCAP]
|
||||
$CallAttributedProfiling "Call profiler around function calls. (/fastcap)" [$FASTCAP]
|
||||
|
||||
// Command Line
|
||||
$AdditionalOptions "$BASE /QVMX128"
|
||||
$AdditionalOptions "$BASE /Oy-" [$NOFPO]
|
||||
}
|
||||
|
||||
$Librarian
|
||||
{
|
||||
// General
|
||||
$OutputFile "$OUTLIBDIR\$OUTLIBNAME_360.lib"
|
||||
$AdditionalDependencies
|
||||
$AdditionalLibraryDirectories
|
||||
$SuppressStartupBanner "Yes (/NOLOGO)"
|
||||
$ModuleDefinitionFileName
|
||||
$IgnoreAllDefaultLibraries
|
||||
$IgnoreSpecificLibrary "libc;libcd;libcmtd" [!$PROFILE]
|
||||
$IgnoreSpecificLibrary "libc;libcd;libcmtd;xapilib" [$PROFILE]
|
||||
$ExportNamedFunctions
|
||||
$ForceSymbolReferences
|
||||
$LinkLibraryDependencies
|
||||
|
||||
// Command Line
|
||||
}
|
||||
|
||||
$BrowseInformation
|
||||
{
|
||||
$SuppressStartupBanner "Yes (/nologo)"
|
||||
$OutputFile "$(OutDir)/$OUTLIBNAME.bsc"
|
||||
$AdditionalOptions
|
||||
}
|
||||
|
||||
$PreBuildEvent
|
||||
{
|
||||
$CommandLine
|
||||
$Description
|
||||
$ExcludedFromBuild "No"
|
||||
}
|
||||
|
||||
$PreLinkEvent
|
||||
{
|
||||
$CommandLine
|
||||
$Description
|
||||
$ExcludedFromBuild "No"
|
||||
}
|
||||
|
||||
$PostBuildEvent
|
||||
{
|
||||
$CommandLine
|
||||
$Description
|
||||
$ExcludedFromBuild "No"
|
||||
}
|
||||
|
||||
$CustomBuildStep
|
||||
{
|
||||
// General
|
||||
$CommandLine
|
||||
$Description
|
||||
$Outputs
|
||||
$AdditionalDependencies
|
||||
}
|
||||
}
|
||||
35
vpc_scripts/source_mll_qt_base.vpc
Normal file
35
vpc_scripts/source_mll_qt_base.vpc
Normal file
@@ -0,0 +1,35 @@
|
||||
//====== Copyright (c) 1996-2010, Valve Corporation, All rights reserved. =====
|
||||
//
|
||||
// Maya Plugin For Win32 - Same As source_dll_qt_win32_base.vpc except:
|
||||
// * QT_ROOT is left unspecified, the part VPC script needs to define it
|
||||
// as it varies with the version of Maya
|
||||
// * QT_NO_DEBUG is always defined.
|
||||
// * Only release versions of Qt libraries are linked
|
||||
// Maya is linked with release Qt libs, linking a plug-in with debug
|
||||
// libs will crash when a Qt widget is created
|
||||
//
|
||||
//=============================================================================
|
||||
|
||||
$MacroRequired "QT_ROOT"
|
||||
|
||||
$Include "$SRCDIR\vpc_scripts\source_dll_base.vpc"
|
||||
$Include "$SRCDIR\vpc_scripts\qt_base.vpc"
|
||||
|
||||
$Configuration
|
||||
{
|
||||
$Compiler
|
||||
{
|
||||
$AdditionalIncludeDirectories "$BASE;.\;$QT_ROOT\include;.\$QT_TARGET_SUBDIR"
|
||||
$PreprocessorDefinitions "$BASE;QT_LARGEFILE_SUPPORT;QT_DLL;QT_GUI_LIB;QT_CORE_LIB;QT_THREAD_SUPPORT;QT_NO_DEBUG"
|
||||
$DisableSpecificWarnings "4127;4512;$BASE"
|
||||
}
|
||||
}
|
||||
|
||||
$Project
|
||||
{
|
||||
$Folder "Link Libraries"
|
||||
{
|
||||
$Lib "$QT_ROOT\lib\qtcore4"
|
||||
$Lib "$QT_ROOT\lib\qtgui4"
|
||||
}
|
||||
}
|
||||
75
vpc_scripts/source_posix_base.vpc
Normal file
75
vpc_scripts/source_posix_base.vpc
Normal file
@@ -0,0 +1,75 @@
|
||||
|
||||
$Include "$SRCDIR\vpc_scripts\version.vpc"
|
||||
|
||||
$Macro LIBPUBLIC "$SRCDIR\lib\public$PLATSUBDIR"
|
||||
$Macro LIBCOMMON "$SRCDIR\lib\common$PLATSUBDIR"
|
||||
|
||||
$MacroRequired "SRCDIR"
|
||||
|
||||
|
||||
$Configuration "Debug"
|
||||
{
|
||||
$Compiler
|
||||
{
|
||||
$PreprocessorDefinitions "$BASE;DEBUG;_DEBUG"
|
||||
$OptimizerLevel "-gdwarf-2 -g2 $(OptimizerLevel_CompilerSpecific)" [$OSXALL]
|
||||
$OptimizerLevel "-gdwarf-4 -g2 $(OptimizerLevel_CompilerSpecific)" [$LINUX]
|
||||
}
|
||||
}
|
||||
|
||||
$Configuration "Release"
|
||||
{
|
||||
$Compiler
|
||||
{
|
||||
$PreprocessorDefinitions "$BASE;NDEBUG"
|
||||
$OptimizerLevel "-gdwarf-2 -g2 $(OptimizerLevel_CompilerSpecific)" [$OSXALL]
|
||||
$OptimizerLevel "-gdwarf-4 -g2 $(OptimizerLevel_CompilerSpecific)" [$LINUX]
|
||||
$PreprocessorDefinitions "$BASE;RELEASEASSERTS" [$RELEASEASSERTS]
|
||||
}
|
||||
}
|
||||
|
||||
$Configuration
|
||||
{
|
||||
$General
|
||||
{
|
||||
$ConfigurationType "Application (.exe)"
|
||||
}
|
||||
|
||||
$Compiler
|
||||
{
|
||||
$AdditionalIncludeDirectories "$SRCDIR\common;$SRCDIR\public;$SRCDIR\public\tier0;$SRCDIR\public\tier1"
|
||||
$AdditionalLibraryDirectories "$LIBCOMMON;$LIBPUBLIC" [$OSXALL]
|
||||
$PreprocessorDefinitions "$BASE;GNUC;POSIX;COMPILER_GCC;_DLL_EXT=$_DLL_EXT"
|
||||
$PreprocessorDefinitions "$BASE;DEDICATED" [$DEDICATED]
|
||||
// the 10240 in the following line is the output of `sysctl -n kern.maxfilesperproc`
|
||||
$PreprocessorDefinitions "$BASE;_OSX;OSX;_DARWIN_UNLIMITED_SELECT;FD_SETSIZE=10240;" [$OSXALL]
|
||||
$PreprocessorDefinitions "$BASE;OVERRIDE_V_DEFINES" [$OSXALL]
|
||||
$PreprocessorDefinitions "$BASE;_LINUX;LINUX;" [$LINUXALL]
|
||||
$PreprocessorDefinitions "$BASE;PLATFORM_64BITS" [$LINUX64]
|
||||
$SymbolVisibility "hidden" [$POSIX]
|
||||
$PreprocessorDefinitions "$BASE;POSIX;_POSIX" [$POSIX]
|
||||
|
||||
$PreprocessorDefinitions "$BASE;PLATFORM_64BITS" [$OSX64]
|
||||
$GCC_ExtraCompilerFlags "$BASE -arch x86_64" [$OSX64]
|
||||
|
||||
$Create/UsePCHThroughFile "stdafx.h"
|
||||
}
|
||||
|
||||
$Linker
|
||||
{
|
||||
$GCC_ExtraLinkerFlags "$BASE -arch x86_64" [$OSX64]
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$Project
|
||||
{
|
||||
|
||||
$Folder "Link Libraries"
|
||||
{
|
||||
$ImpLib "$LIBPUBLIC\tier0" [!$IS_LIB_PROJECT]
|
||||
$Lib "$LIBPUBLIC\tier1" [!$IS_LIB_PROJECT]
|
||||
$ImpLib "$LIBPUBLIC\vstdlib" [!$IS_LIB_PROJECT]
|
||||
}
|
||||
}
|
||||
|
||||
39
vpc_scripts/source_replay.vpc
Normal file
39
vpc_scripts/source_replay.vpc
Normal file
@@ -0,0 +1,39 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// SOURCE_REPLAY.VPC
|
||||
//
|
||||
// Controls compilation of the replay system via the REPLAY_ENABLE preprocessor
|
||||
// definition.
|
||||
//
|
||||
// The BUILD_REPLAY macro (below) controls the definition of REPLAY_ENABLE
|
||||
// across multiple projects like engine, TF client & server DLL's, and any
|
||||
// other games with replay support.
|
||||
//
|
||||
// This file serves two purposes:
|
||||
//
|
||||
// 1. To provide a single place where replay can be built out of all games,
|
||||
// in other words the engine, as well as any supported game client/server
|
||||
// DLL's. This is useful for avoiding shipping any replay code prematurely
|
||||
// (i.e. when we do staging -> rel integrations), for example.
|
||||
//
|
||||
// 1. Any client/server DLL's that don't have REPLAY_ENABLE defined will not
|
||||
// attempt to load or interact with the replay system, because they will
|
||||
// not build the code to do so.
|
||||
//
|
||||
// If BUILD_REPLAY=1, replay will be built in the engine, and client/server
|
||||
// projects for supported games - otherwise, it will not.
|
||||
//
|
||||
// If you are adding replay support to a specific game, you must include this
|
||||
// file in both its client_* and server_*.vpc files.
|
||||
//
|
||||
// This file should not be included in client_base.vpc or server_base.vpc.
|
||||
//
|
||||
// Replay is only loaded for games explicitly specified in engine/replay.cpp
|
||||
// (see s_pSupportedReplayGames).
|
||||
//
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
$Macro BUILD_REPLAY 1
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
$Include "$SRCDIR\vpc_scripts\source_replay_private.vpc" [$BUILD_REPLAY && !$X360]
|
||||
22
vpc_scripts/source_replay_private.vpc
Normal file
22
vpc_scripts/source_replay_private.vpc
Normal file
@@ -0,0 +1,22 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// SOURCE_REPLAY_PRIVATE.VPC
|
||||
//
|
||||
// Included from SOURCE_REPLAY.VPC if the $BUILD_REPLAY macro defined.
|
||||
//
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
$Configuration
|
||||
{
|
||||
$Compiler
|
||||
{
|
||||
$PreprocessorDefinitions "$BASE;REPLAY_ENABLED"
|
||||
}
|
||||
}
|
||||
|
||||
$Project
|
||||
{
|
||||
$Folder "Link libraries"
|
||||
{
|
||||
$Lib "$LIBCOMMON/replay_common"
|
||||
}
|
||||
}
|
||||
18
vpc_scripts/source_saxxyawards.vpc
Normal file
18
vpc_scripts/source_saxxyawards.vpc
Normal file
@@ -0,0 +1,18 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// SOURCE_SAXXYAWARDS.VPC
|
||||
//
|
||||
// Turn the macro on to enable the Saxxy awards main menu UI and music.
|
||||
//
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
$Macro SAXXYAWARDS_ENABLE 0
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
$Configuration
|
||||
{
|
||||
$Compiler
|
||||
{
|
||||
$PreprocessorDefinitions "$BASE;SAXXYMAINMENU_ENABLED" [$SAXXYAWARDS_ENABLE]
|
||||
}
|
||||
}
|
||||
50
vpc_scripts/source_video_base.vpc
Normal file
50
vpc_scripts/source_video_base.vpc
Normal file
@@ -0,0 +1,50 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// AVI_BASE.VPC
|
||||
//
|
||||
// Controls selection (and compilation) of various video subsystems
|
||||
//
|
||||
// Defines to add or remove to the preprocessor definitions:
|
||||
//
|
||||
// AVI_VIDEO - controls availability of IAvi interface, playing of AVI Video files in Engine
|
||||
// BINK_VIDEO - controls availability of IBik interface
|
||||
// QUICKTIME_VIDEO - controls availability of IQuickTime interface
|
||||
// WMV_VIDEO - controls availability of playing WMV MPEG video files in Engine
|
||||
//
|
||||
// FORCE_QUICKTIME - causes engine to force change ".bik" ".wmv" ".avi" extensions to ".mov" and
|
||||
// look for Quicktime playback *IF* the same file exists in .mov form
|
||||
//
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
|
||||
// We use Quicktime exclusively (and only quicktime) on the Mac
|
||||
//
|
||||
// We have two configurations for Win32.
|
||||
//
|
||||
// 1) Comment out the following $macro line out to enable BINK (and AVI and WMV) playback of videos
|
||||
// 2) Uncomment the following $macro line out to enable Quicktime (and AVI and WMV) playback of videos and
|
||||
// - the Quicktime file override ( the Quicktime .mov is played if present even if a .bnk, .avi or .wmv file was specified )
|
||||
|
||||
// $macro QUICKTIME_WIN32 1
|
||||
|
||||
$Conditional GL "1" [!$DEDICATED && !$WIN32 && !$WIN64]
|
||||
// If we're using OpenGL, we're implicitly using SDL.
|
||||
$Macro SDL "1" [$GL && !$DEDICATED]
|
||||
|
||||
$Configuration
|
||||
{
|
||||
$Compiler
|
||||
{
|
||||
$PreprocessorDefinitions "$BASE;QUICKTIME_VIDEO;FORCE_QUICKTIME" [$OSXALL]
|
||||
|
||||
// Windows PC, without Quicktime, and with Quicktime
|
||||
|
||||
$PreprocessorDefinitions "$BASE;BINK_VIDEO;AVI_VIDEO;WMV_VIDEO" [$WIN32&&!$QUICKTIME_WIN32]
|
||||
$PreprocessorDefinitions "$BASE;AVI_VIDEO;WMV_VIDEO;QUICKTIME_VIDEO" [$WIN32&&$QUICKTIME_WIN32]
|
||||
$PreprocessorDefinitions "$BASE;BINK_VIDEO" [$X360]
|
||||
$PreprocessorDefinitions "$BASE;BINK_VIDEO" [$LINUXALL]
|
||||
|
||||
$PreprocessorDefinitions "$BASE;GL_GLEXT_PROTOTYPES;DX_TO_GL_ABSTRACTION" [$GL]
|
||||
$PreprocessorDefinitions "$BASE;USE_SDL" [$SDL]
|
||||
$AdditionalIncludeDirectories "$BASE;$SRCDIR\thirdparty\SDL2" [$SDL || $DEDICATED]
|
||||
}
|
||||
}
|
||||
66
vpc_scripts/source_win32_analyze.vpc
Normal file
66
vpc_scripts/source_win32_analyze.vpc
Normal file
@@ -0,0 +1,66 @@
|
||||
// /analyze specific settings. Placed here so that they can be changed without triggering rebuilds of the entire world.
|
||||
|
||||
$Configuration
|
||||
{
|
||||
$Compiler
|
||||
{
|
||||
// When using /analyze (triggered with /define:ANALYZE on the vpc command line) we want to forcibly disable lots
|
||||
// of warnings.
|
||||
// warning C6308: 'realloc' might return null pointer, cause the original memory block to be leaked
|
||||
// warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead
|
||||
// warning C6387: 'argument 1' might be '0': this does not adhere to the specification for the function 'GetProcAddress'
|
||||
// warning C6309: Argument '1' is null: this does not adhere to function specification of 'GetProcAddress'
|
||||
// warning C6011: Dereferencing NULL pointer 'm_ppTestCases'
|
||||
// warning C6211: Leaking memory 'newKeyValue' due to an exception. Consider using a local catch block to clean up memory
|
||||
// These warnings are because /analyze doesn't like our use of constants, especially things like IsPC()
|
||||
// warning C6326: Potential comparison of a constant with another constant
|
||||
// warning C6239: (<non-zero constant> && <expression>) always evaluates to the result of <expression>. Did you intend to use the bitwise-and operator?
|
||||
// warning C6285: (<non-zero constant> || <non-zero constant>) is always a non-zero constant. Did you intend to use the bitwise-and operator?
|
||||
// warning C6237: (<zero> && <expression>) is always zero. <expression> is never evaluated and might have side effects
|
||||
// warning C6235: (<non-zero constant> || <expression>) is always a non-zero constant
|
||||
// warning C6240: (<expression> && <non-zero constant>) always evaluates to the result of <expression>. Did you intend to use the bitwise-and operator?
|
||||
// These warnings aren't really important:
|
||||
// warning C6323: Use of arithmetic operator on Boolean type(s)
|
||||
// /analyze doesn't like GCOMPILER_ASSERT's implementation of compile-time asserts
|
||||
// warning C6326: Potential comparison of a constant with another constant
|
||||
// warning C6335: Leaking process information handle 'pi.hThread'
|
||||
// warning C6320: Exception-filter expression is the constant EXCEPTION_EXECUTE_HANDLER. This might mask exceptions that were not intended to be handled
|
||||
// warning C6250: Calling 'VirtualFree' without the MEM_RELEASE flag might free memory but not address descriptors (VADs). This causes address space leaks
|
||||
// warning C6384: Dividing sizeof a pointer by another value
|
||||
// warning C6318: Ill-defined __try/__except: use of the constant EXCEPTION_CONTINUE_SEARCH -- bogus
|
||||
// warning C6322: Empty _except block
|
||||
|
||||
// Set the stack size threshold to 100,000 to avoid noisy warnings on functions with modest stack usage
|
||||
// Note that /analyze for VS 2010 only works with the 32-bit compiler, but for VS 2012 it works on 64-bit
|
||||
// as well.
|
||||
$DisableSpecificWarnings "$BASE;6308;6255;6387;6309;6011;6211;6326;6239;6285;6237;6235;6240;6323;6326;6335;6320;6250;6384;6318;6322" [$ANALYZE]
|
||||
// See http://randomascii.wordpress.com/2011/10/04/analyzecommand-line-options/ for details on these options.
|
||||
// /analyze:only may result in fewer warnings being reported, but the warnings it misses should show up in the regular build.
|
||||
$AdditionalOptions "$BASE /analyze /analyze:stacksize100000" [$ANALYZE]
|
||||
$AdditionalOptions "$BASE /analyze:only" [$ANALYZE && $ANALYZE_MACHINE] // /analyze:only makes builds faster on buildbot but is terrible for incremental /analyze on developer machines
|
||||
|
||||
// Specify /define:ALLOWSHADOWING to suppress variable shadowing warnings
|
||||
$DisableSpecificWarnings "$BASE;6244;6246" [$ANALYZE && $ALLOWSHADOWING]
|
||||
|
||||
// New warnings in VS 2012 that we want to ignore.
|
||||
// warning C4005: 'DXGI_STATUS_OCCLUDED' : macro redefinition
|
||||
// warning C6014: Leaking memory 'pThinkParams'.
|
||||
// warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days.
|
||||
// warning C28182: Dereferencing NULL pointer. 'pPropMesh' contains the same NULL value as '(CMesh *)=(pPropMesh)' did.
|
||||
// warning C28183: 'entropy->ac_count_ptrs[actbl]' could be '0', and is a copy of the value found in 'entropy->dc_count_ptrs[dctbl]': this does not adhere to the specification for the function 'memset'.
|
||||
// warning C28197: Possibly leaking memory 'pInfo'.
|
||||
// warning C28198: Possibly leaking memory 'kvFrame1' due to an exception. Is a local catch block needed to clean up memory?
|
||||
// warning C28204: 'QueryInterface' : Only one of this overload and the one at c:\program files (x86)\windows kits\8.0\include\um\unknwnbase.h(114) are annotated for _Param_(2): both or neither must be annotated.
|
||||
// warning C28247: Model file annotation for function '_vsnprintf': annotation on _Param_(1)/SAL_post, 'RequiresZeroTermination' duplicates header file annotation 'SAL_nullTerminated'. Remove the duplicated annotations from the model file. (Header: c:\program files (x86)\microsoft visual studio 11.0\vc\include\stdio.h(349).)
|
||||
// warning C28251: Inconsistent annotation for 'WinMain': this instance has no annotations. See c:\program files (x86)\windows kits\8.0\include\um\winbase.h(2286).
|
||||
// warning C28301: No annotations for first declaration of 'InitializeCriticalSection'. See d:\clients\tf3\staging\src\public\tier0\threadtools.h(1373).
|
||||
// warning C28195: The function was declared as acquiring memory in 'return' and exited without doing so.
|
||||
// warning C6340: Mismatch on sign: 'unsigned short' passed as parameter '6' when some signed type is required in call to 'V_snprintf'.
|
||||
// This warning only applies to Windows XP in low-memory situations:
|
||||
// warning C28125: The function 'InitializeCriticalSection' must be called from within a try\except block
|
||||
// warning C28160: Error annotation: Calling VirtualFreeEx without the MEM_RELEASE flag frees memory but not address descriptors (VADs); results in address space leaks.
|
||||
// warning C6248: Setting a SECURITY_DESCRIPTOR's DACL to NULL will result in an unprotected object.
|
||||
// warning C6102: Using value from failed function call
|
||||
$DisableSpecificWarnings "$BASE;6014;28159;28182;28183;28197;28198;28204;28247;28251;28301;28195;6340;28125;28160;6248;6102" [$ANALYZE && ($VS2012 || $VS2013)]
|
||||
}
|
||||
}
|
||||
72
vpc_scripts/source_win32_base.vpc
Normal file
72
vpc_scripts/source_win32_base.vpc
Normal file
@@ -0,0 +1,72 @@
|
||||
// Settings for /analyze are in a separate .vpc file so that they can be
|
||||
// changed without triggering a full rebuild of non-analyze builds. On non-analyze
|
||||
// builds the analyze.vpc file will not be listed as a dependency.
|
||||
$Include "$SRCDIR\vpc_scripts\source_win32_analyze.vpc" [$ANALYZE]
|
||||
|
||||
$Conditional $AT_LEAST_VS2015 "true" [$VS2015]
|
||||
$Conditional $AT_LEAST_VS2013 "true" [$VS2013 || $AT_LEAST_VS2015]
|
||||
|
||||
$Configuration
|
||||
{
|
||||
$General
|
||||
{
|
||||
// Request a specific compiler toolset.
|
||||
$PlatformToolset "v100" [$VS2010]
|
||||
$PlatformToolset "v110_xp" [$VS2012 && !$ANALYZE] // VS 2012 targeting Windows XP - http://msdn.microsoft.com/en-us/library/vstudio/jj851139.aspx
|
||||
$PlatformToolset "v110" [$VS2012 && $ANALYZE] // VS 2012 for /analyze
|
||||
$PlatformToolset "v120_xp" [$VS2013 && !$ANALYZE] // VS 2013 targeting Windows XP - http://msdn.microsoft.com/en-us/library/vstudio/jj851139.aspx
|
||||
$PlatformToolset "v120" [$VS2013 && $ANALYZE] // VS 2013 for /analyze
|
||||
$PlatformToolset "v140_xp" [$VS2015 && !$ANALYZE] // VS 2015 for /analyze
|
||||
$PlatformToolset "v140" [$VS2015 && $ANALYZE] // VS 2015 for /analyze
|
||||
}
|
||||
|
||||
$General
|
||||
{
|
||||
$ExecutableDirectories "$(ExecutablePath);$(Path)"
|
||||
// We need to override mt.exe for Win7 compatibiity. Append paths before $(ExecutablePath) if you need VS to use your tools rather than its own
|
||||
$ExecutableDirectories "$SRCDIR\devtools\vstools;$BASE"
|
||||
// VS 2012 compiles fine but does not link. We want to redirect to stub versions of
|
||||
// the tools (like link.exe and mt.exe) so that the link stage will be NOPed when
|
||||
// doing /analyze builds.
|
||||
$ExecutableDirectories "$SRCDIR\devtools\vs_nop_tools;$BASE" [$ANALYZE]
|
||||
}
|
||||
|
||||
$Compiler
|
||||
{
|
||||
$MultiProcessorCompilation "True"
|
||||
|
||||
// warning C4316: object allocated on the heap may not be aligned 16
|
||||
$DisableSpecificWarnings "$BASE;4316" [$AT_LEAST_VS2013]
|
||||
|
||||
// following are needed for VS2015 using old Windows SDK. Would like to move to each include location
|
||||
$DisableSpecificWarnings "$BASE;4577;4091" [$WINDOWS && $AT_LEAST_VS2015]
|
||||
|
||||
|
||||
// Having lots of warnings makes it harder to notice new, and possibly
|
||||
// important warnings, both on buildbot and in the output window. Lots
|
||||
// of warnings also makes it harder to skip through errors in the output
|
||||
// window since F8 stops on both warnings and errors. The only way to
|
||||
// keep the warning count down is to have warnings-as-errors.
|
||||
// We will not be warning free on 64-bit for a while...
|
||||
$TreatWarningsAsErrors "Yes (/WX)" [!$ANALYZE && !$WIN64]
|
||||
|
||||
// Defines to differentiate 32 from 64 bit builds
|
||||
$PreprocessorDefinitions "$BASE;PLATFORM_64BITS;WIN64;_WIN64;COMPILER_MSVC64" [$WIN64]
|
||||
$PreprocessorDefinitions "$BASE;COMPILER_MSVC32" [$WIN32]
|
||||
|
||||
// /Gw is a VS 2013 option that puts global and static variables in individual sections so that the
|
||||
// linker can discard unreferenced data. When building @client /dota with linker optimizations this
|
||||
// reduces the client.dll size by about 1.14%. When linker optimizations are disabled this has no
|
||||
// effect. This option does not show up in the IDE so we need to add it in $AdditionalOptions.
|
||||
// http://blogs.msdn.com/b/vcblog/archive/2013/09/11/introducing-gw-compiler-switch.aspx
|
||||
$AdditionalOptions "$BASE /Gw" [$AT_LEAST_VS2013]
|
||||
// Strip unreferenced inline functions from object files to shrink .obj files and .lib files,
|
||||
// improve linker speed, and improve conformance. Requires VS 2013 Update 3
|
||||
$AdditionalOptions "$BASE /Zc:inline" [$AT_LEAST_VS2013]
|
||||
|
||||
$AdditionalOptions "$BASE /Zc:threadSafeInit-" [$AT_LEAST_VS2015] //thread-safe static initialization will crash on Windows XP if the dll is dynamically loaded
|
||||
|
||||
$AdditionalOptions "$BASE /Wv:18" [$AT_LEAST_VS2015&&!$WARN_ALL] //warning C4456: declaration of 'accFactorZ' hides previous local declaration suppression
|
||||
|
||||
}
|
||||
}
|
||||
107
vpc_scripts/source_xex_x360_base.vpc
Normal file
107
vpc_scripts/source_xex_x360_base.vpc
Normal file
@@ -0,0 +1,107 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// SOURCE_XEX_X360_BASE.VPC
|
||||
//
|
||||
// Base Settings for Source(TM) Projects
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
$Include "$SRCDIR\vpc_scripts\version.vpc"
|
||||
|
||||
// 360 must have a xex load address
|
||||
$Include "$SRCDIR\vpc_scripts\loadaddress.vpc"
|
||||
$MacroRequired "LOADADDRESS_DEVELOPMENT"
|
||||
$MacroRequired "LOADADDRESS_RETAIL"
|
||||
|
||||
$MacroRequired "SRCDIR"
|
||||
$MacroRequired "OUTBINNAME" "$PROJECTNAME"
|
||||
$MacroRequired "OUTBINDIR"
|
||||
$MacroRequired "DEVKITBINDIR" "."
|
||||
|
||||
$Include "$SRCDIR\vpc_scripts\source_xex_x360_debug.vpc"
|
||||
$Include "$SRCDIR\vpc_scripts\source_xex_x360_release.vpc"
|
||||
|
||||
$IgnoreRedundancyWarning "ON"
|
||||
|
||||
// Common Configuration
|
||||
$Configuration
|
||||
{
|
||||
$Compiler
|
||||
{
|
||||
$PreprocessorDefinitions "$BASE;_MEMTEST" [$MEMTEST]
|
||||
}
|
||||
|
||||
$Xbox360ImageConversion
|
||||
{
|
||||
// General
|
||||
$TitleID "0x4541080F"
|
||||
$ProjectDefaults "$SRCDIR\common\hl2orange.xml"
|
||||
}
|
||||
|
||||
$ConsoleDeployment
|
||||
{
|
||||
$ExcludedFromBuild "Yes"
|
||||
$DeploymentRoot "xe:\Valve"
|
||||
}
|
||||
|
||||
$PreBuildEvent
|
||||
{
|
||||
$CommandLine "if EXIST $OUTBINDIR\$(TargetName).xex for /f $QUOTEdelims=$QUOTE %%A in ('attrib $QUOTE$OUTBINDIR\$(TargetName).xex$QUOTE') do set valveTmpIsReadOnly=$QUOTE%%A$QUOTE" "\n" \
|
||||
"set valveTmpIsReadOnlyLetter=%valveTmpIsReadOnly:~6,1%" "\n" \
|
||||
"if $QUOTE%valveTmpIsReadOnlyLetter%$QUOTE==$QUOTER$QUOTE del /q $(TargetDir)$(TargetName).xex" "\n" \
|
||||
"$CRCCHECK"
|
||||
}
|
||||
|
||||
$PostBuildEvent
|
||||
{
|
||||
$CommandLine "call $SRCDIR\vpc_scripts\valve_p4_edit.cmd $OUTBINDIR\$(TargetName).xex $SRCDIR" "\n" \
|
||||
"copy $(TargetDir)$(TargetName).xex $OUTBINDIR\$(TargetName).xex" "\n" \
|
||||
"if exist $(TargetDir)$(TargetName).map copy $(TargetDir)$(TargetName).map $OUTBINDIR\$(TargetName).map" "\n" \
|
||||
"call $SRCDIR\vpc_scripts\valve_p4_edit.cmd $OUTBINDIR\$(TargetName).pdb $SRCDIR" "\n" \
|
||||
"copy $(TargetDir)$(TargetName).pdb $OUTBINDIR\$(TargetName).pdb" "\n" \
|
||||
"copy $(TargetDir)$(TargetName).xdb $OUTBINDIR\$(TargetName).xdb" "\n" \
|
||||
"call $SRCDIR\vpc_scripts\valve_xbcp_wrapper.cmd $(TargetDir)$(TargetName).xex $(RemoteRoot)\$DEVKITBINDIR\$(TargetName).xex" "\n"
|
||||
$Description "Publishing to $OUTBINDIR"
|
||||
$ExcludedFromBuild "No"
|
||||
}
|
||||
|
||||
// this forces a dependency on the published directory
|
||||
// when the dependency fails (the xex is deleted), the PostBuildEvent will run, thus causing the publish to re-occur
|
||||
// this allows for faster debug/release flipping without having to recompile or relink
|
||||
$CustomBuildStep
|
||||
{
|
||||
// General
|
||||
$CommandLine "echo Checking Dependency $OUTBINDIR\$(TargetName).xex"
|
||||
$Description " "
|
||||
$Outputs "$OUTBINDIR\$(TargetName).xex"
|
||||
}
|
||||
}
|
||||
|
||||
// Skeleton Project
|
||||
$Project
|
||||
{
|
||||
$Folder "Source Files"
|
||||
{
|
||||
$File "$SRCDIR\public\tier0\memoverride.cpp"
|
||||
{
|
||||
$Configuration
|
||||
{
|
||||
$Compiler
|
||||
{
|
||||
$Create/UsePrecompiledHeader "Not Using Precompiled Headers"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$Folder "Link Libraries"
|
||||
{
|
||||
$File "$SRCDIR\lib\public\tier0_360.lib"
|
||||
$File "$SRCDIR\lib\public\tier1_360.lib"
|
||||
$File "$SRCDIR\lib\public\vstdlib_360.lib"
|
||||
}
|
||||
|
||||
$Folder "Resources"
|
||||
{
|
||||
$File "$ROOTSCRIPT"
|
||||
}
|
||||
}
|
||||
|
||||
261
vpc_scripts/source_xex_x360_debug.vpc
Normal file
261
vpc_scripts/source_xex_x360_debug.vpc
Normal file
@@ -0,0 +1,261 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// SOURCE_XEX_X360_DEBUG.VPC
|
||||
//
|
||||
// Base Settings for Source(TM) Projects
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
$MacroRequired "LOADADDRESS_DEVELOPMENT"
|
||||
$MacroRequired "SRCDIR"
|
||||
$MacroRequired "OUTBINNAME"
|
||||
$MacroRequired "OUTBINDIR"
|
||||
|
||||
$IgnoreRedundancyWarning "ON"
|
||||
|
||||
$Configuration "Debug"
|
||||
{
|
||||
$General
|
||||
{
|
||||
// General
|
||||
$OutputDirectory ".\Debug_360"
|
||||
$IntermediateDirectory ".\Debug_360"
|
||||
$ExtensionsToDeleteOnClean
|
||||
$BuildLogFile
|
||||
$InheritedProjectPropertySheets
|
||||
|
||||
// Project Defaults
|
||||
$ConfigurationType "Application (.exe)"
|
||||
$CharacterSet "Not Set"
|
||||
$WholeProgramOptimization "No Whole Program Optimization"
|
||||
}
|
||||
|
||||
$Debugging
|
||||
{
|
||||
$Command "$(RemoteRoot)\$(TargetFileName)"
|
||||
$CommandArguments
|
||||
$MapDVDDrive
|
||||
$RemoteMachine
|
||||
}
|
||||
|
||||
$Compiler
|
||||
{
|
||||
// General
|
||||
$AdditionalIncludeDirectories "$SRCDIR\common;$SRCDIR\public;$SRCDIR\public\tier0;$SRCDIR\public\tier1"
|
||||
$DebugInformationFormat "Program Database (/Zi)"
|
||||
$SuppressStartupBanner "Yes (/nologo)"
|
||||
$WarningLevel "Level 4 (/W4)"
|
||||
$TreatWarningsAsErrors "No"
|
||||
$UseUNICODEResponseFiles "No"
|
||||
|
||||
// Optimization
|
||||
$Optimization "Disabled (/Od)"
|
||||
$InlineFunctionExpansion
|
||||
$EnableIntrinsicFunctions "Yes (/Oi)"
|
||||
$FavorSizeOrSpeed "Neither"
|
||||
$EnableFiberSafeOptimizations "No"
|
||||
$WholeProgramOptimization "No"
|
||||
|
||||
// Preprocessor
|
||||
$PreprocessorDefinitions "_HAS_ITERATOR_DEBUGGING=0;_X360;_DEBUG;DEBUG;_WIN32;WIN32;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE"
|
||||
$PreprocessorDefinitions "$BASE;_CERT" [$CERT]
|
||||
$IgnoreStandardIncludePath
|
||||
$GeneratePreprocessedFile
|
||||
$KeepComments "No"
|
||||
|
||||
// Code Generation
|
||||
$EnableStringPooling "Yes (/GF)"
|
||||
$EnableMinimalRebuild "Yes (/Gm)"
|
||||
$EnableC++Exceptions "No"
|
||||
$SmallerTypeCheck
|
||||
$BasicRuntimeChecks "Both (/RTC1, equiv. to /RTCsu)"
|
||||
$RuntimeLibrary "Multi-threaded Debug (/MTd)"
|
||||
$StructMemberAlignment
|
||||
// 360 Issue: Enable BufferSecurityCheck below in AdditionalOptions
|
||||
$BufferSecurityCheck "No"
|
||||
$EnableFunctionLevelLinking
|
||||
$FloatingPointModel "Fast (/fp:fast)"
|
||||
$EnableFloatingPointExceptions "No"
|
||||
|
||||
// Language
|
||||
$DisableLanguageExtensions "No"
|
||||
$DefaultCharUnsigned "No"
|
||||
$TreatWCHAR_TAsBuiltInType "Yes (/Zc:wchar_t)"
|
||||
$ForceConformanceInForLoopScope "Yes (/Zc:forScope)"
|
||||
$EnableRunTimeTypeInfo "Yes (/GR)"
|
||||
$OpenMPSupport "No"
|
||||
|
||||
// Precompiled Headers
|
||||
$Create/UsePrecompiledHeader "Not Using Precompiled Headers"
|
||||
$Create/UsePCHThroughFile
|
||||
$PrecompiledHeaderFile
|
||||
|
||||
// Output Files
|
||||
$ExpandAttributedSource "No"
|
||||
$AssemblerOutput "No Listing"
|
||||
$ASMListLocation "$(IntDir)/"
|
||||
$ObjectFileName "$(IntDir)/"
|
||||
$ProgramDatabaseFileName "$(IntDir)/"
|
||||
|
||||
// Browse Information
|
||||
$EnableBrowseInformation "None"
|
||||
$BrowseFile "$(IntDir)/"
|
||||
|
||||
// Advanced
|
||||
$CompileAs "Compile as C++ Code (/TP)"
|
||||
$DisableSpecificWarnings
|
||||
$ForceIncludes "tier0/platform.h"
|
||||
$ShowIncludes "No"
|
||||
$UndefinePreprocessorDefinitions
|
||||
$UndefineAllPreprocessorDefinitions "No"
|
||||
$UseFullPaths
|
||||
$OmitDefaultLibraryNames
|
||||
|
||||
// Xbox 360
|
||||
$RegisterReservation "No"
|
||||
$TrapIntegerDividesOptimization "No"
|
||||
$PreschedulingOptimization "No"
|
||||
$InlineAssemblyOptimization "No"
|
||||
$Stalls "No"
|
||||
$CallAttributedProfiling "Disabled"
|
||||
|
||||
// Command Line
|
||||
$AdditionalOptions "/QVMX128 /GS"
|
||||
}
|
||||
|
||||
$Linker
|
||||
{
|
||||
// General
|
||||
$OutputFile "$(OutDir)/$OUTBINNAME.exe"
|
||||
$ShowProgress "Not Set"
|
||||
$Version
|
||||
$EnableIncrementalLinking "Yes (/INCREMENTAL)"
|
||||
$SuppressStartupBanner "Yes (/NOLOGO)"
|
||||
$IgnoreImportLibrary
|
||||
$AdditionalLibraryDirectories
|
||||
$LinkLibraryDependencies
|
||||
$UseLibraryDependencyInputs
|
||||
$UseUNICODEResponseFiles "No"
|
||||
|
||||
// Input
|
||||
$AdditionalDependencies "d3d9d.lib xapilibd.lib xboxkrnl.lib libpmcpbd.lib"
|
||||
$AdditionalDependencies "d3d9d.lib xapilibd.lib xboxkrnl.lib libpmcpbd.lib xbdm.lib" [$PROFILE]
|
||||
$AdditionalDependencies "d3d9d.lib xapilibd.lib xboxkrnl.lib" [$CERT]
|
||||
$IgnoreAllDefaultLibraries
|
||||
$IgnoreSpecificLibrary "libc;libcd;libcmt;xapilib"
|
||||
$ModuleDefinitionFile
|
||||
$ForceSymbolReferences
|
||||
|
||||
// Debugging
|
||||
$GenerateDebugInfo "Yes (/DEBUG)"
|
||||
$GenerateProgramDatabaseFile "$(IntDir)/$(TargetName).pdb"
|
||||
$StripPrivateSymbols
|
||||
$GenerateMapFile "No"
|
||||
$MapFileName "$(IntDir)/$(TargetName).map"
|
||||
$MapExports "No"
|
||||
|
||||
// System
|
||||
$StackCommitSize "262144"
|
||||
|
||||
// Optimization
|
||||
$References
|
||||
$EnableCOMDATFolding
|
||||
$FunctionOrder
|
||||
$ProfileGuidedDatabase
|
||||
$LinkTimeCodeGeneration
|
||||
|
||||
// Advanced
|
||||
$EntryPoint
|
||||
$NoEntryPoint
|
||||
$SetChecksum "No"
|
||||
$BaseAddress "$LOADADDRESS_DEVELOPMENT"
|
||||
$FixedBaseAddress "Image must be loaded at a fixed address (/FIXED)"
|
||||
$ImportLibrary
|
||||
$MergeSections
|
||||
$ErrorReporting "Prompt Immediately (/ERRORREPORT:PROMPT)"
|
||||
|
||||
// Command Line
|
||||
$AdditionalOptions
|
||||
}
|
||||
|
||||
$Xbox360ImageConversion
|
||||
{
|
||||
// General
|
||||
$OutputFile "$(OutDir)/$OUTBINNAME.xex"
|
||||
$TitleID
|
||||
$LANKey
|
||||
$SuppressStartupBanner "Yes (/NOLOGO)"
|
||||
$BaseAddress
|
||||
$HeapSize
|
||||
$WorkspaceSize
|
||||
$AdditionalSections
|
||||
$ExportByName
|
||||
|
||||
// Privileges
|
||||
$OpticalDiscDriveMapping
|
||||
$PAL50Incompatible
|
||||
|
||||
// Project Defaults
|
||||
$ProjectDefaults
|
||||
|
||||
// Command Line
|
||||
$AdditionalOptions
|
||||
}
|
||||
|
||||
$BrowseInformation
|
||||
{
|
||||
$SuppressStartupBanner "Yes (/nologo)"
|
||||
$OutputFile "$(OutDir)/$OUTBINNAME.bsc"
|
||||
$AdditionalOptions
|
||||
}
|
||||
|
||||
$PreBuildEvent
|
||||
{
|
||||
$CommandLine
|
||||
$Description
|
||||
$ExcludedFromBuild "No"
|
||||
}
|
||||
|
||||
$PreLinkEvent
|
||||
{
|
||||
$CommandLine
|
||||
$Description
|
||||
$ExcludedFromBuild "No"
|
||||
}
|
||||
|
||||
$PostBuildEvent
|
||||
{
|
||||
$CommandLine
|
||||
$Description
|
||||
$ExcludedFromBuild "No"
|
||||
}
|
||||
|
||||
$CustomBuildStep
|
||||
{
|
||||
// General
|
||||
$CommandLine
|
||||
$Description
|
||||
$Outputs
|
||||
$AdditionalDependencies
|
||||
}
|
||||
|
||||
$ConsoleDeployment
|
||||
{
|
||||
// Common Settings
|
||||
$DeploymentType "Copy to Hard Drive"
|
||||
$DeploymentFiles "$(RemoteRoot)=$(TargetPath);"
|
||||
|
||||
// Copy to Hard Drive
|
||||
$ExcludedFromBuild "Yes"
|
||||
$SuppressStartupBanner "Yes (/nologo)"
|
||||
$Progress "No"
|
||||
$ForceCopy
|
||||
$DeploymentRoot
|
||||
|
||||
// Emulate DVD Drive
|
||||
$EmulationType
|
||||
$Layout
|
||||
$LayoutRoot
|
||||
|
||||
// Command Line
|
||||
$AdditionalOptions
|
||||
}
|
||||
}
|
||||
262
vpc_scripts/source_xex_x360_release.vpc
Normal file
262
vpc_scripts/source_xex_x360_release.vpc
Normal file
@@ -0,0 +1,262 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// SOURCE_XEX_X360_RELEASE.VPC
|
||||
//
|
||||
// Base Settings for Source(TM) Projects
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
$MacroRequired "LOADADDRESS_RETAIL"
|
||||
$MacroRequired "SRCDIR"
|
||||
$MacroRequired "OUTBINNAME"
|
||||
$MacroRequired "OUTBINDIR"
|
||||
|
||||
$IgnoreRedundancyWarning "ON"
|
||||
|
||||
$Configuration "Release"
|
||||
{
|
||||
$General
|
||||
{
|
||||
// General
|
||||
$OutputDirectory ".\Release_360"
|
||||
$IntermediateDirectory ".\Release_360"
|
||||
$ExtensionsToDeleteOnClean
|
||||
$BuildLogFile
|
||||
$InheritedProjectPropertySheets
|
||||
|
||||
// Project Defaults
|
||||
$ConfigurationType "Application (.exe)"
|
||||
$CharacterSet "Not Set"
|
||||
$WholeProgramOptimization
|
||||
}
|
||||
|
||||
$Debugging
|
||||
{
|
||||
$Command "$(RemoteRoot)\$(TargetFileName)"
|
||||
$CommandArguments
|
||||
$MapDVDDrive
|
||||
$RemoteMachine
|
||||
}
|
||||
|
||||
$Compiler
|
||||
{
|
||||
// General
|
||||
$AdditionalIncludeDirectories "$SRCDIR\common;$SRCDIR\public;$SRCDIR\public\tier0;$SRCDIR\public\tier1"
|
||||
$DebugInformationFormat "Program Database (/Zi)"
|
||||
$SuppressStartupBanner "Yes (/nologo)"
|
||||
$WarningLevel "Level 4 (/W4)"
|
||||
$TreatWarningsAsErrors "No"
|
||||
$UseUNICODEResponseFiles "No"
|
||||
|
||||
// Optimization
|
||||
$Optimization "Full Optimization (/Ox)"
|
||||
$InlineFunctionExpansion "Any Suitable (/Ob2)"
|
||||
$EnableIntrinsicFunctions "Yes (/Oi)"
|
||||
$FavorSizeOrSpeed "Favor Fast Code (/Ot)"
|
||||
$EnableFiberSafeOptimizations
|
||||
$WholeProgramOptimization
|
||||
|
||||
// Preprocessor
|
||||
$PreprocessorDefinitions "_X360;NDEBUG;_WIN32;WIN32;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;__VMX128_SUPPORTED"
|
||||
$PreprocessorDefinitions "$BASE;_CERT" [$CERT]
|
||||
$IgnoreStandardIncludePath
|
||||
$GeneratePreprocessedFile
|
||||
$KeepComments "No"
|
||||
|
||||
// Code Generation
|
||||
$EnableStringPooling "Yes (/GF)"
|
||||
$EnableMinimalRebuild "No"
|
||||
$EnableC++Exceptions "No"
|
||||
$SmallerTypeCheck "No"
|
||||
$BasicRuntimeChecks
|
||||
$RuntimeLibrary "Multi-threaded (/MT)"
|
||||
$StructMemberAlignment
|
||||
$BufferSecurityCheck "No"
|
||||
$EnableFunctionLevelLinking "Yes (/Gy)"
|
||||
$FloatingPointModel "Fast (/fp:fast)"
|
||||
$EnableFloatingPointExceptions "No"
|
||||
|
||||
// Language
|
||||
$DisableLanguageExtensions "No"
|
||||
$DefaultCharUnsigned "No"
|
||||
$TreatWCHAR_TAsBuiltInType "Yes (/Zc:wchar_t)"
|
||||
$ForceConformanceInForLoopScope "Yes (/Zc:forScope)"
|
||||
$EnableRunTimeTypeInfo "Yes (/GR)"
|
||||
$OpenMPSupport "No"
|
||||
|
||||
// Precompiled Headers
|
||||
$Create/UsePrecompiledHeader "Not Using Precompiled Headers"
|
||||
$Create/UsePCHThroughFile
|
||||
$PrecompiledHeaderFile
|
||||
|
||||
// Output Files
|
||||
$ExpandAttributedSource "No"
|
||||
$AssemblerOutput "No Listing"
|
||||
$ASMListLocation "$(IntDir)/"
|
||||
$ObjectFileName "$(IntDir)/"
|
||||
$ProgramDatabaseFileName "$(IntDir)/"
|
||||
|
||||
// Browse Information
|
||||
$EnableBrowseInformation "None"
|
||||
$BrowseFile "$(IntDir)/"
|
||||
|
||||
// Advanced
|
||||
$CompileAs "Compile as C++ Code (/TP)"
|
||||
$DisableSpecificWarnings
|
||||
$ForceIncludes "tier0/platform.h"
|
||||
$ShowIncludes "No"
|
||||
$UndefinePreprocessorDefinitions
|
||||
$UndefineAllPreprocessorDefinitions "No"
|
||||
$UseFullPaths
|
||||
$OmitDefaultLibraryNames
|
||||
|
||||
// Xbox 360
|
||||
$RegisterReservation
|
||||
$TrapIntegerDividesOptimization
|
||||
$PreschedulingOptimization
|
||||
$InlineAssemblyOptimization
|
||||
$Stalls
|
||||
$CallAttributedProfiling
|
||||
|
||||
// Command Line
|
||||
$AdditionalOptions "/QVMX128"
|
||||
$AdditionalOptions "$BASE /DPROFILE" [$PROFILE]
|
||||
}
|
||||
|
||||
$Linker
|
||||
{
|
||||
// General
|
||||
$OutputFile "$(OutDir)/$OUTBINNAME.exe"
|
||||
$ShowProgress "Not Set"
|
||||
$Version
|
||||
$EnableIncrementalLinking "No (/INCREMENTAL:NO)"
|
||||
$SuppressStartupBanner "Yes (/NOLOGO)"
|
||||
$IgnoreImportLibrary "No"
|
||||
$AdditionalLibraryDirectories
|
||||
$LinkLibraryDependencies
|
||||
$UseLibraryDependencyInputs
|
||||
$UseUNICODEResponseFiles "No"
|
||||
|
||||
// Input
|
||||
$AdditionalDependencies "d3d9.lib xapilib.lib xboxkrnl.lib libpmcpb.lib" [!$PROFILE]
|
||||
$AdditionalDependencies "d3d9i.lib xapilibi.lib xboxkrnl.lib libpmcpb.lib xbdm.lib" [$PROFILE]
|
||||
$AdditionalDependencies "d3d9.lib xapilib.lib xboxkrnl.lib" [$CERT]
|
||||
$IgnoreAllDefaultLibraries
|
||||
$IgnoreSpecificLibrary "libc;libcd;libcmtd;" [!$PROFILE]
|
||||
$IgnoreSpecificLibrary "libc;libcd;libcmtd;xapilib" [$PROFILE]
|
||||
$ModuleDefinitionFile
|
||||
$ForceSymbolReferences
|
||||
|
||||
// Debugging
|
||||
$GenerateDebugInfo "Yes (/DEBUG)"
|
||||
$GenerateProgramDatabaseFile "$(IntDir)/$(TargetName).pdb"
|
||||
$StripPrivateSymbols
|
||||
$GenerateMapFile "No"
|
||||
$MapFileName "$(IntDir)/$(TargetName).map"
|
||||
$MapExports "No"
|
||||
|
||||
// System
|
||||
$StackCommitSize "262144"
|
||||
|
||||
// Optimization
|
||||
$References "Eliminate Unreferenced Data (/OPT:REF)"
|
||||
$EnableCOMDATFolding "Remove Redundant COMDATs (/OPT:ICF)"
|
||||
$FunctionOrder
|
||||
$ProfileGuidedDatabase
|
||||
$LinkTimeCodeGeneration
|
||||
|
||||
// Advanced
|
||||
$EntryPoint
|
||||
$NoEntryPoint
|
||||
$SetChecksum "Yes (/RELEASE)"
|
||||
$BaseAddress "$LOADADDRESS_DEVELOPMENT"
|
||||
$BaseAddress "$LOADADDRESS_RETAIL" [$RETAIL]
|
||||
$FixedBaseAddress "Image must be loaded at a fixed address (/FIXED)"
|
||||
$ImportLibrary
|
||||
$MergeSections
|
||||
$ErrorReporting "Prompt Immediately (/ERRORREPORT:PROMPT)"
|
||||
|
||||
// Command Line
|
||||
}
|
||||
|
||||
$Xbox360ImageConversion
|
||||
{
|
||||
// General
|
||||
$OutputFile "$(OutDir)/$OUTBINNAME.xex"
|
||||
$TitleID
|
||||
$LANKey
|
||||
$SuppressStartupBanner "Yes (/NOLOGO)"
|
||||
$BaseAddress
|
||||
$HeapSize
|
||||
$WorkspaceSize
|
||||
$AdditionalSections
|
||||
$ExportByName
|
||||
|
||||
// Privileges
|
||||
$OpticalDiscDriveMapping
|
||||
$PAL50Incompatible
|
||||
|
||||
// Project Defaults
|
||||
$ProjectDefaults
|
||||
|
||||
// Command Line
|
||||
$AdditionalOptions
|
||||
}
|
||||
|
||||
$BrowseInformation
|
||||
{
|
||||
$SuppressStartupBanner "Yes (/nologo)"
|
||||
$OutputFile "$(OutDir)/$OUTBINNAME.bsc"
|
||||
$AdditionalOptions
|
||||
}
|
||||
|
||||
$PreBuildEvent
|
||||
{
|
||||
$CommandLine
|
||||
$Description
|
||||
$ExcludedFromBuild "No"
|
||||
}
|
||||
|
||||
$PreLinkEvent
|
||||
{
|
||||
$CommandLine
|
||||
$Description
|
||||
$ExcludedFromBuild "No"
|
||||
}
|
||||
|
||||
$PostBuildEvent
|
||||
{
|
||||
$CommandLine
|
||||
$Description
|
||||
$ExcludedFromBuild "No"
|
||||
}
|
||||
|
||||
$CustomBuildStep
|
||||
{
|
||||
// General
|
||||
$CommandLine
|
||||
$Description
|
||||
$Outputs
|
||||
$AdditionalDependencies
|
||||
}
|
||||
|
||||
$ConsoleDeployment
|
||||
{
|
||||
// Common Settings
|
||||
$DeploymentType "Copy to Hard Drive"
|
||||
$DeploymentFiles "$(RemoteRoot)=$(TargetPath);"
|
||||
|
||||
// Copy to Hard Drive
|
||||
$ExcludedFromBuild "Yes"
|
||||
$SuppressStartupBanner "Yes (/nologo)"
|
||||
$Progress "No"
|
||||
$ForceCopy
|
||||
$DeploymentRoot
|
||||
|
||||
// Emulate DVD Drive
|
||||
$EmulationType
|
||||
$Layout
|
||||
$LayoutRoot
|
||||
|
||||
// Command Line
|
||||
$AdditionalOptions
|
||||
}
|
||||
}
|
||||
54
vpc_scripts/steam_exe_posix_base.vpc
Normal file
54
vpc_scripts/steam_exe_posix_base.vpc
Normal file
@@ -0,0 +1,54 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// SOURCE_EXE_WIN_WIN32.VPC
|
||||
//
|
||||
// Base Settings for Source(TM) Projects
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
$Include "$SRCDIR\vpc_scripts\version.vpc"
|
||||
$Include "$SRCDIR\vpc_scripts\steam_posix_base.vpc"
|
||||
|
||||
$MacroRequired "SRCDIR"
|
||||
$MacroRequired "OUTBINNAME" "$PROJECTNAME"
|
||||
|
||||
$Include "$SRCDIR\vpc_scripts\loadaddress.vpc"
|
||||
|
||||
|
||||
$IgnoreRedundancyWarning "ON"
|
||||
|
||||
$Configuration
|
||||
{
|
||||
$General
|
||||
{
|
||||
$ConfigurationType "Application (.exe)"
|
||||
}
|
||||
|
||||
$Compiler
|
||||
{
|
||||
$AdditionalIncludeDirectories "$SRCDIR\common;$SRCDIR\public;$SRCDIR\public\tier0;$SRCDIR\public\tier1;/usr/include/malloc"
|
||||
$PreprocessorDefinitions "$BASE;_GNUC;POSIX;"
|
||||
$PreprocessorDefinitions "$BASE;_OSX;OSX;" [$OSX32 || $OSX64]
|
||||
$PreprocessorDefinitions "$BASE;_LINUX;LINUX" [$LINUXALL]
|
||||
}
|
||||
$Linker
|
||||
{
|
||||
$OutputFile "$(OutDir)/$OUTBINNAME"
|
||||
}
|
||||
}
|
||||
|
||||
$Project
|
||||
{
|
||||
$Folder "Source Files"
|
||||
{
|
||||
$File "$SRCDIR\public\tier0\memoverride.cpp"
|
||||
{
|
||||
$Configuration
|
||||
{
|
||||
$Compiler
|
||||
{
|
||||
$Create/UsePrecompiledHeader "Not Using Precompiled Headers"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
69
vpc_scripts/swig_depend.cmd
Normal file
69
vpc_scripts/swig_depend.cmd
Normal file
@@ -0,0 +1,69 @@
|
||||
@setlocal enableextensions & "%2\..\game\sdktools\Perl\bin\perl.exe" -x "%~f0" %* & goto :EOF
|
||||
#!/usr/bin/perl
|
||||
|
||||
my $swigFile = $ARGV[ 0 ];
|
||||
my $srcDir = $ARGV[ 1 ];
|
||||
my $pyVer = $ARGV[ 2 ];
|
||||
|
||||
my $swig = $srcDir . "\\devtools\\swigwin-1.3.34\\swig.exe";
|
||||
|
||||
$dirtyFile = $swigFile . ".dep";
|
||||
|
||||
if ( ! -f $dirtyFile )
|
||||
{
|
||||
open DIRTY, ">${dirtyFile}";
|
||||
print DIRTY <<"EOF";
|
||||
//
|
||||
// This file is simply here to be a build dependency for ${swigFile}.i
|
||||
// The modification time of this file will be the newest modification time
|
||||
// of all of the dependencies of ${baseFile}.i as generated by
|
||||
//
|
||||
// ${swig} \\
|
||||
// -Fmicrosoft -ignoremissing -c++ -I${srcDir}\\public -python -M ${swigFile}.i
|
||||
//
|
||||
// If this file doesn't exist, it is created by the pre-build step
|
||||
//
|
||||
EOF
|
||||
|
||||
( $dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime,$blksize,$blocks ) = stat( $dirtyFile );
|
||||
|
||||
print( "[swig_depend] Setting ${dirtyFile} Modification Time To: " . localtime( $atime ) . "\n" );
|
||||
|
||||
exit( 0 );
|
||||
}
|
||||
|
||||
if ( ! -f $dirtyFile )
|
||||
{
|
||||
die( "Can't Find ${dirtyFile}\n" );
|
||||
}
|
||||
|
||||
( $dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime,$blksize,$blocks ) = stat( $dirtyFile );
|
||||
|
||||
my $dirtyTime = $mtime;
|
||||
my $maxTime = $mtime;
|
||||
|
||||
open SWIG, "$swig -Fmicrosoft -ignoremissing -c++ -Iswig_python${pyVer} -I${srcDir}\\public -python -M ${swigFile}.i |" || die( "Couldn't Run Swig\n" );
|
||||
|
||||
while ( <SWIG> )
|
||||
{
|
||||
chomp;
|
||||
s/^\s+//;
|
||||
s/\s+\\\s*$//;
|
||||
|
||||
( $dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime,$blksize,$blocks ) = stat( $_ );
|
||||
|
||||
if ( $mtime > $maxTime )
|
||||
{
|
||||
$maxTime = $mtime;
|
||||
}
|
||||
}
|
||||
|
||||
close SWIG;
|
||||
|
||||
if ( $maxTime > $dirtyTime )
|
||||
{
|
||||
print( "[swig_depend] Setting ${dirtyFile} Modification Time To: " . localtime( $atime ) . "\n" );
|
||||
utime $maxTime, $maxTime, $dirtyFile;
|
||||
}
|
||||
|
||||
exit( 0 );
|
||||
113
vpc_scripts/swig_python.cmd
Normal file
113
vpc_scripts/swig_python.cmd
Normal file
@@ -0,0 +1,113 @@
|
||||
:: //
|
||||
:: // Batch file to build .py & .cpp modules from swig.i source files
|
||||
:: //
|
||||
:: // SYNTAX: swig_python.cmd file srcdir outdir pythonver
|
||||
:: //
|
||||
:: // EXAMPLE: swig_python.cmd base.i ..\..\.. d:\dev\main\game\sdktools\python\site-packages\vs pythonver 2.5
|
||||
:: //
|
||||
|
||||
@echo off
|
||||
|
||||
setlocal
|
||||
|
||||
:: // Make sure we have 4 args
|
||||
|
||||
if .%1.==.. (
|
||||
goto Usage
|
||||
)
|
||||
|
||||
if .%2.==.. (
|
||||
goto Usage
|
||||
)
|
||||
|
||||
if .%3.==.. (
|
||||
goto Usage
|
||||
)
|
||||
|
||||
if .%4.==.. (
|
||||
goto Usage
|
||||
)
|
||||
|
||||
:Main
|
||||
|
||||
set SWIGFILE=%1%
|
||||
set SRCDIR=%2%
|
||||
set OUTDIR=%3%
|
||||
set PYTHONVER=%4%
|
||||
set SWIG=%SRCDIR%\devtools\swigwin-1.3.34\swig.exe
|
||||
set SWIGDIR=swig_python%PYTHONVER%
|
||||
set SWIGC=%SWIGFILE%_wrap_python%PYTHONVER%.cpp
|
||||
set DIFF=%SRCDIR%\devtools\bin\diff.exe -q
|
||||
set P4EDIT=%SRCDIR%\vpc_scripts\valve_p4_edit.cmd
|
||||
|
||||
:: // Check to see if things don't exist and issue inteligible error messages
|
||||
if NOT EXIST %SWIG% goto NoSwig
|
||||
|
||||
if NOT EXIST %DIFF% goto NoDiff
|
||||
|
||||
:: // Make the output directory if necessary
|
||||
if NOT EXIST %SWIGDIR% mkdir %SWIGDIR%
|
||||
|
||||
if NOT EXIST %SWIGDIR% goto NoSwigDir
|
||||
|
||||
if EXIST %SWIGC% attrib -R %SWIGC%
|
||||
|
||||
echo *** [swig_python] %SWIG% -small -Fmicrosoft -ignoremissing -c++ -Iswig_python%PYTHONVER% -I%SRCDIR%\public -o "%SWIGC%" -outdir "%SWIGDIR%" -python "%SWIGFILE%.i" ***
|
||||
call %SWIG% -small -Fmicrosoft -ignoremissing -c++ -Iswig_python%PYTHONVER% -I%SRCDIR%\public -o "%SWIGC%" -outdir "%SWIGDIR%" -python "%SWIGFILE%.i"
|
||||
if ERRORLEVEL 1 goto SwigFailed
|
||||
|
||||
if EXIST %SWIGC% attrib -R %SWIGC%
|
||||
|
||||
if NOT EXIST "%SWIGDIR%\%SWIGFILE%.py" echo "Can't Find diff SRC %SWIGDIR%\%SWIGFILE%.py"
|
||||
if NOT EXIST "%OUTDIR%\%SWIGFILE%.py" echo "Can't Find diff DST %OUTDIR%\%SWIGFILE%.py"
|
||||
echo *** [swig_python] %DIFF% "%SWIGDIR%\%SWIGFILE%.py" "%OUTDIR%\%SWIGFILE%.py" ***
|
||||
call %DIFF% "%SWIGDIR%\%SWIGFILE%.py" "%OUTDIR%\%SWIGFILE%.py" > NUL:
|
||||
if ERRORLEVEL 1 goto CopyPy
|
||||
goto EndOk
|
||||
|
||||
:CopyPy
|
||||
echo *** [swig_python] %P4EDIT% %OUTDIR%\%SWIGFILE%.py %SRCDIR% ***
|
||||
call %P4EDIT% %OUTDIR%\%SWIGFILE%.py %SRCDIR%
|
||||
if ERRORLEVEL 1 goto P4Failed
|
||||
|
||||
echo *** [swig_python] "%SWIGDIR%\%SWIGFILE%.py" "%OUTDIR%\%SWIGFILE%.py" ***
|
||||
call copy "%SWIGDIR%\%SWIGFILE%.py" "%OUTDIR%\%SWIGFILE%.py" > NUL:
|
||||
if ERRORLEVEL 1 goto CopyFailed
|
||||
|
||||
:EndOk
|
||||
echo *** [swig_python] Swig Complete!
|
||||
endlocal
|
||||
exit /b 0
|
||||
|
||||
:Usage
|
||||
echo *** [swig_python] Error calling command! No file specified for swig! Usage: swig_python.cmd file srcdir outdir pythonver
|
||||
endlocal
|
||||
exit 1
|
||||
|
||||
:SwigFailed
|
||||
echo *** [swig_python] swig command failed
|
||||
goto EndError
|
||||
|
||||
:P4Failed
|
||||
echo *** [swig_python] ERROR: %P4EDIT% %OUTDIR%\%SWIGFILE%.py %SRCDIR%
|
||||
goto EndError
|
||||
|
||||
:CopyFailed
|
||||
echo *** [swig_python] ERROR: copy "%SWIGDIR%\%SWIGFILE%.py" "%OUTDIR%\%SWIGFILE%.py"
|
||||
goto EndError
|
||||
|
||||
:NoSwig
|
||||
echo *** [swig_python] ERROR: Can't Find SWIG executable "%SWIG%", ensure src/devtools is synced
|
||||
goto EndError
|
||||
|
||||
:NoDiff
|
||||
echo *** [swig_python] ERROR: Can't Find DIFF executable "%DIFF%", ensure src/devtools is synced
|
||||
goto EndError
|
||||
|
||||
:NoSwigDir
|
||||
echo *** [swig_python] ERROR: Can't Find Or Create Swig Intermediate Directory "%SWIGDIR%"
|
||||
goto EndError
|
||||
|
||||
:EndError
|
||||
endlocal
|
||||
exit 1
|
||||
67
vpc_scripts/swig_python.vpc
Normal file
67
vpc_scripts/swig_python.vpc
Normal file
@@ -0,0 +1,67 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
// swig_python.vpc - Compile rules for swig -> c++ for Python modules
|
||||
//
|
||||
// Include before defining the macro $SWIGFILE
|
||||
//
|
||||
// Use like this (NOTE: Do not add the .i extension):
|
||||
//
|
||||
// $Macro SWIGFILE "foo"
|
||||
// $Include "$SRCDIR/vpc_scripts/swig_python.vpc"
|
||||
//
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
$MacroRequired "PYTHONVER"
|
||||
|
||||
$MacroRequired "SWIGFILE"
|
||||
|
||||
$Configuration
|
||||
{
|
||||
$PreBuildEvent
|
||||
{
|
||||
$CommandLine "call $SRCDIR\vpc_scripts\swig_depend.cmd $SWIGFILE $SRCDIR $PYTHONVER" "\n" "$BASE"
|
||||
}
|
||||
}
|
||||
|
||||
$Project
|
||||
{
|
||||
$Folder "SWIG Source"
|
||||
{
|
||||
$File "$SWIGFILE.i"
|
||||
{
|
||||
$Configuration
|
||||
{
|
||||
$CustomBuildStep
|
||||
{
|
||||
$CommandLine "$SRCDIR\vpc_scripts\swig_python.cmd $SWIGFILE $SRCDIR $OUTBINDIR $PYTHONVER"
|
||||
$AdditionalDependencies "$SWIGFILE.dep"
|
||||
$Description "SWIG -> C++, $SWIGFILE.i -> swig_python$PYTHONVER\$SWIGFILE_wrap_python$PYTHONVER.cpp"
|
||||
$Outputs "$QUOTE$SWIGFILE_wrap_python$PYTHONVER.cpp$QUOTE;$QUOTEswig_python$PYTHONVER\$SWIGFILE.py$QUOTE"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$Folder "Read Only"
|
||||
{
|
||||
$Folder "SWIG Generated Python Files"
|
||||
{
|
||||
$DynamicFile "$OUTBINDIR\$SWIGFILE.py"
|
||||
}
|
||||
|
||||
$Folder "SWIG Generated Source Files"
|
||||
{
|
||||
$DynamicFile "$QUOTE$SWIGFILE_wrap_python$PYTHONVER.cpp$QUOTE"
|
||||
{
|
||||
$Configuration
|
||||
{
|
||||
$Compiler
|
||||
{
|
||||
$AdditionalOptions "/wd4127 /wd4244 /wd4505 /wd4706"
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
28
vpc_scripts/valve_xbcp_wrapper.cmd
Normal file
28
vpc_scripts/valve_xbcp_wrapper.cmd
Normal file
@@ -0,0 +1,28 @@
|
||||
@echo off
|
||||
|
||||
setlocal
|
||||
|
||||
|
||||
:: // If they've disabled xbcp, then don't use it.
|
||||
if NOT "%VALVE_NO_XBCP%"=="" (
|
||||
echo [valve_xbcp_wrapper] VALVE_NO_XBCP defined. Avoiding the copy.
|
||||
endlocal
|
||||
exit /b 0
|
||||
)
|
||||
|
||||
|
||||
set localFilename=%1
|
||||
set remoteFilename=%2
|
||||
|
||||
"%XEDK%\bin\win32\xbcp" /y /t "%localFilename%" "%remoteFilename%"
|
||||
|
||||
if %ERRORLEVEL%==1 (
|
||||
echo XBCP failed. If you don't have an X360 but want to compile its sources, define VALVE_NO_XBCP.
|
||||
del /q %1%
|
||||
exit 1
|
||||
)
|
||||
|
||||
|
||||
:End
|
||||
endlocal
|
||||
exit /b 0
|
||||
12
vpc_scripts/version.vpc
Normal file
12
vpc_scripts/version.vpc
Normal file
@@ -0,0 +1,12 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// VERSION.VPC
|
||||
//
|
||||
// Version tag for VPC scripts. All base scripts include this file first.
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
// This version tag serves as a critical safeguard to ensure all vcproj's can
|
||||
// be forced to rebuild. Changing the version or anything about this
|
||||
// file will cause the CRC checking to fail, and thus cause a rebuild.
|
||||
|
||||
// DO NOT CHANGE THIS UNLESS YOU !!!REALLY!!! NEED TO FORCE EVERY SINGLE VCPROJ TO REGENERATE
|
||||
$Macro "InternalVersion" "104"
|
||||
Reference in New Issue
Block a user