• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022 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_session/config.gni")
16
17config("avsession_utils_config") {
18  include_dirs = [
19    "include",
20    "//third_party/openssl/include/",
21  ]
22}
23
24ohos_shared_library("avsession_utils") {
25  install_enable = true
26  sanitize = {
27    cfi = true
28    debug = false
29  }
30  sources = [
31    "src/avsession_event_handler.cpp",
32    "src/avsession_sysevent.cpp",
33    "src/hash_calculator.cpp",
34  ]
35
36  include_dirs = [ "//foundation/multimedia/av_session/interfaces/inner_api/native/session/include" ]
37
38  public_configs = [ ":avsession_utils_config" ]
39
40  deps = [ "//third_party/openssl:libcrypto_shared" ]
41
42  external_deps = [
43    "c_utils:utils",
44    "eventhandler:libeventhandler",
45    "hiviewdfx_hilog_native:libhilog",
46  ]
47
48  if (multimedia_av_session_enable_trace_control) {
49    cflags = [ "-DENBABLE_AVSESSION_TRACE_CONTROL" ]
50    external_deps += [ "hitrace_native:hitrace_meter" ]
51  }
52  if (multimedia_av_session_enable_sysevent_control) {
53    cflags += [ "-DENABLE_AVSESSION_SYSEVENT_CONTROL" ]
54    external_deps += [ "hisysevent_native:libhisysevent" ]
55  }
56
57  subsystem_name = "multimedia"
58  part_name = "multimedia_av_session"
59}
60