• 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  cflags = [ "-DOHOS_AV_CODEC_LOG_DFX" ]
19  include_dirs = [ "$av_codec_root_dir/services/dfx/include" ]
20}
21
22ohos_shared_library("av_codec_service_dfx") {
23  install_enable = true
24
25  sanitize = {
26    cfi = true
27    cfi_cross_dso = true
28    debug = false
29  }
30
31  sources = [
32    "avcodec_bitstream_dump.cpp",
33    "avcodec_dfx.cpp",
34    "avcodec_dump_utils.cpp",
35    "avcodec_log_dump.cpp",
36    "avcodec_xcollie.cpp",
37  ]
38
39  include_dirs = [
40    "./include",
41    "$av_codec_root_dir/interfaces/inner_api/native",
42    "$av_codec_root_dir/interfaces/kits/c",
43  ]
44
45  defines = []
46  defines += av_codec_defines
47
48  cflags = [
49    "-std=c++17",
50    "-fno-rtti",
51    "-fno-exceptions",
52    "-Wall",
53    "-fno-common",
54    "-fstack-protector-strong",
55    "-Wshadow",
56    "-FPIC",
57    "-FS",
58    "-O2",
59    "-D_FORTIFY_SOURCE=2",
60    "-fvisibility=hidden",
61    "-Wformat=2",
62    "-Wfloat-equal",
63    "-Wdate-time",
64    "-Werror",
65    "-Wextra",
66    "-Wimplicit-fallthrough",
67    "-Wsign-compare",
68    "-Wunused-parameter",
69  ]
70
71  deps = [ "$av_codec_root_dir/services/utils:av_codec_format" ]
72
73  external_deps = [
74    "c_utils:utils",
75    "hicollie:libhicollie",
76    "hidumper:lib_dump_usage",
77    "hilog:libhilog",
78    "hisysevent:libhisysevent",
79    "hitrace:hitrace_meter",
80    "init:libbegetutil",
81  ]
82
83  subsystem_name = "multimedia"
84  part_name = "av_codec"
85}
86