1c5e268c6Sopenharmony_ci# Copyright (c) 2022 Huawei Device Co., Ltd.
2c5e268c6Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3c5e268c6Sopenharmony_ci# you may not use this file except in compliance with the License.
4c5e268c6Sopenharmony_ci# You may obtain a copy of the License at
5c5e268c6Sopenharmony_ci#
6c5e268c6Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7c5e268c6Sopenharmony_ci#
8c5e268c6Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9c5e268c6Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10c5e268c6Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11c5e268c6Sopenharmony_ci# See the License for the specific language governing permissions and
12c5e268c6Sopenharmony_ci# limitations under the License.
13c5e268c6Sopenharmony_ci
14c5e268c6Sopenharmony_ciimport("//build/config/components/hdi/hdi.gni")
15c5e268c6Sopenharmony_ciif (defined(ohos_lite)) {
16c5e268c6Sopenharmony_ci  group("libcamera_proxy_1.1") {
17c5e268c6Sopenharmony_ci    deps = []
18c5e268c6Sopenharmony_ci    public_configs = []
19c5e268c6Sopenharmony_ci  }
20c5e268c6Sopenharmony_ci} else {
21c5e268c6Sopenharmony_ci  hdi("camera") {
22c5e268c6Sopenharmony_ci    module_name = "camera_service"
23c5e268c6Sopenharmony_ci    imports = [ "ohos.hdi.camera.v1_0:camera" ]
24c5e268c6Sopenharmony_ci
25c5e268c6Sopenharmony_ci    sources = [
26c5e268c6Sopenharmony_ci      "ICameraDevice.idl",
27c5e268c6Sopenharmony_ci      "ICameraHost.idl",
28c5e268c6Sopenharmony_ci      "IStreamOperator.idl",
29c5e268c6Sopenharmony_ci      "Types.idl",
30c5e268c6Sopenharmony_ci    ]
31c5e268c6Sopenharmony_ci
32c5e268c6Sopenharmony_ci    sequenceable_pub_deps = [
33c5e268c6Sopenharmony_ci      "../sequenceable/buffer_producer:libbuffer_producer_sequenceable_1.0",
34c5e268c6Sopenharmony_ci    ]
35c5e268c6Sopenharmony_ci    sequenceable_ext_deps = [ "graphic_surface:surface" ]
36c5e268c6Sopenharmony_ci
37c5e268c6Sopenharmony_ci    language = "cpp"
38c5e268c6Sopenharmony_ci    subsystem_name = "hdf"
39c5e268c6Sopenharmony_ci    part_name = "drivers_interface_camera"
40c5e268c6Sopenharmony_ci  }
41c5e268c6Sopenharmony_ci}
42