Преглед изворни кода

Simple script to build the tests.

Bart Hertog пре 6 година
родитељ
комит
687f28234d
2 измењених фајлова са 17 додато и 1 уклоњено
  1. 2 1
      .gitignore
  2. 15 0
      build_test.sh

+ 2 - 1
.gitignore

@@ -27,4 +27,5 @@ cmake_install.cmake
 CMakeFiles/**
 
 # Ignore build results
-**/*.a
+**/*.a
+build/*

+ 15 - 0
build_test.sh

@@ -0,0 +1,15 @@
+#! /bin/sh
+
+# Generate sources using the EAMS plugin.
+mkdir -p ./build/EAMS
+protoc --plugin=protoc-gen-eams=protoc-gen-eams -I./test/proto --eams_out=./build/EAMS ./test/proto/simple_types.proto
+
+# For validation generate the same message using google code.
+mkdir -p ./build/google
+protoc -I./test/proto --cpp_out=./build/google ./test/proto/simple_types.proto
+
+# Build the tests
+mkdir -p build/test
+cd build/test/
+cmake -DCMAKE_BUILD_TYPE=Debug ../../
+make