1# Copyright (c) 2022 HiSilicon (Shanghai) Technologies CO., LIMITED. 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. 13 14import("//build/lite/config/component/lite_component.gni") 15lite_component("hi3516dv300_ive_sample") { 16 features = [ ":ohos_ive_demo" ] 17} 18 19need_link_mpp_lib = true 20if (need_link_mpp_lib) { 21 mpp_lib_path = "//device/soc/hisilicon/hi3516dv300/sdk_linux/out" 22} 23 24executable("ohos_ive_demo") { 25 output_name = "ohos_ive_demo" 26 sources = [ 27 "//device/soc/hisilicon/hi3516dv300/sdk_linux/sample/platform/common/loadbmp.c", 28 "//device/soc/hisilicon/hi3516dv300/sdk_linux/sample/platform/common/sample_comm_audio.c", 29 "//device/soc/hisilicon/hi3516dv300/sdk_linux/sample/platform/common/sample_comm_isp.c", 30 "//device/soc/hisilicon/hi3516dv300/sdk_linux/sample/platform/common/sample_comm_region.c", 31 "//device/soc/hisilicon/hi3516dv300/sdk_linux/sample/platform/common/sample_comm_sys.c", 32 "//device/soc/hisilicon/hi3516dv300/sdk_linux/sample/platform/common/sample_comm_venc.c", 33 "//device/soc/hisilicon/hi3516dv300/sdk_linux/sample/platform/common/sample_comm_vi.c", 34 "//device/soc/hisilicon/hi3516dv300/sdk_linux/sample/platform/common/sample_comm_vo.c", 35 "//device/soc/hisilicon/hi3516dv300/sdk_linux/sample/platform/common/sample_comm_vpss.c", 36 "//device/soc/hisilicon/hi3516dv300/sdk_linux/sample/platform/svp/common/sample_comm_ive.c", 37 "//device/soc/hisilicon/hi3516dv300/sdk_linux/sample/platform/svp/common/sample_comm_nnie.c", 38 "//device/soc/hisilicon/hi3516dv300/sdk_linux/sample/platform/svp/common/sample_comm_svp.c", 39 "sample/sample_ive_canny.c", 40 "sample/sample_ive_gmm2.c", 41 "sample/sample_ive_kcf.c", 42 "sample/sample_ive_md.c", 43 "sample/sample_ive_od.c", 44 "sample/sample_ive_persptrans.c", 45 "sample/sample_ive_queue.c", 46 "sample/sample_ive_sobel_with_cached_mem.c", 47 "sample/sample_ive_st_and_lk.c", 48 "sample/sample_ive_test_memory.c", 49 "sample_ive_main.c", 50 ] 51 52 include_dirs = [ 53 "//device/soc/hisilicon/hi3516dv300/sdk_linux/include", 54 "//device/soc/hisilicon/hi3516dv300/sdk_linux/drv/mpp/cbb/include", 55 "//device/soc/hisilicon/hi3516dv300/sdk_linux/drv/mpp/cbb/init", 56 "//device/soc/hisilicon/hi3516dv300/sdk_linux/mpp/include", 57 "//device/soc/hisilicon/hi3516dv300/sdk_linux/sample/platform/common", 58 "//device/soc/hisilicon/hi3516dv300/sdk_linux/sample/platform/svp/common", 59 "//device/soc/hisilicon/hi3516dv300/sdk_linux/sample/platform/svp/ive/sample", 60 "//device/soc/hisilicon/hi3516dv300/sdk_linux/sample/platform/vio/", 61 "//device/soc/hisilicon/hi3516dv300/sdk_linux/sample/platform/audio/adp", 62 "//third_party/bounds_checking_function/include", 63 ] 64 65 defines = [ 66 "SENSOR0_TYPE=SONY_IMX335_MIPI_4M_30FPS_12BIT", 67 "SENSOR1_TYPE=SONY_IMX335_MIPI_4M_30FPS_12BIT", 68 ] 69 70 if (need_link_mpp_lib) { 71 outdir = rebase_path("$mpp_lib_path/lib") 72 ldflags = [ "-L$outdir" ] 73 ldflags += [ "-laaccomm" ] 74 ldflags += [ "-laacdec" ] 75 ldflags += [ "-laacenc" ] 76 ldflags += [ "-laacsbrdec" ] 77 ldflags += [ "-laacsbrenc" ] 78 ldflags += [ "-ldnvqe" ] 79 ldflags += [ "-lhdmi" ] 80 ldflags += [ "-lhi3516cv500_acodec" ] 81 ldflags += [ "-lhi3516cv500_adec" ] 82 ldflags += [ "-lhi3516cv500_aenc" ] 83 ldflags += [ "-lhi3516cv500_aio" ] 84 ldflags += [ "-lhi3516cv500_ai" ] 85 ldflags += [ "-lhi3516cv500_ao" ] 86 ldflags += [ "-lhi3516cv500_base" ] 87 ldflags += [ "-lhi3516cv500_chnl" ] 88 ldflags += [ "-lhi3516cv500_dis" ] 89 ldflags += [ "-lhi3516cv500_gdc" ] 90 ldflags += [ "-lhi3516cv500_h264e" ] 91 ldflags += [ "-lhi3516cv500_h265e" ] 92 ldflags += [ "-lhi3516cv500_isp" ] 93 ldflags += [ "-lhi3516cv500_ive" ] 94 ldflags += [ "-lhi3516cv500_jpegd" ] 95 ldflags += [ "-lhi3516cv500_jpege" ] 96 ldflags += [ "-lhi3516cv500_nnie" ] 97 ldflags += [ "-lhi3516cv500_rc" ] 98 ldflags += [ "-lhi3516cv500_rgn" ] 99 ldflags += [ "-lhi3516cv500_sys" ] 100 ldflags += [ "-lhi3516cv500_vdec" ] 101 ldflags += [ "-lhi3516cv500_vedu" ] 102 ldflags += [ "-lhi3516cv500_venc" ] 103 ldflags += [ "-lhi3516cv500_vfmw" ] 104 ldflags += [ "-lhi3516cv500_vgs" ] 105 ldflags += [ "-lhi3516cv500_vi" ] 106 ldflags += [ "-lhi3516cv500_vo" ] 107 ldflags += [ "-lhi3516cv500_vpss" ] 108 ldflags += [ "-l_hiacs" ] 109 ldflags += [ "-l_hiae" ] 110 ldflags += [ "-l_hiawb_natura" ] 111 ldflags += [ "-l_hiawb" ] 112 ldflags += [ "-l_hicalcflicker" ] 113 ldflags += [ "-l_hidehaze" ] 114 ldflags += [ "-l_hidrc" ] 115 ldflags += [ "-lhifisheyecalibrate" ] 116 ldflags += [ "-l_hiir_auto" ] 117 ldflags += [ "-lhi_irq" ] 118 ldflags += [ "-l_hildci" ] 119 ldflags += [ "-lhi_osal" ] 120 ldflags += [ "-lhi_sensor_i2c" ] 121 ldflags += [ "-lhive_AEC" ] 122 ldflags += [ "-lhive_AGC" ] 123 ldflags += [ "-lhive_ANR" ] 124 ldflags += [ "-lhive_common" ] 125 ldflags += [ "-lhive_EQ" ] 126 ldflags += [ "-lhive_HPF" ] 127 ldflags += [ "-lhive_record" ] 128 ldflags += [ "-lhive_RES_ext" ] 129 ldflags += [ "-lhive_RES" ] 130 ldflags += [ "-lhive_talkv2" ] 131 ldflags += [ "-lhive_wnr" ] 132 ldflags += [ "-lisp" ] 133 ldflags += [ "-live" ] 134 ldflags += [ "-lmd" ] 135 ldflags += [ "-lmpi" ] 136 ldflags += [ "-lmpp_vbs" ] 137 ldflags += [ "-lnnie" ] 138 ldflags += [ "-lsdk" ] 139 ldflags += [ "-lsecurec" ] 140 ldflags += [ "-lsns_imx335" ] 141 ldflags += [ "-ltde" ] 142 ldflags += [ "-lupvqe" ] 143 ldflags += [ "-lvb_server" ] 144 ldflags += [ "-lVoiceEngine" ] 145 146 deps = [] 147 } 148} 149