10a5c7a17Sopenharmony_ci# Copyright (c) 2020-2022 Huawei Device Co., Ltd.
20a5c7a17Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
30a5c7a17Sopenharmony_ci# you may not use this file except in compliance with the License.
40a5c7a17Sopenharmony_ci# You may obtain a copy of the License at
50a5c7a17Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
60a5c7a17Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
70a5c7a17Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
80a5c7a17Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
90a5c7a17Sopenharmony_ci# See the License for the specific language governing permissions and
100a5c7a17Sopenharmony_ci# limitations under the License.
110a5c7a17Sopenharmony_ci
120a5c7a17Sopenharmony_ciimport("//build/lite/config/component/lite_component.gni")
130a5c7a17Sopenharmony_ci
140a5c7a17Sopenharmony_cishared_library("camera_server") {
150a5c7a17Sopenharmony_ci  sources = [
160a5c7a17Sopenharmony_ci    "impl/src/camera_device.cpp",
170a5c7a17Sopenharmony_ci    "impl/src/camera_service.cpp",
180a5c7a17Sopenharmony_ci    "server/src/camera_server.cpp",
190a5c7a17Sopenharmony_ci    "server/src/samgr_camera.cpp",
200a5c7a17Sopenharmony_ci  ]
210a5c7a17Sopenharmony_ci
220a5c7a17Sopenharmony_ci  include_dirs = [
230a5c7a17Sopenharmony_ci    "//foundation/multimedia/camera_lite/services/impl/include",
240a5c7a17Sopenharmony_ci    "//foundation/multimedia/camera_lite/services/server/include",
250a5c7a17Sopenharmony_ci  ]
260a5c7a17Sopenharmony_ci
270a5c7a17Sopenharmony_ci  public_configs = [ ":external_camera_server_library" ]
280a5c7a17Sopenharmony_ci  ldflags = [
290a5c7a17Sopenharmony_ci    "-lstdc++",
300a5c7a17Sopenharmony_ci    "-lcodec",
310a5c7a17Sopenharmony_ci    "-lhdi_camera",
320a5c7a17Sopenharmony_ci    "-lhdi_videodisplayer",
330a5c7a17Sopenharmony_ci    "-lpthread",
340a5c7a17Sopenharmony_ci    "-Wl,-rpath-link=$ohos_root_path/$root_out_dir",
350a5c7a17Sopenharmony_ci  ]
360a5c7a17Sopenharmony_ci  cflags = [ "-Wall" ]
370a5c7a17Sopenharmony_ci  cflags += [ "-fPIC" ]
380a5c7a17Sopenharmony_ci  cflags_cc = cflags
390a5c7a17Sopenharmony_ci  deps = [
400a5c7a17Sopenharmony_ci    "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared",
410a5c7a17Sopenharmony_ci    "//base/security/permission_lite/services/pms_client:pms_client",
420a5c7a17Sopenharmony_ci    "//device/soc/hisilicon/common/hal/media:hardware_media_sdk",
430a5c7a17Sopenharmony_ci    "//device/soc/hisilicon/common/hal/middleware:middleware_source_sdk",
440a5c7a17Sopenharmony_ci    "//foundation/systemabilitymgr/samgr_lite/samgr:samgr",
450a5c7a17Sopenharmony_ci    "//third_party/bounds_checking_function:libsec_shared",
460a5c7a17Sopenharmony_ci  ]
470a5c7a17Sopenharmony_ci  public_deps = [
480a5c7a17Sopenharmony_ci    "//foundation/graphic/surface_lite:surface_lite",
490a5c7a17Sopenharmony_ci    "//foundation/multimedia/camera_lite/frameworks:camera_lite",
500a5c7a17Sopenharmony_ci    "//foundation/multimedia/media_utils_lite:media_common",
510a5c7a17Sopenharmony_ci  ]
520a5c7a17Sopenharmony_ci}
530a5c7a17Sopenharmony_ci
540a5c7a17Sopenharmony_ciconfig("external_camera_server_library") {
550a5c7a17Sopenharmony_ci  include_dirs = [
560a5c7a17Sopenharmony_ci    "//kernel/liteos_a/kernel/include",
570a5c7a17Sopenharmony_ci    "//kernel/liteos_a/kernel/common",
580a5c7a17Sopenharmony_ci    "//commonlibrary/utils_lite/include",
590a5c7a17Sopenharmony_ci    "//foundation/multimedia/media_utils_lite/interfaces/kits",
600a5c7a17Sopenharmony_ci    "//drivers/peripheral/format/interfaces/include",
610a5c7a17Sopenharmony_ci    "//foundation/multimedia/media_utils_lite/hals",
620a5c7a17Sopenharmony_ci    "//base/security/permission_lite/interfaces/kits",
630a5c7a17Sopenharmony_ci    "//foundation/multimedia/services/camera_lite/include",
640a5c7a17Sopenharmony_ci    "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/registry",
650a5c7a17Sopenharmony_ci    "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/samgr",
660a5c7a17Sopenharmony_ci    "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/communication/broadcast",
670a5c7a17Sopenharmony_ci    "//drivers/peripheral/codec/interfaces/include",
680a5c7a17Sopenharmony_ci    "//foundation/multimedia/media_utils_lite/hals",
690a5c7a17Sopenharmony_ci    "//foundation/multimedia/camera_lite/frameworks",
700a5c7a17Sopenharmony_ci    "//drivers/peripheral/display/interfaces/include",
710a5c7a17Sopenharmony_ci    "//drivers/peripheral/base",
720a5c7a17Sopenharmony_ci    "//foundation/communication/ipc/interfaces/innerkits/c/ipc/include/",
730a5c7a17Sopenharmony_ci  ]
740a5c7a17Sopenharmony_ci}
75