Skip to content

Latest commit

 

History

History
69 lines (50 loc) · 2.68 KB

README.md

File metadata and controls

69 lines (50 loc) · 2.68 KB

OHOS-Native-Build

A build set of native C/C++ third-party libraries for HarmonyOS on the Windows|MacOS|Linux platform.

Build

  • Download Python >=3.7 installer from https://www.python.org/downloads/ and install it with adding to PATH.

  • Install meson build on Mac or Linux platform:

     python3 -m pip install meson
    
  • Install nasm on Mac or Linux platform.

  • Params
name desc.
ohos_sdk HarmonyOS's sdk path. For expamle on windows platform:
I:\DevTools\Huawei\OpenHarmony\Sdk\12
proxy Proxy address for download or git.
archs CPU architecture identifier for compiling libraries, separated by commas for multiple CPU architecture. For examples:
arm64-v8a,x86_64,armeabi-v7a
libs Library names that need to be compiled, separated by commas for multiple libraries.
  • Windows example

      mkdir ohos
      cd ohos
      git clone https://github.com/jhuix-ohos/ohos-native-build.git
      cd ohos-native-build\build
      build.bat --ohos_sdk=%YOUR_OHOS_SDK%  --archs=arm64-v8a,x86_64 --libs=zlib,tdnapi --proxy=http://127.0.0.1:10808
    
  • Mac or Linux example

      mkdir ohos
      cd ohos
      git clone https://github.com/jhuix-ohos/ohos-native-build.git
      cd ohos-native-build\build
      ./build.sh --ohos_sdk=$YOUR_OHOS_SDK  --archs=arm64-v8a,x86_64 --libs=zlib,tdnapi
    

The supported libraries

Name Version
zlib main
mozjpeg main
opus main
openssl 3.3.2
openssl_1_1_1 OpenSSL_1_1_1-stable
openssl_1_0_2 OpenSSL_1_0_2-stable
libyuv main
libwebp main
openh264 main
dav1d main
libde265 main
libvpx main
libjxl main
libavif main
libheif main
ffmepg main
ffmepg for telegram main
tdnapi tdlib main

License

MIT

Copyright © 2023-present, Jhuix (Hui Jin) All Rights Reserved.