13d0407baSopenharmony_ci# Copyright (C) 2021 HiHope Open Source Organization .
23d0407baSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
33d0407baSopenharmony_ci# you may not use this file except in compliance with the License.
43d0407baSopenharmony_ci# You may obtain a copy of the License at
53d0407baSopenharmony_ci#
63d0407baSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
73d0407baSopenharmony_ci#
83d0407baSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
93d0407baSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
103d0407baSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
113d0407baSopenharmony_ci# See the License for the specific language governing permissions and
123d0407baSopenharmony_ci# limitations under the License.
133d0407baSopenharmony_ci
143d0407baSopenharmony_ciimport("//build/ohos.gni")
153d0407baSopenharmony_ciimport("//build/ohos/ndk/ndk.gni")
163d0407baSopenharmony_ci
173d0407baSopenharmony_ciohos_prebuilt_shared_library("libmpp") {
183d0407baSopenharmony_ci  if (target_cpu == "arm") {
193d0407baSopenharmony_ci    source = "lib/librockchip_mpp.z.so"
203d0407baSopenharmony_ci  } else {
213d0407baSopenharmony_ci    source = "lib64/librockchip_mpp.z.so"
223d0407baSopenharmony_ci  }
233d0407baSopenharmony_ci  innerapi_tags = [ "passthrough_indirect" ]
243d0407baSopenharmony_ci  install_images = [ chipset_base_dir ]
253d0407baSopenharmony_ci  part_name = "rockchip_products"
263d0407baSopenharmony_ci  install_enable = true
273d0407baSopenharmony_ci}
283d0407baSopenharmony_ci
293d0407baSopenharmony_cigroup("mpp") {
303d0407baSopenharmony_ci  deps = [ ":libmpp" ]
313d0407baSopenharmony_ci}
32