diff --git a/thirdparty/boost/HPKBUILD b/thirdparty/boost/HPKBUILD new file mode 100644 index 0000000000000000000000000000000000000000..e7e93753b444237baac97ba4e2878c14913bc0b9 --- /dev/null +++ b/thirdparty/boost/HPKBUILD @@ -0,0 +1,70 @@ +# Contributor: Jeff Han +# Maintainer: Jeff Han +pkgname=boost +pkgver=1.81.0 +pkgrel=0 +pkgdesc="Boost provides free peer-reviewed portable C++ source libraries." +url="https://www.boost.org/" +archs=("armeabi-v7a" "arm64-v8a") +license=("Boost Software License") +depends=() +makedepends=() + +source="https://boostorg.jfrog.io/artifactory/main/release/$pkgver/source/$pkgname'_1_81_0.tar.gz'" + +autounpack=true +downloadpackage=true +buildtools=jamfile + +builddir=$pkgname'_1_81_0' +packagename=$builddir.tar.gz + +compileflags= +prepare() { + cp -rf $builddir $builddir-$ARCH-build + if [ $ARCH == "armeabi-v7a" ] + then + cd $builddir-$ARCH-build + compileflags="\"-march=armv7a\"" + # without boost_log boost_python boost_locale.这三个库无法用 ohos sdk 编译 + ./bootstrap.sh --prefix=$LYCIUM_ROOT/usr/$pkgname/$ARCH --without-libraries=log,python,locale > `pwd`/build.log 2>&1 + sed -i '/.*using gcc ;/c\ using gcc : arm : '"${OHOS_SDK}"'/native/llvm/bin/arm-linux-ohos-clang ; ' project-config.jam + ret=$? + cd $OLDPWD + fi + if [ $ARCH == "arm64-v8a" ] + then + cd $builddir-$ARCH-build + compileflags="\"\"" + # without boost_log boost_python boost_locale.这三个库无法用 ohos sdk 编译 + ./bootstrap.sh --prefix=$LYCIUM_ROOT/usr/$pkgname/$ARCH --without-libraries=log,python,locale > `pwd`/build.log 2>&1 + sed -i '/.*using gcc ;/c\ using gcc : arm : '"${OHOS_SDK}"'/native/llvm/bin/aarch64-linux-ohos-clang ; ' project-config.jam + ret=$? + cd $OLDPWD + fi + return $ret +} + +build() { + cd $builddir-$ARCH-build + ./b2 cxxflags=$compileflags cflags=$compileflags >> `pwd`/build.log 2>&1 + ret=$? + cd $OLDPWD + return $ret +} + +package() { + cd $builddir-$ARCH-build + ./b2 install >> `pwd`/build.log 2>&1 + cd $OLDPWD + unset compileflags +} + +check() { + echo "The test must be on an OpenHarmony device!" +} + +# 清理环境 +cleanbuild(){ + rm -rf ${PWD}/$builddir ${PWD}/$builddir"-arm64-v8a-build" ${PWD}/$builddir"-armeabi-v7a-build" #${PWD}/$packagename +} diff --git a/thirdparty/boost/README.OpenSource b/thirdparty/boost/README.OpenSource new file mode 100644 index 0000000000000000000000000000000000000000..073bffa7b6496679b9d46aa24334a5ad5f373838 --- /dev/null +++ b/thirdparty/boost/README.OpenSource @@ -0,0 +1,11 @@ +[ + { + "Name": "boost", + "License": "Boost Software License", + "License File": "COPYING", + "Version Number": "1.81.0", + "Owner": "hanjinfei@foxmail.com", + "Upstream URL": "https://boostorg.jfrog.io/artifactory/main/release/1.81.0/source/boost_1_81_0.tar.gz", + "Description": "Boost provides free peer-reviewed portable C++ source libraries." + } +] diff --git a/thirdparty/boost/README_zh.md b/thirdparty/boost/README_zh.md new file mode 100644 index 0000000000000000000000000000000000000000..9b649079b9e52c5318ebf206f075ad91986b8b9b --- /dev/null +++ b/thirdparty/boost/README_zh.md @@ -0,0 +1,12 @@ +# boost三方库说明 +## 功能简介 +Boost provides free peer-reviewed portable C++ source libraries.。 +## 使用约束 +- IDE版本:DevEco Studio 3.1 Beta2 +- SDK版本:ohos_sdk_public 3.2.11.9 (API Version 9 Release) +- 三方库版本:1.81.0 +- 当前适配的功能:除去log,python,locale的其他功能都适配 +- [ Boost Software License ](https://www.boost.org/ + +## 集成方式 ++ [应用hap包集成]() diff --git a/thirdparty/boost/SHA512SUM b/thirdparty/boost/SHA512SUM new file mode 100644 index 0000000000000000000000000000000000000000..4b466aaf42437f6f950adc80cbcff2b7f9b8b145 --- /dev/null +++ b/thirdparty/boost/SHA512SUM @@ -0,0 +1 @@ +8f18972314e8dd5c952825fc52ca49d17b0e0b31db12bcc1cd0ba42c2d71c4f6ce5f5062fdbb65db029ec2c58ca93a32c32d0cdce62329556200dc8650a03fbf boost_1_81_0.tar.gz