1 Star 0 Fork 18

liff/powerapi

forked from openEuler/powerapi 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.sh 1.10 KB
一键复制 编辑 原始数据 按行查看 历史
heppen 提交于 2024-04-29 15:57 . ✨ feat(hbm): 新增HBM接口
#!/bin/bash
PWRAPIC="client"
PWRAPIS="server"
mkdir build
cd build
if [[ "$1" == "release" ]];then
cmake -DRELEASE_MODE="true" ..
else
cmake ..
fi
if [ $? -ne 0 ]; then
exit 1
fi
if [[ "$1" == "$PWRAPIC" ]]
then
make pwrapi
make pwrapic_demo
elif [[ "$1" == "$PWRAPIS" ]]
then
make pwrapis
else
make all
fi
if [ $? -ne 0 ]; then
exit 1
fi
cd ..
rm -rf release
mkdir release
mkdir ./release/pwrapic
mkdir ./release/pwrapic/lib
mkdir ./release/pwrapic/inc
cp ./build/pwrapic/src/libpwrapi.so ./release/pwrapic/lib/
cp ./pwrapic/inc/powerapi.h ./release/pwrapic/inc/
cp ./common/inc/pwrdata.h ./release/pwrapic/inc/
cp ./common/inc/pwrerr.h ./release/pwrapic/inc/
if [[ "$1" != "release" ]];then
mkdir ./release/pwrapi_demo
cp ./build/pwrapic/test/pwrapic_demo ./release/pwrapi_demo/
cp -r ./release/pwrapic ./release/pwrapi_demo/
mkdir ./release/gtest
cp ./build/pwrapic/gtest/gtest_test ./release/gtest/
fi
mkdir ./release/pwrapis
cp ./build/pwrapis/src/pwrapis ./release/pwrapis/
cp -r ./pwrapis/conf ./release/pwrapis/
#make clean
#cd ..
#rm -rf build
exit 0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lff11111/powerapi.git
git@gitee.com:lff11111/powerapi.git
lff11111
powerapi
powerapi
master

搜索帮助