1# Copyright (c) 2021 - 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") 15 16config("camera_metadata_config") { 17 include_dirs = [ "./include" ] 18} 19 20ohos_shared_library("metadata") { 21 install_enable = true 22 cflags = [ 23 "-fPIC", 24 "-Wall", 25 ] 26 cflags_cc = cflags 27 all_dependent_configs = [ ":camera_metadata_config" ] 28 if (defined(ohos_lite)) { 29 sources = [ 30 "src/camera_metadata_info.cpp", 31 "src/camera_metadata_operator.cpp", 32 ] 33 external_deps = [ "hilog_lite:hilog_shared" ] 34 } else { 35 sources = [ 36 "src/camera_metadata_info.cpp", 37 "src/camera_metadata_operator.cpp", 38 "src/metadata_utils.cpp", 39 ] 40 deps = [ "../v1_0:libcamera_proxy_1.0" ] 41 external_deps = [ 42 "c_utils:utils", 43 "hilog:libhilog", 44 "ipc:ipc_single", 45 ] 46 } 47 48 install_images = [ system_base_dir ] 49 innerapi_tags = [ 50 "chipsetsdk", 51 "platformsdk_indirect", 52 ] 53 part_name = "drivers_interface_camera" 54 subsystem_name = "hdf" 55} 56