• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2024 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("//build/ohos/ace/ace.gni")
16import("//foundation/multimedia/player_framework/config.gni")
17import("./../../../multimedia_player_framework_aafwk.gni")
18
19config("public_ffi_config") {
20  include_dirs = [ "include" ]
21}
22
23ohos_shared_library("cj_metadatahelper_ffi") {
24  public_configs = [ ":public_ffi_config" ]
25
26  sanitize = {
27    cfi = true
28    cfi_cross_dso = true
29    cfi_vcall_icall_only = true
30    debug = false
31  }
32
33  include_dirs = [
34    "${multimedia_player_framework_path}/interfaces/kits/js",
35    "${multimedia_player_framework_path}/frameworks/js/avrecorder",
36    "${multimedia_player_framework_path}/frameworks/js/avtranscoder",
37    "${multimedia_player_framework_path}/frameworks/js/recorder",
38    "${multimedia_player_framework_path}/frameworks/js/media",
39    "${multimedia_player_framework_path}/frameworks/js/mediasource",
40    "${multimedia_player_framework_path}/frameworks/js/common",
41    "${multimedia_player_framework_path}/frameworks/js/avscreen_capture",
42    "${multimedia_player_framework_path}/services/utils/include",
43    "${multimedia_player_framework_path}/frameworks/js/metadatahelper",
44    "${multimedia_player_framework_path}/interfaces/inner_api/native/",
45  ]
46
47  sources = [
48    "src/cj_avimagegenerator.cpp",
49    "src/cj_avmetadataextractor.cpp",
50    "src/cj_helperdatasourcecallback.cpp",
51    "src/metadatahelper_ffi.cpp",
52  ]
53
54  deps = [
55    "../../../interfaces/inner_api/native:media_client",
56    "../../../services/utils:media_service_utils",
57  ]
58
59  external_deps = [
60    "c_utils:utils",
61    "hilog:libhilog",
62    "image_framework:cj_image_ffi",
63    "image_framework:image_native",
64    "media_foundation:media_foundation",
65    "napi:cj_bind_ffi",
66    "napi:cj_bind_native",
67  ]
68
69  innerapi_tags = [ "platformsdk" ]
70  subsystem_name = "multimedia"
71  part_name = "player_framework"
72}
73