1# Copyright (C) 2021 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/player_framework/config.gni") 16 17config("media_service_log_dfx_public_config") { 18 cflags = [ "-DOHOS_MEDIA_LOG_DFX" ] 19 include_dirs = [ "//foundation/multimedia/player_framework/services/dfx" ] 20} 21 22ohos_shared_library("media_service_log_dfx") { 23 install_enable = true 24 25 sanitize = { 26 cfi = true 27 cfi_cross_dso = true 28 debug = false 29 } 30 31 sources = [ "dfx_log_dump.cpp" ] 32 33 include_dirs = [ 34 ".", 35 "//commonlibrary/c_utils/base/include", 36 ] 37 38 cflags = [ 39 "-std=c++17", 40 "-fno-rtti", 41 "-fno-exceptions", 42 "-Wall", 43 "-fno-common", 44 "-fstack-protector-strong", 45 "-Wshadow", 46 "-FPIC", 47 "-FS", 48 "-O2", 49 "-D_FORTIFY_SOURCE=2", 50 "-fvisibility=hidden", 51 "-Wformat=2", 52 "-Wfloat-equal", 53 "-Wdate-time", 54 "-Werror", 55 "-Wextra", 56 "-Wimplicit-fallthrough", 57 "-Wsign-compare", 58 "-Wunused-parameter", 59 ] 60 61 external_deps = [ 62 "c_utils:utils", 63 "hilog:libhilog", 64 ] 65 66 subsystem_name = "multimedia" 67 part_name = "player_framework" 68} 69 70ohos_shared_library("media_service_dfx") { 71 install_enable = true 72 73 sanitize = { 74 cfi = true 75 cfi_cross_dso = true 76 debug = false 77 } 78 79 sources = [ "service_dump_manager.cpp" ] 80 81 include_dirs = [ 82 ".", 83 "//commonlibrary/c_utils/base/include", 84 "//foundation/multimedia/player_framework/interfaces/inner_api/native", 85 ] 86 87 defines = [] 88 defines += player_framework_defines 89 90 cflags = [ 91 "-std=c++17", 92 "-fno-rtti", 93 "-fno-exceptions", 94 "-Wall", 95 "-fno-common", 96 "-fstack-protector-strong", 97 "-Wshadow", 98 "-FPIC", 99 "-FS", 100 "-O2", 101 "-D_FORTIFY_SOURCE=2", 102 "-fvisibility=hidden", 103 "-Wformat=2", 104 "-Wfloat-equal", 105 "-Wdate-time", 106 "-Werror", 107 "-Wextra", 108 "-Wimplicit-fallthrough", 109 "-Wsign-compare", 110 "-Wunused-parameter", 111 ] 112 113 external_deps = [ 114 "c_utils:utils", 115 "hilog:libhilog", 116 "init:libbegetutil", 117 "media_foundation:media_foundation", 118 ] 119 120 subsystem_name = "multimedia" 121 part_name = "player_framework" 122} 123