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/resourceschedule/frame_aware_sched/frameaware.gni") 16 17config("frame_ui_intf_config") { 18 visibility = [ ":*" ] 19 20 include_dirs = [ 21 "${innerkits_path}/frameintf", 22 "${frame_aware_path}/common/include", 23 "${framework_path}/frame_aware_collector/include", 24 "//commonlibrary/c_utils/base/include", 25 "//utils/system/safwk/native/include", 26 "//base/hiviewdfx/interfaces/innerkits/libhilog/include", 27 "//base/hiviewdfx/interfaces/innerkits/libhitrace/include", 28 ] 29} 30 31config("frame_trace_intf_config") { 32 visibility = [ ":*" ] 33 include_dirs = [ "${innerkits_path}/frameintf" ] 34} 35 36ohos_shared_library("frame_trace_intf") { 37 sources = [ "frame_trace.cpp" ] 38 39 cflags = [ "-fstack-protector-strong" ] 40 41 public_configs = [ ":frame_trace_intf_config" ] 42 43 subsystem_name = "resourceschedule" 44 part_name = "frame_aware_sched" 45} 46 47ohos_shared_library("frame_ui_intf") { 48 sources = [ 49 "${frame_aware_path}/interfaces/innerkits/frameintf/rtg_interface.cpp", 50 "${framework_path}/frame_aware_collector/src/frame_msg_mgr.cpp", 51 "${framework_path}/frame_aware_collector/src/frame_window_mgr.cpp", 52 "${framework_path}/frame_aware_collector/src/rme_core_sched.cpp", 53 "${framework_path}/frame_aware_collector/src/rme_scene_sched.cpp", 54 "frame_ui_intf.cpp", 55 ] 56 57 cflags = [ "-Wno-shift-negative-value" ] 58 59 configs = [ ":frame_ui_intf_config" ] 60 61 deps = [ "//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog" ] 62 63 public_deps = [ "//commonlibrary/c_utils/base:utils" ] 64 65 external_deps = [ 66 "c_utils:utils", 67 "hitrace_native:hitrace_meter", 68 "hiviewdfx_hilog_native:libhilog", 69 ] 70 71 subsystem_name = "resourceschedule" 72 part_name = "frame_aware_sched" 73} 74 75config("frame_msg_intf_config") { 76 visibility = [ ":*" ] 77 78 include_dirs = [ 79 "${innerkits_path}/frameintf", 80 "//third_party/libxml2/include", 81 "${framework_path}/frame_aware_policy/include", 82 "${frame_aware_path}/common/include", 83 "//base/hiviewdfx/interfaces/innerkits/libhilog/include", 84 "//base/hiviewdfx/interfaces/innerkits/libhitrace/include", 85 ] 86} 87 88ohos_shared_library("frame_msg_intf") { 89 sources = [ 90 "${frame_aware_path}/interfaces/innerkits/frameintf/rtg_interface.cpp", 91 "${framework_path}/frame_aware_policy/src/app_info.cpp", 92 "${framework_path}/frame_aware_policy/src/intellisense_server.cpp", 93 "${framework_path}/frame_aware_policy/src/para_config.cpp", 94 "frame_msg_intf.cpp", 95 ] 96 97 cflags = [ "-Wno-shift-negative-value" ] 98 99 configs = [ ":frame_msg_intf_config" ] 100 101 deps = [ "//third_party/libxml2:xml2" ] 102 103 external_deps = [ 104 "c_utils:utils", 105 "eventhandler:libeventhandler", 106 "hitrace_native:hitrace_meter", 107 "hiviewdfx_hilog_native:libhilog", 108 ] 109 110 subsystem_name = "resourceschedule" 111 part_name = "frame_aware_sched" 112} 113 114ohos_shared_library("rtg_interface") { 115 sources = [ "rtg_interface.cpp" ] 116 117 cflags = [ "-Wno-shift-negative-value" ] 118 119 include_dirs = [ 120 "${frame_aware_path}/common/include", 121 "//third_party/bounds_checking_function/include", 122 ] 123 124 deps = [ "//third_party/bounds_checking_function:libsec_shared" ] 125 126 external_deps = [ "hiviewdfx_hilog_native:libhilog" ] 127 128 install_enable = true 129 part_name = "frame_aware_sched" 130} 131