From d67ebf4005d7285f5170cf3c8f617b5f9723a747 Mon Sep 17 00:00:00 2001 From: hinus_fan Date: Sat, 17 Aug 2019 21:22:36 +0800 Subject: [PATCH] Summary: add build script Issue: https://gitee.com/hinus/pythonvm/issues/I10T55 Desciption: add build script LLT: NA --- build.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 build.sh diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..0d8e56f --- /dev/null +++ b/build.sh @@ -0,0 +1,22 @@ +#!/bin/bash +# build railgun + +ROOT_PATH=$(readlink -f $(dirname ${0})) +SRC_PATH=${ROOT_PATH}/src +BUILD_PATH=${SRC_PATH}/build +LIB_PATH=${SRC_PATH}/lib +function _build +{ + if [ ! -d ${BUILD_PATH} ]; then + mkdir ${BUILD_PATH} + fi + cd ${BUILD_PATH} + cmake ${SRC_PATH} + cp -r ${SRC_PATH}/lib ${BUILD_PATH} + cd ${BUILD_PATH}/lib + python -m compileall builtin.py + cd ${BUILD_PATH} + make all +} + +_build \ No newline at end of file -- Gitee