1# Copyright (C) 2022 - 2023 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("//build/ohos.gni")
15import("//drivers/interface/camera/camera.gni")
16
17config("camera_sequenceable_config") {
18  include_dirs = [
19    "./",
20    "//drivers/peripheral/base",
21    "../include",
22  ]
23}
24
25ohos_shared_library("libbuffer_producer_sequenceable_1.0") {
26  sources = [ "buffer_producer_sequenceable.cpp" ]
27
28  all_dependent_configs = [ ":camera_sequenceable_config" ]
29  public_configs = [ ":camera_sequenceable_config" ]
30
31  external_deps = [
32    "c_utils:utils",
33    "graphic_surface:surface",
34    "hdf_core:libpub_utils",
35    "hilog:libhilog",
36    "ipc:ipc_single",
37  ]
38  cflags_cc = [ "-fstack-protector-strong" ]
39
40  if (drivers_interface_camera_feature_coverage) {
41    cflags_cc += [ "--coverage" ]
42    ldflags += [ "--coverage" ]
43  }
44  install_images = [ system_base_dir ]
45  relative_install_dir = "chipset-sdk"
46  subsystem_name = "hdf"
47  part_name = "drivers_interface_camera"
48}
49