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