• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2023 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/av_codec/config.gni")
16
17config("av_codec_service_log_dfx_public_config") {
18  include_dirs = [ "$av_codec_root_dir/services/dfx/include" ]
19}
20
21ohos_shared_library("av_codec_service_dfx") {
22  branch_protector_ret = "pac_ret"
23  install_enable = true
24
25  sanitize = av_codec_sanitize
26
27  public_configs = [ ":av_codec_service_log_dfx_public_config" ]
28
29  public_external_deps = [
30    "hilog:libhilog",
31    "hitrace:hitrace_meter",
32    "media_foundation:media_foundation",
33  ]
34
35  sources = [
36    "avcodec_dump_utils.cpp",
37    "avcodec_sysevent.cpp",
38    "avcodec_xcollie.cpp",
39  ]
40
41  include_dirs = [
42    "./include",
43    "$av_codec_root_dir/interfaces/inner_api/native",
44    "$av_codec_root_dir/interfaces/kits/c",
45    "$av_codec_root_dir/services/services/common",
46  ]
47
48  defines = []
49  defines += av_codec_defines
50
51  cflags = [
52    "-std=c++17",
53    "-fno-rtti",
54    "-fno-exceptions",
55    "-Wall",
56    "-fno-common",
57    "-fstack-protector-strong",
58    "-Wshadow",
59    "-FPIC",
60    "-FS",
61    "-O2",
62    "-D_FORTIFY_SOURCE=2",
63    "-Wformat=2",
64    "-Wfloat-equal",
65    "-Wdate-time",
66    "-Werror",
67    "-Wextra",
68    "-Wimplicit-fallthrough",
69    "-Wsign-compare",
70    "-Wunused-parameter",
71  ]
72
73  external_deps = [
74    "c_utils:utils",
75    "hicollie:libhicollie",
76    "hisysevent:libhisysevent",
77    "init:libbegetutil",
78  ]
79
80  subsystem_name = "multimedia"
81  part_name = "av_codec"
82}
83