• 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_uart_sample") {
16  features = [ ":ohos_camera_uart_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_camera_uart_demo") {
25  output_name = "ohos_camera_uart_demo"
26  sources = [ "uart.c" ]
27
28  include_dirs = [ "./" ]
29
30  if (need_link_mpp_lib) {
31    outdir = rebase_path("$mpp_lib_path/lib")
32    ldflags = [ "-L$outdir" ]
33    ldflags += [ "-lsecurec" ]
34  }
35}
36