From 77b376f8a0d8d172c51729762f80bb394534aa41 Mon Sep 17 00:00:00 2001 From: Joe Ludwig Date: Thu, 4 Jul 2013 11:20:31 -0700 Subject: * Switched the SDK from checked-in projects to VPC, the Valve Project Creator. See the Getting Started document on the wiki for details. * Pulled in bug fixes from HL2 and HL2MP. --- mp/src/vpc_scripts/protobuf_builder.vpc | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 mp/src/vpc_scripts/protobuf_builder.vpc (limited to 'mp/src/vpc_scripts/protobuf_builder.vpc') diff --git a/mp/src/vpc_scripts/protobuf_builder.vpc b/mp/src/vpc_scripts/protobuf_builder.vpc new file mode 100644 index 00000000..518aeafb --- /dev/null +++ b/mp/src/vpc_scripts/protobuf_builder.vpc @@ -0,0 +1,26 @@ + +$MacroRequired GENERATED_PROTO_DIR + +$CustomBuildStep "proto" +{ + $Description "Running Protocol Buffer Compiler on $(InputFileName)..." + $CommandLine "if not exist $GENERATED_PROTO_DIR mkdir $GENERATED_PROTO_DIR" "\n" \ + "$SRCDIR\gcsdk\bin\protoc.exe --proto_path=$SRCDIR\thirdparty\protobuf-2.3.0\src --proto_path=$(InputDir) --proto_path=$SRCDIR\gcsdk --cpp_out=$GENERATED_PROTO_DIR $(InputPath)" [$WINDOWS] + $CommandLine "mkdir $GENERATED_PROTO_DIR 2> /dev/null;" \ + "$SRCDIR/devtools/bin/osx32/protoc --proto_path=$SRCDIR\thirdparty\protobuf-2.3.0\src --proto_path=$(InputDir) --proto_path=$SRCDIR\gcsdk --cpp_out=$GENERATED_PROTO_DIR $(InputPath)" [$OSXALL] + $CommandLine "mkdir $GENERATED_PROTO_DIR 2> /dev/null;" \ + "$SRCDIR/gcsdk/bin/linux/protoc --proto_path=$SRCDIR\thirdparty\protobuf-2.3.0\src --proto_path=$(InputDir) --proto_path=$SRCDIR\gcsdk --cpp_out=$GENERATED_PROTO_DIR $(InputPath)" [$LINUX] + $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.3.0\src" + } +} + + -- cgit v1.2.3