1# Copyright (c) 2020 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# http://www.apache.org/licenses/LICENSE-2.0 6# Unless required by applicable law or agreed to in writing, software 7# distributed under the License is distributed on an "AS IS" BASIS, 8# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 9# See the License for the specific language governing permissions and 10# limitations under the License. 11import("//build/lite/config/component/lite_component.gni") 12 13shared_library("camera_lite") { 14 sources = [ 15 "binder/src/camera_device_client.cpp", 16 "binder/src/camera_service_client.cpp", 17 "camera_ability.cpp", 18 "camera_client.cpp", 19 "camera_config.cpp", 20 "camera_impl.cpp", 21 "camera_info_impl.cpp", 22 "camera_kit.cpp", 23 "camera_manager.cpp", 24 "event_handler.cpp", 25 "frame_config.cpp", 26 ] 27 include_dirs = [ 28 "//foundation/multimedia/camera_lite/services/server/include", 29 "//foundation/multimedia/camera_lite/services/impl/include", 30 "//foundation/multimedia/camera_lite/frameworks/binder/include", 31 "//foundation/multimedia/camera_lite/frameworks", 32 "//utils/native/lite/include", 33 "//foundation/distributedschedule/samgr_lite/interfaces/kits/registry", 34 "//foundation/distributedschedule/samgr_lite/interfaces/kits/samgr", 35 "//foundation/distributedschedule/samgr_lite/interfaces/kits/communication/broadcast", 36 "//foundation/communication/ipc_lite/interfaces/kits", 37 "//base/security/permission/interfaces/kits/permission_lite", 38 ] 39 public_configs = [ ":camera_client_external_library_config" ] 40 41 ldflags = [ 42 "-lstdc++", 43 "-lpthread", 44 "-lcodec", 45 "-lhdi_videodisplayer", 46 "-L$ohos_root_path/$root_out_dir", 47 ] 48 cflags = [ "-fPIC" ] 49 cflags += [ "-Wall" ] 50 cflags_cc = cflags 51 deps = [ 52 "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared", 53 "//base/security/permission/services/permission_lite/pms_client:pms_client", 54 "//device/soc/hisilicon/common/hal/media:hardware_media_sdk", 55 "//device/soc/hisilicon/common/hal/middleware:middleware_source_sdk", 56 "//foundation/distributedschedule/samgr_lite/samgr:samgr", 57 "//third_party/bounds_checking_function:libsec_shared", 58 ] 59 public_deps = [ 60 "//foundation/graphic/surface:lite_surface", 61 "//foundation/multimedia/media_lite/frameworks/recorder_lite:recorder_lite", 62 "//foundation/multimedia/utils/lite:media_common", 63 ] 64} 65 66config("camera_client_external_library_config") { 67 include_dirs = [ "//foundation/multimedia/camera_lite/interfaces/kits" ] 68 include_dirs += [ "//foundation/multimedia/utils/lite/interfaces/kits" ] 69} 70