aboutsummaryrefslogtreecommitdiff
path: root/mp/src/vpc_scripts/protobuf_builder.vpc
diff options
context:
space:
mode:
authorJoe Ludwig <[email protected]>2013-07-04 11:20:31 -0700
committerJoe Ludwig <[email protected]>2013-07-04 11:20:31 -0700
commit77b376f8a0d8d172c51729762f80bb394534aa41 (patch)
tree79897a015745704f7202eaa6648c18f2e5312df4 /mp/src/vpc_scripts/protobuf_builder.vpc
parentAdding a CONTRIBUTING file so the rights that GitHub users grant to Valve wit... (diff)
downloadsource-sdk-2013-77b376f8a0d8d172c51729762f80bb394534aa41.tar.xz
source-sdk-2013-77b376f8a0d8d172c51729762f80bb394534aa41.zip
* 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.
Diffstat (limited to 'mp/src/vpc_scripts/protobuf_builder.vpc')
-rw-r--r--mp/src/vpc_scripts/protobuf_builder.vpc26
1 files changed, 26 insertions, 0 deletions
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"
+ }
+}
+
+