1# Copyright (C) 2021 HiHope Open Source Organization .
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")
14
15ISP_DIR = "//device/soc/rockchip/rk3568/hardware/isp-$linux_kernel_version"
16
17ohos_prebuilt_shared_library("librkaiq") {
18  if (target_cpu == "arm") {
19    source = "$ISP_DIR/lib/librkaiq.so"
20  } else {
21    source = "$ISP_DIR/lib64/librkaiq.so"
22  }
23  install_images = [ chipset_base_dir ]
24  subsystem_name = "rockchip_products"
25  install_enable = true
26}
27
28ohos_prebuilt_etc("gc8034_RK-CMK-8M-2-v1_CK8401") {
29  source = "$ISP_DIR/etc/iqfiles/gc8034_RK-CMK-8M-2-v1_CK8401.json"
30  relative_install_dir = "iqfiles"
31  install_images = [ chipset_base_dir ]
32  part_name = "rockchip_products"
33  install_enable = true
34}
35
36ohos_prebuilt_etc("iqfil") {
37  source = "$ISP_DIR/etc/iqfil.json"
38  relative_install_dir = ""
39  install_images = [ chipset_base_dir ]
40  part_name = "rockchip_products"
41  install_enable = true
42}
43
44#system_base_dir
45ohos_prebuilt_executable("ispserver") {
46  if (target_cpu == "arm") {
47    source = "$ISP_DIR/bin/ispserver"
48  } else {
49    source = "$ISP_DIR/bin64/ispserver"
50  }
51  install_images = [ chipset_base_dir ]
52  part_name = "rockchip_products"
53  install_enable = true
54}
55
56group("isp") {
57  deps = [
58    ":gc8034_RK-CMK-8M-2-v1_CK8401",
59    ":iqfil",
60    ":ispserver",
61    ":librkaiq",
62  ]
63}
64