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.

89 lines
2.4 KiB

  1. //======= Copyright � 1996-2009, Valve Corporation, All rights reserved. ======
  2. //
  3. // swig_python.vpc - Compile rules for swig -> c++ for Python modules
  4. //
  5. // Include before defining the macro $SWIGFILE
  6. //
  7. // Use like this (NOTE: Do not add the .i extension):
  8. //
  9. // $Macro SWIGFILE "foo"
  10. // $Include "$SRCDIR/vpc_scripts/swig_python.vpc"
  11. //
  12. //=============================================================================
  13. $MacroRequired "PYTHONVER"
  14. $MacroRequired "SRCDIR"
  15. $MacroRequired "SWIGFILE"
  16. $Macro SWIG_OUT_DIR "swig_python$PYTHONVER_win64" [$WIN64]
  17. $Macro SWIG_OUT_DIR "swig_python$PYTHONVER" [!$WIN64]
  18. $Macro SWIG_P_FILE "$SWIGFILE.py"
  19. $Macro SWIG_C_FILE "$SWIGFILE_wrap_python$PYTHONVER.cpp"
  20. $Configuration
  21. {
  22. $Compiler
  23. {
  24. $DisableSpecificWarnings "4211;$BASE"
  25. }
  26. $PostBuildEvent [$WINDOWS]
  27. {
  28. $CommandLine "CALL $SRCDIR\vpc_scripts\swig_install.cmd $SWIG_OUT_DIR\$SWIGFILE.py $OUTBINDIR\$SWIGFILE.py" "\n" "$BASE"
  29. }
  30. }
  31. $Project
  32. {
  33. $Folder "SWIG Source"
  34. {
  35. $File "$SWIGFILE.i"
  36. {
  37. $Configuration
  38. {
  39. $CustomBuildStep
  40. {
  41. $CommandLine "CALL $SRCDIR\vpc_scripts\swig_python.cmd $PYTHONVER $OUTBINDIR $SWIGFILE AUTOSWIG" [$AUTOSWIG]
  42. $CommandLine "CALL $SRCDIR\vpc_scripts\swig_python.cmd $PYTHONVER $OUTBINDIR $SWIGFILE" [!$AUTOSWIG]
  43. $AdditionalDependencies "$SWIGDEPS;$SRCDIR\vpc_scripts\swig_python.cmd;$SRCDIR\vpc_scripts\swig_install.cmd"
  44. $AdditionalDependencies "$BASE;$SRCDIR\vpc_scripts\swig_auto_dme.pl;$SRCDIR\public\$SWIGFILE\$SWIGFILE.cpp" [$AUTOSWIG]
  45. $Description "SWIG produces C++, $SWIGFILE.i produces $SWIG_OUT_DIR\$SWIG_C_FILE" [!$AUTOSWIG]
  46. $Outputs "$SWIG_OUT_DIR\$SWIG_C_FILE;$SWIG_OUT_DIR\$SWIG_P_FILE" [!$AUTOSWIG]
  47. $Description "SWIG produces C++, $SWIGFILE.i produces $SWIG_OUT_DIR\$SWIG_C_FILE; $SWIG_OUT_DIR\auto_$SWIGFILE.i" [$AUTOSWIG]
  48. $Outputs "$SWIG_OUT_DIR\$SWIG_C_FILE;$SWIG_OUT_DIR\$SWIG_P_FILE;$SWIG_OUT_DIR\auto_$SWIGFILE.i" [$AUTOSWIG]
  49. }
  50. }
  51. }
  52. }
  53. $Folder "Read Only"
  54. {
  55. $Folder "SWIG Generated Python Files"
  56. {
  57. $DynamicFile "$OUTBINDIR\$SWIGFILE.py"
  58. }
  59. $Folder "SWIG Generated Source Files"
  60. {
  61. $DynamicFile "$SWIG_OUT_DIR\auto_$SWIGFILE.i" [$AUTOSWIG]
  62. $DynamicFile "$SWIG_OUT_DIR\$SWIG_C_FILE"
  63. {
  64. $Configuration
  65. {
  66. $Compiler
  67. {
  68. $AdditionalOptions "/wd4127 /wd4244 /wd4505 /wd4706"
  69. }
  70. }
  71. }
  72. }
  73. }
  74. }