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.

72 lines
3.4 KiB

  1. $MacroRequired GENERATED_PROTO_DIR
  2. // Indicate that this VPC file has been included so that the VPC files
  3. // that declare .proto files can require that this is included first
  4. // by using $MacroRequired PROTOBUF_BUILDER_INCLUDED
  5. $Macro PROTOBUF_BUILDER_INCLUDED "1"
  6. $CustomBuildStep "proto"
  7. {
  8. $Description "Running Protocol Buffer Compiler on $(InputFileName)..."
  9. $CommandLine "if not exist $GENERATED_PROTO_DIR mkdir $GENERATED_PROTO_DIR" "\n" \
  10. "$SRCDIR\devtools\bin\protoc.exe --proto_path=$SRCDIR\thirdparty\protobuf-2.5.0\src --proto_path=$(InputDir) --proto_path=$SRCDIR\gcsdk --proto_path=$SRCDIR\game\shared --proto_path=$SRCDIR\game\shared\cstrike15 --proto_path=$SRCDIR\common --cpp_out=$GENERATED_PROTO_DIR $(InputPath)" [$WINDOWS]
  11. $CommandLine "mkdir -p $GENERATED_PROTO_DIR 2> /dev/null;" \
  12. "$SRCDIR/devtools/bin/osx32/protoc --proto_path=$SRCDIR\thirdparty\protobuf-2.5.0\src --proto_path=$(InputDir) --proto_path=$SRCDIR\gcsdk --proto_path=$SRCDIR\game\shared --proto_path=$SRCDIR\game\shared\cstrike15 --proto_path=$SRCDIR\common --cpp_out=$GENERATED_PROTO_DIR $(InputPath)" [$OSXALL]
  13. $CommandLine "mkdir -p $GENERATED_PROTO_DIR 2> /dev/null;" \
  14. "$SRCDIR/devtools/bin/linux/protoc --proto_path=$SRCDIR\thirdparty\protobuf-2.5.0\src --proto_path=$(InputDir) --proto_path=$SRCDIR\gcsdk --proto_path=$SRCDIR\game\shared --proto_path=$SRCDIR\game\shared\cstrike15 --proto_path=$SRCDIR\common --cpp_out=$GENERATED_PROTO_DIR $(InputPath)" [$LINUX]
  15. $Outputs "$GENERATED_PROTO_DIR\$(InputName).pb.cc;$GENERATED_PROTO_DIR\$(InputName).pb.h"
  16. }
  17. $Configuration
  18. {
  19. $Compiler
  20. {
  21. // General
  22. $AdditionalIncludeDirectories "$BASE;$GENERATED_PROTO_DIR;$SRCDIR\thirdparty\protobuf-2.5.0\src"
  23. $PreprocessorDefinitions "$BASE;PROTOBUF"
  24. }
  25. }
  26. $Project
  27. {
  28. $Folder "Protobuf Files"
  29. {
  30. $Folder "Google Protobuf Headers"
  31. {
  32. $File "$SRCDIR/thirdparty/protobuf-2.5.0/src/google/protobuf/descriptor.h"
  33. $File "$SRCDIR/thirdparty/protobuf-2.5.0/src/google/protobuf/descriptor.pb.h"
  34. $File "$SRCDIR/thirdparty/protobuf-2.5.0/src/google/protobuf/extension_set.h"
  35. $File "$SRCDIR/thirdparty/protobuf-2.5.0/src/google/protobuf/generated_message_reflection.h"
  36. $File "$SRCDIR/thirdparty/protobuf-2.5.0/src/google/protobuf/generated_message_util.h"
  37. $File "$SRCDIR/thirdparty/protobuf-2.5.0/src/google/protobuf/io/coded_stream.h"
  38. $File "$SRCDIR/thirdparty/protobuf-2.5.0/src/google/protobuf/message.h"
  39. $File "$SRCDIR/thirdparty/protobuf-2.5.0/src/google/protobuf/message_lite.h"
  40. $File "$SRCDIR/thirdparty/protobuf-2.5.0/src/google/protobuf/reflection_ops.h"
  41. $File "$SRCDIR/thirdparty/protobuf-2.5.0/src/google/protobuf/repeated_field.h"
  42. $File "$SRCDIR/thirdparty/protobuf-2.5.0/src/google/protobuf/stubs/common.h"
  43. $File "$SRCDIR/thirdparty/protobuf-2.5.0/src/google/protobuf/stubs/once.h"
  44. $File "$SRCDIR/thirdparty/protobuf-2.5.0/src/google/protobuf/unknown_field_set.h"
  45. $File "$SRCDIR/thirdparty/protobuf-2.5.0/src/google/protobuf/wire_format.h"
  46. $File "$SRCDIR/thirdparty/protobuf-2.5.0/src/google/protobuf/wire_format_lite.h"
  47. $File "$SRCDIR/thirdparty/protobuf-2.5.0/src/google/protobuf/wire_format_lite_inl.h"
  48. }
  49. $Folder "Helpers"
  50. {
  51. $File "$SRCDIR/common/protobuf_helpers.h"
  52. $File "$SRCDIR/common/protobuf_helpers.cpp"
  53. {
  54. $Configuration
  55. {
  56. $Compiler [$WINDOWS]
  57. {
  58. $Create/UsePrecompiledHeader "Not Using Precompiled Headers"
  59. }
  60. }
  61. }
  62. }
  63. }
  64. }