Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
2.2 KiB

  1. //-----------------------------------------------------------------------------
  2. // SOURCE_LIB_X360_BASE.VPC
  3. //
  4. // Base Settings for Source(TM) Projects
  5. //-----------------------------------------------------------------------------
  6. $Include "$SRCDIR\vpc_scripts\version.vpc"
  7. $MacroRequired "SRCDIR"
  8. $MacroRequired "OUTLIBNAME" "$PROJECTNAME"
  9. $MacroRequired "OUTLIBDIR"
  10. $Macro PLATSUBDIR "\."
  11. $Macro LIBPUBLIC "$SRCDIR\lib\public"
  12. $Macro LIBCOMMON "$SRCDIR\lib\common"
  13. $Include "$SRCDIR\vpc_scripts\source_lib_x360_debug.vpc"
  14. $Include "$SRCDIR\vpc_scripts\source_lib_x360_release.vpc"
  15. $IgnoreRedundancyWarning "ON"
  16. // Common Configuration
  17. $Configuration
  18. {
  19. $Compiler
  20. {
  21. $PreprocessorDefinitions "$BASE;_MEMTEST" [$MEMTEST]
  22. $PreprocessorDefinitions "$BASE;_LOWVIOLENCE" [$LV]
  23. $PreprocessorDefinitions "$BASE;_X360DEMO" [$X360DEMO]
  24. $PreprocessorDefinitions "$BASE;COMPILER_MSVC;COMPILER_MSVCX360;_DLL_EXT=$_DLL_EXT"
  25. $PreprocessorDefinitions "$BASE;LIBNAME=$OUTLIBNAME"
  26. }
  27. $PreBuildEvent
  28. {
  29. $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" \
  30. "set valveTmpIsReadOnlyLetter=%valveTmpIsReadOnly:~6,1%" "\n" \
  31. "if $QUOTE%valveTmpIsReadOnlyLetter%$QUOTE==$QUOTER$QUOTE (" "\n" \
  32. " attrib -r $OUTLIBDIR\$(TargetName).lib" "\n" \
  33. " $SRCDIR\devtools\bin\gnu\touch.exe -d $QUOTE1999-01-01$QUOTE $OUTLIBDIR\$(TargetName).lib" "\n" \
  34. " attrib +r $OUTLIBDIR\$(TargetName).lib" "\n" \
  35. ")" "\n" \
  36. "$CRCCHECK" "\n"
  37. }
  38. $PostBuildEvent
  39. {
  40. $CommandLine "call $SRCDIR\..\game\bin\CSSVersionNumber.exe $SRCDIR\..\game\platform\resource\css_code_version_local.txt quiet" "\n"
  41. $Description "Creating version number."
  42. $ExcludedFromBuild "No"
  43. }
  44. $PreLinkEvent
  45. {
  46. $CommandLine "call $SRCDIR\vpc_scripts\valve_p4_edit.cmd $OUTLIBDIR\$(TargetName).lib $SRCDIR"
  47. }
  48. }
  49. // Skeleton Project - All derived projects get this as a starting base
  50. $Project
  51. {
  52. $Folder "Source Files"
  53. {
  54. $File "$SRCDIR\common\debug_lib_check.cpp"
  55. {
  56. $Configuration
  57. {
  58. $Compiler
  59. {
  60. $Create/UsePrecompiledHeader "Not Using Precompiled Headers"
  61. }
  62. }
  63. }
  64. }
  65. }