From 801237f82097163bf8e7a201d2e8aa4b32ec553f Mon Sep 17 00:00:00 2001 From: DINILRAJ T R Date: Thu, 10 Jun 2021 14:17:05 +0800 Subject: [PATCH] update README.md. --- README.md | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index b5d9d71..8669d47 100644 --- a/README.md +++ b/README.md @@ -15,15 +15,21 @@ Libyuv.ARGBToRGBA(byteArray, w*4, rgbbuffer, w*4, w, h); ## Installation tutorial -local .so file generation to be included with sample. -a) Add all the Libyuv related native source files (.cpp & .h) to src/main/cpp directory of the entry. -b) Create CMakeLists.txt including all the source files to be built to finally create liblibyuv.so shared library. -c) Add the following native build configuration to Gradle, for the gradle to identify CMakeLists.txt and build the native sources for specific instruction set, ``` -externalNativeBuild { - path "src/main/cpp/CMakeLists.txt" - arguments "-v" - abiFilters "arm64-v8a" +method 1: Generate har package from library add it to the libs folder + add the following code to gradle of entry + + implementation fileTree(dir: 'libs', include: ['*.har']) + +method 2: +allprojects { + repositories { + mavenCentral() } +} + +dependencies { + implementation 'io.openharmony.tpc.thirdlib:libyuv:1.0.2' +} ``` -- Gitee