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