• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2021 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/player_framework/config.gni")
16
17ohos_static_library("media_format") {
18  sources = [ "format.cpp" ]
19
20  include_dirs = [
21    "//foundation/multimedia/player_framework/interfaces/inner_api/native",
22    "//foundation/multimedia/player_framework/services/utils/include",
23    "//commonlibrary/c_utils/base/include",
24  ]
25
26  defines = []
27  defines += player_framework_defines
28  deps = [ "//foundation/multimedia/player_framework/services/utils:media_service_utils" ]
29
30  external_deps = [
31    "c_utils:utils",
32    "hiviewdfx_hilog_native:libhilog",
33  ]
34
35  subsystem_name = "multimedia"
36  part_name = "multimedia_player_framework"
37}
38
39config("media_service_utils_public_config") {
40  include_dirs = [
41    "include",
42    "//base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/include",
43  ]
44}
45
46ohos_shared_library("media_service_utils") {
47  install_enable = true
48
49  sources = [
50    "avsharedmemorybase.cpp",
51    "avsharedmemorypool.cpp",
52    "media_dfx.cpp",
53    "task_queue.cpp",
54    "time_monitor.cpp",
55    "time_perf.cpp",
56    "uri_helper.cpp",
57    "watchdog.cpp",
58    "xml_parse.cpp",
59  ]
60
61  include_dirs = [
62    "//commonlibrary/c_utils/base/include",
63    "//foundation/multimedia/player_framework/interfaces/inner_api/native",
64    "//third_party/libxml2/include",
65  ]
66
67  cflags = [
68    "-std=c++17",
69    "-fno-rtti",
70    "-fno-exceptions",
71    "-Wall",
72    "-fno-common",
73    "-fstack-protector-strong",
74    "-Wshadow",
75    "-FPIC",
76    "-FS",
77    "-O2",
78    "-D_FORTIFY_SOURCE=2",
79    "-fvisibility=hidden",
80    "-Wformat=2",
81    "-Wfloat-equal",
82    "-Wdate-time",
83    "-Werror",
84    "-Wextra",
85    "-Wimplicit-fallthrough",
86    "-Wsign-compare",
87    "-Wunused-parameter",
88  ]
89
90  configs = [ ":media_service_utils_public_config" ]
91
92  deps = [ "//third_party/libxml2:xml2" ]
93
94  external_deps = [
95    "c_utils:utils",
96    "hisysevent_native:libhisysevent",
97    "hitrace_native:hitrace_meter",
98    "hiviewdfx_hilog_native:libhilog",
99  ]
100
101  subsystem_name = "multimedia"
102  part_name = "multimedia_player_framework"
103}
104