# Copyright (c) 2022 HiSilicon (Shanghai) Technologies CO., LIMITED. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # #     http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//build/lite/config/component/lite_component.gni") lite_component("higv_sample") { features = [ ":ohos_higv_demo" ] } need_link_mpp_lib = true if (need_link_mpp_lib) { mpp_lib_path = "//device/soc/hisilicon/hi3516dv300/sdk_linux/out" } executable("ohos_higv_demo") { output_name = "ohos_higv_demo" sources = [ "app.c", "button.c", "higv_cextfile.c", "higv_mw_media.c", "image.c", "label.c", "listbox.c", "scrollview.c", ] include_dirs = [ "//device/soc/hisilicon/hi3516dv300/sdk_linux/include", "//device/soc/hisilicon/hi3516dv300/sdk_linux/drv/mpp/cbb/include", "//device/soc/hisilicon/hi3516dv300/sdk_linux/drv/mpp/cbb/init", "//device/soc/hisilicon/hi3516dv300/sdk_linux/mpp/include", "//third_party/bounds_checking_function/include", "//device/soc/hisilicon/hi3516dv300/sdk_linux/sample/platform/higv/include", "//device/soc/hisilicon/hi3516dv300/sdk_linux/sample/platform/higv/", ] defines = [ "SENSOR0_TYPE=SONY_IMX335_MIPI_4M_30FPS_12BIT", "SENSOR1_TYPE=SONY_IMX335_MIPI_4M_30FPS_12BIT", ] if (need_link_mpp_lib) { outdir = rebase_path("$mpp_lib_path/lib") ldflags = [ "-L$outdir" ] ldflags += [ "-laaccomm" ] ldflags += [ "-laacdec" ] ldflags += [ "-laacenc" ] ldflags += [ "-laacsbrdec" ] ldflags += [ "-laacsbrenc" ] ldflags += [ "-ldnvqe" ] ldflags += [ "-lhdmi" ] ldflags += [ "-lhi3516cv500_acodec" ] ldflags += [ "-lhi3516cv500_adec" ] ldflags += [ "-lhi3516cv500_aenc" ] ldflags += [ "-lhi3516cv500_aio" ] ldflags += [ "-lhi3516cv500_ai" ] ldflags += [ "-lhi3516cv500_ao" ] ldflags += [ "-lhi3516cv500_base" ] ldflags += [ "-lhi3516cv500_chnl" ] ldflags += [ "-lhi3516cv500_dis" ] ldflags += [ "-lhi3516cv500_gdc" ] ldflags += [ "-lhi3516cv500_h264e" ] ldflags += [ "-lhi3516cv500_h265e" ] ldflags += [ "-lhi3516cv500_isp" ] ldflags += [ "-lhi3516cv500_ive" ] ldflags += [ "-lhi3516cv500_jpegd" ] ldflags += [ "-lhi3516cv500_jpege" ] ldflags += [ "-lhi3516cv500_nnie" ] ldflags += [ "-lhi3516cv500_rc" ] ldflags += [ "-lhi3516cv500_rgn" ] ldflags += [ "-lhi3516cv500_sys" ] ldflags += [ "-lhi3516cv500_vdec" ] ldflags += [ "-lhi3516cv500_vedu" ] ldflags += [ "-lhi3516cv500_venc" ] ldflags += [ "-lhi3516cv500_vfmw" ] ldflags += [ "-lhi3516cv500_vgs" ] ldflags += [ "-lhi3516cv500_vi" ] ldflags += [ "-lhi3516cv500_vo" ] ldflags += [ "-lhi3516cv500_vpss" ] ldflags += [ "-l_hiacs" ] ldflags += [ "-l_hiae" ] ldflags += [ "-l_hiawb_natura" ] ldflags += [ "-l_hiawb" ] ldflags += [ "-l_hicalcflicker" ] ldflags += [ "-l_hidehaze" ] ldflags += [ "-l_hidrc" ] ldflags += [ "-lhifisheyecalibrate" ] ldflags += [ "-l_hiir_auto" ] ldflags += [ "-lhi_irq" ] ldflags += [ "-l_hildci" ] ldflags += [ "-lhi_osal" ] ldflags += [ "-lhi_sensor_i2c" ] ldflags += [ "-lhive_AEC" ] ldflags += [ "-lhive_AGC" ] ldflags += [ "-lhive_ANR" ] ldflags += [ "-lhive_common" ] ldflags += [ "-lhive_EQ" ] ldflags += [ "-lhive_HPF" ] ldflags += [ "-lhive_record" ] ldflags += [ "-lhive_RES_ext" ] ldflags += [ "-lhive_RES" ] ldflags += [ "-lhive_talkv2" ] ldflags += [ "-lhive_wnr" ] ldflags += [ "-lisp" ] ldflags += [ "-live" ] ldflags += [ "-lmd" ] ldflags += [ "-lmpi" ] ldflags += [ "-lmpp_vbs" ] ldflags += [ "-lnnie" ] ldflags += [ "-lsdk" ] ldflags += [ "-lsecurec" ] ldflags += [ "-lsns_imx335" ] ldflags += [ "-ltde" ] ldflags += [ "-lupvqe" ] ldflags += [ "-lvb_server" ] ldflags += [ "-lVoiceEngine" ] higv_lib_dir = rebase_path( "//device/soc/hisilicon/hi3516dv300/sdk_linux/sample/platform/higv/lib") ldflags += [ "-L$higv_lib_dir" ] ldflags += [ "-lhigvsample" ] deps = [] } }