• 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
14import("camera.gni")
15
16if (defined(ohos_lite)) {
17  group("camera_hal") {
18    deps = [
19      "buffer_manager:camera_buffer_manager",
20      "device_manager:camera_device_manager",
21      "hdi_impl:camera_host_service_1.0",
22      "init:ohos_camera_demo",
23      "pipeline_core:camera_pipeline_core",
24      "utils:camera_utils",
25    ]
26    deps += [ "${chipset_build_deps}" ]
27  }
28  group("camera_hal_unittest") {
29    deps = []
30  }
31} else if (is_standard_system) {
32  group("camera_hal") {
33    if (target_cpu == "x86_64") {
34      deps = []
35    } else {
36      deps = [
37        "buffer_manager:camera_buffer_manager",
38        "device_manager:camera_device_manager",
39        "hdi_impl:camera_host_service_1.0",
40        "init:ohos_camera_demo",
41        "pipeline_core:camera_pipeline_core",
42        "utils:camera_utils",
43      ]
44      deps += [ "${chipset_build_deps}" ]
45    }
46  }
47  group("camera_hal_unittest") {
48    if (target_cpu == "x86_64") {
49      deps = []
50    } else {
51      testonly = true
52      deps = [
53        # acceptance unit test
54        "device_manager/test:camera_hal_device_manager_unittest",
55        "test/at:camera_test_at",
56
57        # fuzz test
58        "test/fuzztest:camera_hdi_fuzztest",
59
60        # function unit test
61        "test/ut:camera_test_ut",
62      ]
63    }
64  }
65}
66