Add a .sh file for build on X86 host
Change-Id: I8cb7e6cc57ed32dad24fc00b94e2e76fef923f36
Signed-off-by: Yong Li <yong.b.li@intel.com>
diff --git a/build_x86.sh b/build_x86.sh
new file mode 100755
index 0000000..461b18c
--- /dev/null
+++ b/build_x86.sh
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+#Currently there are some build errors with the pre-instaleld libgtest-dev, as a workaround, we can build it with these steps(first time only):
+#cd googletest/googletest/
+#cmake ./
+#make
+#sudo make install
+
+cd `dirname $0`
+#update source code
+#git pull
+git submodule init
+git submodule sync
+git submodule update
+
+mkdir -p build
+cd build
+cmake .. -DHUNTER_ENABLED=ON
+make -j$(nproc)