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/graphic/graphic_2d/graphic_config.gni") 16 17config("libhyper_graphic_manager_config") { 18 visibility = [ ":*" ] 19 20 include_dirs = [ 21 "core/config", 22 "core/frame_rate_manager", 23 "core/hgm_screen_manager", 24 "core/utils", 25 "$graphic_2d_root/rosen/modules/render_service_base/include", 26 "$graphic_2d_root/rosen/modules/composer/hdi_backend/include", 27 "$graphic_2d_root/utils/log", 28 "//third_party/libxml2/include", 29 ] 30 31 cflags = [ "-g3" ] 32} 33 34ohos_shared_library("libhyper_graphic_manager") { 35 public_configs = [ ":libhyper_graphic_manager_config" ] 36 37 sources = [ 38 "core/config/xml_parser.cpp", 39 "core/frame_rate_manager/hgm_frame_rate_manager.cpp", 40 "core/frame_rate_manager/hgm_frame_rate_tool.cpp", 41 "core/hgm_screen_manager/hgm_core.cpp", 42 "core/hgm_screen_manager/hgm_screen.cpp", 43 ] 44 45 deps = [ "//third_party/libxml2:xml2" ] 46 47 external_deps = [ 48 "c_utils:utils", 49 "eventhandler:libeventhandler", 50 "hitrace:hitrace_meter", 51 "init:libbeget_proxy", 52 "init:libbegetutil", 53 ] 54 55 part_name = "graphic_2d" 56 subsystem_name = "graphic" 57 58 if (is_standard_system) { 59 external_deps += [ "hilog:libhilog" ] 60 } else { 61 external_deps += [ "hilog:libhilog" ] 62 } 63} 64 65ohos_prebuilt_etc("hgm_policy_config.xml") { 66 source = "core/config/hgm_policy_config.xml" 67 relative_install_dir = "graphic" 68 part_name = "graphic_2d" 69 subsystem_name = "graphic" 70} 71