1# Copyright (c) 2020-2022 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. 11 12import("//build/lite/config/component/lite_component.gni") 13 14shared_library("camera_server") { 15 sources = [ 16 "impl/src/camera_device.cpp", 17 "impl/src/camera_service.cpp", 18 "server/src/camera_server.cpp", 19 "server/src/samgr_camera.cpp", 20 ] 21 22 include_dirs = [ 23 "//foundation/multimedia/camera_lite/services/impl/include", 24 "//foundation/multimedia/camera_lite/services/server/include", 25 ] 26 27 public_configs = [ ":external_camera_server_library" ] 28 ldflags = [ 29 "-lstdc++", 30 "-lcodec", 31 "-lhdi_camera", 32 "-lhdi_videodisplayer", 33 "-lpthread", 34 "-Wl,-rpath-link=$ohos_root_path/$root_out_dir", 35 ] 36 cflags = [ "-Wall" ] 37 cflags += [ "-fPIC" ] 38 cflags_cc = cflags 39 deps = [ 40 "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared", 41 "//base/security/permission_lite/services/pms_client:pms_client", 42 "//device/soc/hisilicon/common/hal/media:hardware_media_sdk", 43 "//device/soc/hisilicon/common/hal/middleware:middleware_source_sdk", 44 "//foundation/systemabilitymgr/samgr_lite/samgr:samgr", 45 "//third_party/bounds_checking_function:libsec_shared", 46 ] 47 public_deps = [ 48 "//foundation/graphic/surface_lite:surface_lite", 49 "//foundation/multimedia/camera_lite/frameworks:camera_lite", 50 "//foundation/multimedia/media_utils_lite:media_common", 51 ] 52} 53 54config("external_camera_server_library") { 55 include_dirs = [ 56 "//kernel/liteos_a/kernel/include", 57 "//kernel/liteos_a/kernel/common", 58 "//commonlibrary/utils_lite/include", 59 "//foundation/multimedia/media_utils_lite/interfaces/kits", 60 "//drivers/peripheral/format/interfaces/include", 61 "//foundation/multimedia/media_utils_lite/hals", 62 "//base/security/permission_lite/interfaces/kits", 63 "//foundation/multimedia/services/camera_lite/include", 64 "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/registry", 65 "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/samgr", 66 "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/communication/broadcast", 67 "//drivers/peripheral/codec/interfaces/include", 68 "//foundation/multimedia/media_utils_lite/hals", 69 "//foundation/multimedia/camera_lite/frameworks", 70 "//drivers/peripheral/display/interfaces/include", 71 "//drivers/peripheral/base", 72 "//foundation/communication/ipc/interfaces/innerkits/c/ipc/include/", 73 ] 74} 75