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