• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2022 VYAGOO TECHNOLOGY Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6# http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13import("//build/ohos.gni")
14import("//build/ohos/kernel/kernel.gni")
15
16CODEC_ETC_DIR = "//device/soc/allwinner/t507/hardware/codec/media/etc"
17CODEC_LIB_DIR = "//device/soc/allwinner/t507/hardware/codec/media/lib"
18
19if (linux_kernel_version == "linux-5.10") {
20  ohos_prebuilt_etc("OmxCore") {
21    source = "$CODEC_LIB_DIR/libOmxCore.z.so"
22    module_install_dir = "lib"
23    install_images = [ chipset_base_dir ]
24    part_name = "allwinner_products"
25  }
26
27  ohos_prebuilt_etc("OMX_Pluginhw") {
28    source = "$CODEC_LIB_DIR/libOMX_Pluginhw.z.so"
29    module_install_dir = "lib"
30    install_images = [ chipset_base_dir ]
31    part_name = "allwinner_products"
32  }
33
34  ohos_prebuilt_etc("OmxVdec") {
35    source = "$CODEC_LIB_DIR/libOmxVdec.z.so"
36    module_install_dir = "lib"
37    install_images = [ chipset_base_dir ]
38    part_name = "allwinner_products"
39  }
40
41  ohos_prebuilt_etc("OmxVenc") {
42    source = "$CODEC_LIB_DIR/libOmxVenc.z.so"
43    module_install_dir = "lib"
44    install_images = [ chipset_base_dir ]
45    part_name = "allwinner_products"
46  }
47}
48
49ohos_prebuilt_etc("cedarc.conf") {
50  source = "$CODEC_ETC_DIR/cedarc.conf"
51  install_images = [ chipset_base_dir ]
52  module_install_dir = "etc"
53  part_name = "allwinner_products"
54}
55
56group("codec") {
57  deps = [
58    ":OMX_Pluginhw",
59    ":OmxCore",
60    ":OmxVdec",
61    ":OmxVenc",
62    ":cedarc.conf",
63  ]
64}
65