1 Star 0 Fork 204

raphael/tpc_c_cplusplus

forked from OpenHarmony-SIG/tpc_c_cplusplus
关闭
 
加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
HPKBUILD 1.22 KB
一键复制 编辑 原始数据 按行查看 历史
zhongluping 提交于 2023-06-06 09:16 +08:00 . 修改minizip hap集成编译方式
# Contributor: lpzhong <278527840@qq.com>
# Maintainer: lpzhong <278527840@qq.com>
pkgname=minizip-ng
pkgver=4.0.0
pkgrel=0
pkgdesc="minizip-ng is a zip manipulation library written in C that is supported on Windows, macOS, and Linux."
url="https://github.com/zlib-ng/minizip-ng"
archs=("armeabi-v7a" "arm64-v8a")
license=("zlib")
depends=("openssl" "xz" "bzip2" "zstd" "googletest")
makedepends=()
source="https://github.com/zlib-ng/${pkgname}/archive/refs/tags/${pkgver}.tar.gz"
autounpack=true
downloadpackage=true
buildtools="cmake"
builddir=$pkgname-$pkgver
packagename=$builddir.tar.gz
prepare() {
mkdir -p $builddir/$ARCH-build
}
build() {
cd $builddir
PKG_CONFIG_PATH="${pkgconfigpath}" cmake "$@" -DMZ_BUILD_TESTS=ON -DMZ_BUILD_UNIT_TESTS=ON -DOHOS_ARCH=$ARCH -B$ARCH-build -S./ -L > `pwd`/$ARCH-build/build.log 2>&1
make -j4 -C $ARCH-build >> `pwd`/$ARCH-build/build.log 2>&1
ret=$?
cd $OLDPWD
return $ret
}
package() {
cd "$builddir"
make -C $ARCH-build install >> `pwd`/$ARCH-build/build.log 2>&1
cd $OLDPWD
}
check() {
echo "The test must be on an OpenHarmony device!"
# real test cmd
# ctest
}
# 清理环境
cleanbuild(){
rm -rf ${PWD}/$builddir #${PWD}/$packagename
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/raphael_zh/tpc_c_cplusplus.git
git@gitee.com:raphael_zh/tpc_c_cplusplus.git
raphael_zh
tpc_c_cplusplus
tpc_c_cplusplus
master

搜索帮助