• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2025 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")
15import("./../multimedia_camera_framework.gni")
16
17config("camera_dynamic_medialibrary_public_config") {
18  include_dirs = [
19    "${multimedia_camera_framework_path}/dynamic_libs/media_library/include",
20  ]
21}
22ohos_shared_library("camera_dynamic_medialibrary") {
23  install_enable = true
24  sources = [ "${multimedia_camera_framework_path}/dynamic_libs/media_library/src/photo_asset_adapter.cpp" ]
25  cflags = [
26    "-fPIC",
27    "-Wall",
28    "-Os",
29  ]
30  sanitize = {
31    cfi = true
32    cfi_cross_dso = true
33    debug = false
34  }
35  include_dirs = [ "${multimedia_camera_framework_path}/common/utils" ]
36  public_configs = [ ":camera_dynamic_medialibrary_public_config" ]
37  if (target_cpu == "arm") {
38    cflags += [ "-DBINDER_IPC_32BIT" ]
39  }
40
41  external_deps = [
42    "c_utils:utils",
43    "data_share:datashare_common",
44    "data_share:datashare_consumer",
45    "hilog:libhilog",
46    "hisysevent:libhisysevent",
47    "hitrace:hitrace_meter",
48    "image_framework:image_native",
49    "ipc:ipc_single",
50    "media_library:media_library",
51    "media_library:media_library_manager",
52    "samgr:samgr_proxy",
53  ]
54
55  cflags_cc = cflags
56
57  part_name = "camera_framework"
58  subsystem_name = "multimedia"
59}
60
61config("camera_dynamic_picture_public_config") {
62  include_dirs = [
63    "${multimedia_camera_framework_path}/dynamic_libs/image_framework/include",
64  ]
65}
66
67ohos_shared_library("camera_dynamic_picture") {
68  install_enable = true
69  sources = [ "${multimedia_camera_framework_path}/dynamic_libs/image_framework/src/picture_adapter.cpp" ]
70  cflags = [
71    "-fPIC",
72    "-Wall",
73    "-Os",
74  ]
75  sanitize = {
76    cfi = true
77    cfi_cross_dso = true
78    debug = false
79  }
80  include_dirs = [ "${multimedia_camera_framework_path}/common/utils" ]
81  public_configs = [ ":camera_dynamic_picture_public_config" ]
82  if (target_cpu == "arm") {
83    cflags += [ "-DBINDER_IPC_32BIT" ]
84  }
85
86  external_deps = [
87    "c_utils:utils",
88    "hilog:libhilog",
89    "hitrace:hitrace_meter",
90    "image_framework:image_native",
91    "ipc:ipc_single",
92    "samgr:samgr_proxy",
93  ]
94
95  cflags_cc = cflags
96
97  part_name = "camera_framework"
98  subsystem_name = "multimedia"
99}
100