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