Skip to content

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

License

Notifications You must be signed in to change notification settings

jhuix-ohos/ohos-native-build

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published