• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 Huawei Device Co., Ltd.
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
14if (defined(ohos_lite)) {
15  import("//build/lite/config/component/lite_component.gni")
16  import(
17      "//device/soc/hisilicon/common/hal/media/camera/hi3516dv300/linux_standard/camera/product.gni")
18} else {
19  import("//build/ohos.gni")
20  if ("${product_name}" == "ohos-arm64") {
21    import(
22        "//drivers/peripheral/camera/hal/adapter/chipset/rpi/rpi3/device/camera/product.gni")
23  } else if ("${product_name}" == "Hi3751V350") {
24    import(
25        "//device/soc/hisilicon/common/hal/media/camera/hi3516dv300/linux_standard/camera/product.gni")
26  } else if ("${product_name}" == "Hi3516DV300") {
27    import(
28        "//device/soc/hisilicon/common/hal/media/camera/hi3516dv300/linux_standard/camera/product.gni")
29  } else if ("${product_name}" == "watchos") {
30    import(
31        "//device/soc/hisilicon/common/hal/media/camera/hi3516dv300/linux_standard/camera/product.gni")
32  } else {
33    import("//device/${product_company}/${device_name}/camera/product.gni")
34  }
35}
36
37camera_path = "//drivers/peripheral/camera/hal"
38current_path = "."
39enable_camera_device_utest = false
40
41use_hitrace = false
42if (use_hitrace) {
43  defines += [ "HITRACE_LOG_ENABLED" ]
44}
45
46if (defined(ohos_lite)) {
47  defines += [ "CAMERA_BUILT_ON_OHOS_LITE" ]
48}
49