• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2021-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#
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("//foundation/multimedia/media_library/media_library.gni")
16
17ohos_shared_library("media_library_manager") {
18  install_enable = true
19
20  sources = [ "./media_library_manager.cpp" ]
21
22  include_dirs = [
23    "${MEDIALIB_UTILS_PATH}/include",
24    "${MEDIALIB_INNERKITS_PATH}/media_library_helper/include",
25    "${MEDIALIB_INTERFACES_PATH}/inner_api/media_library_helper/include",
26  ]
27
28  deps = [ "${MEDIALIB_INNERKITS_PATH}/media_library_helper:media_library" ]
29
30  external_deps = [
31    "ability_base:want",
32    "ability_base:zuri",
33    "ability_runtime:ability_manager",
34    "ability_runtime:abilitykit_native",
35    "bundle_framework:appexecfwk_base",
36    "c_utils:utils",
37    "common_event_service:cesfwk_innerkits",
38    "data_share:datashare_common",
39    "data_share:datashare_consumer",
40    "hilog:libhilog",
41    "hitrace:hitrace_meter",
42    "image_framework:image_native",
43  ]
44
45  sanitize = {
46    cfi = true
47    cfi_cross_dso = true
48    debug = false
49  }
50
51  defines = []
52  defines += [ "MEDIALIBRARY_COMPATIBILITY=1" ]
53
54  part_name = "media_library"
55  subsystem_name = "multimedia"
56}
57