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" 16 17ohos_prebuilt_shared_library("librkaiq") { 18 if (target_cpu == "arm") { 19 source = "$ISP_DIR/lib/librkaiq.z.so" 20 } else { 21 source = "$ISP_DIR/lib64/librkaiq.z.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 44ohos_prebuilt_executable("ispserver") { 45 if (target_cpu == "arm") { 46 source = "$ISP_DIR/bin/ispserver" 47 } else { 48 source = "$ISP_DIR/bin64/ispserver" 49 } 50 install_images = [ chipset_base_dir ] 51 part_name = "rockchip_products" 52 install_enable = true 53} 54 55group("isp") { 56 deps = [ 57 ":gc8034_RK-CMK-8M-2-v1_CK8401", 58 ":iqfil", 59 ":ispserver", 60 ":librkaiq", 61 ] 62} 63