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("higv_sample") { 16 features = [ ":ohos_higv_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_higv_demo") { 25 output_name = "ohos_higv_demo" 26 sources = [ 27 "app.c", 28 "button.c", 29 "higv_cextfile.c", 30 "higv_mw_media.c", 31 "image.c", 32 "label.c", 33 "listbox.c", 34 "scrollview.c", 35 ] 36 37 include_dirs = [ 38 "//device/soc/hisilicon/hi3516dv300/sdk_linux/include", 39 "//device/soc/hisilicon/hi3516dv300/sdk_linux/drv/mpp/cbb/include", 40 "//device/soc/hisilicon/hi3516dv300/sdk_linux/drv/mpp/cbb/init", 41 "//device/soc/hisilicon/hi3516dv300/sdk_linux/mpp/include", 42 "//third_party/bounds_checking_function/include", 43 "//device/soc/hisilicon/hi3516dv300/sdk_linux/sample/platform/higv/include", 44 "//device/soc/hisilicon/hi3516dv300/sdk_linux/sample/platform/higv/", 45 ] 46 47 defines = [ 48 "SENSOR0_TYPE=SONY_IMX335_MIPI_4M_30FPS_12BIT", 49 "SENSOR1_TYPE=SONY_IMX335_MIPI_4M_30FPS_12BIT", 50 ] 51 52 if (need_link_mpp_lib) { 53 outdir = rebase_path("$mpp_lib_path/lib") 54 ldflags = [ "-L$outdir" ] 55 ldflags += [ "-laaccomm" ] 56 ldflags += [ "-laacdec" ] 57 ldflags += [ "-laacenc" ] 58 ldflags += [ "-laacsbrdec" ] 59 ldflags += [ "-laacsbrenc" ] 60 ldflags += [ "-ldnvqe" ] 61 ldflags += [ "-lhdmi" ] 62 ldflags += [ "-lhi3516cv500_acodec" ] 63 ldflags += [ "-lhi3516cv500_adec" ] 64 ldflags += [ "-lhi3516cv500_aenc" ] 65 ldflags += [ "-lhi3516cv500_aio" ] 66 ldflags += [ "-lhi3516cv500_ai" ] 67 ldflags += [ "-lhi3516cv500_ao" ] 68 ldflags += [ "-lhi3516cv500_base" ] 69 ldflags += [ "-lhi3516cv500_chnl" ] 70 ldflags += [ "-lhi3516cv500_dis" ] 71 ldflags += [ "-lhi3516cv500_gdc" ] 72 ldflags += [ "-lhi3516cv500_h264e" ] 73 ldflags += [ "-lhi3516cv500_h265e" ] 74 ldflags += [ "-lhi3516cv500_isp" ] 75 ldflags += [ "-lhi3516cv500_ive" ] 76 ldflags += [ "-lhi3516cv500_jpegd" ] 77 ldflags += [ "-lhi3516cv500_jpege" ] 78 ldflags += [ "-lhi3516cv500_nnie" ] 79 ldflags += [ "-lhi3516cv500_rc" ] 80 ldflags += [ "-lhi3516cv500_rgn" ] 81 ldflags += [ "-lhi3516cv500_sys" ] 82 ldflags += [ "-lhi3516cv500_vdec" ] 83 ldflags += [ "-lhi3516cv500_vedu" ] 84 ldflags += [ "-lhi3516cv500_venc" ] 85 ldflags += [ "-lhi3516cv500_vfmw" ] 86 ldflags += [ "-lhi3516cv500_vgs" ] 87 ldflags += [ "-lhi3516cv500_vi" ] 88 ldflags += [ "-lhi3516cv500_vo" ] 89 ldflags += [ "-lhi3516cv500_vpss" ] 90 ldflags += [ "-l_hiacs" ] 91 ldflags += [ "-l_hiae" ] 92 ldflags += [ "-l_hiawb_natura" ] 93 ldflags += [ "-l_hiawb" ] 94 ldflags += [ "-l_hicalcflicker" ] 95 ldflags += [ "-l_hidehaze" ] 96 ldflags += [ "-l_hidrc" ] 97 ldflags += [ "-lhifisheyecalibrate" ] 98 ldflags += [ "-l_hiir_auto" ] 99 ldflags += [ "-lhi_irq" ] 100 ldflags += [ "-l_hildci" ] 101 ldflags += [ "-lhi_osal" ] 102 ldflags += [ "-lhi_sensor_i2c" ] 103 ldflags += [ "-lhive_AEC" ] 104 ldflags += [ "-lhive_AGC" ] 105 ldflags += [ "-lhive_ANR" ] 106 ldflags += [ "-lhive_common" ] 107 ldflags += [ "-lhive_EQ" ] 108 ldflags += [ "-lhive_HPF" ] 109 ldflags += [ "-lhive_record" ] 110 ldflags += [ "-lhive_RES_ext" ] 111 ldflags += [ "-lhive_RES" ] 112 ldflags += [ "-lhive_talkv2" ] 113 ldflags += [ "-lhive_wnr" ] 114 ldflags += [ "-lisp" ] 115 ldflags += [ "-live" ] 116 ldflags += [ "-lmd" ] 117 ldflags += [ "-lmpi" ] 118 ldflags += [ "-lmpp_vbs" ] 119 ldflags += [ "-lnnie" ] 120 ldflags += [ "-lsdk" ] 121 ldflags += [ "-lsecurec" ] 122 ldflags += [ "-lsns_imx335" ] 123 ldflags += [ "-ltde" ] 124 ldflags += [ "-lupvqe" ] 125 ldflags += [ "-lvb_server" ] 126 ldflags += [ "-lVoiceEngine" ] 127 128 higv_lib_dir = rebase_path( 129 "//device/soc/hisilicon/hi3516dv300/sdk_linux/sample/platform/higv/lib") 130 ldflags += [ "-L$higv_lib_dir" ] 131 ldflags += [ "-lhigvsample" ] 132 133 deps = [] 134 } 135} 136