Team Fortress 2 Source Code as on 22/4/2020
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.

67 lines
1.4 KiB

  1. //-----------------------------------------------------------------------------
  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 "SWIGFILE"
  15. $Configuration
  16. {
  17. $PreBuildEvent
  18. {
  19. $CommandLine "call $SRCDIR\vpc_scripts\swig_depend.cmd $SWIGFILE $SRCDIR $PYTHONVER" "\n" "$BASE"
  20. }
  21. }
  22. $Project
  23. {
  24. $Folder "SWIG Source"
  25. {
  26. $File "$SWIGFILE.i"
  27. {
  28. $Configuration
  29. {
  30. $CustomBuildStep
  31. {
  32. $CommandLine "$SRCDIR\vpc_scripts\swig_python.cmd $SWIGFILE $SRCDIR $OUTBINDIR $PYTHONVER"
  33. $AdditionalDependencies "$SWIGFILE.dep"
  34. $Description "SWIG -> C++, $SWIGFILE.i -> swig_python$PYTHONVER\$SWIGFILE_wrap_python$PYTHONVER.cpp"
  35. $Outputs "$QUOTE$SWIGFILE_wrap_python$PYTHONVER.cpp$QUOTE;$QUOTEswig_python$PYTHONVER\$SWIGFILE.py$QUOTE"
  36. }
  37. }
  38. }
  39. }
  40. $Folder "Read Only"
  41. {
  42. $Folder "SWIG Generated Python Files"
  43. {
  44. $DynamicFile "$OUTBINDIR\$SWIGFILE.py"
  45. }
  46. $Folder "SWIG Generated Source Files"
  47. {
  48. $DynamicFile "$QUOTE$SWIGFILE_wrap_python$PYTHONVER.cpp$QUOTE"
  49. {
  50. $Configuration
  51. {
  52. $Compiler
  53. {
  54. $AdditionalOptions "/wd4127 /wd4244 /wd4505 /wd4706"
  55. }
  56. }
  57. }
  58. }
  59. }
  60. }