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/graphic/standard/graphic_config.gni") 16import("render_service_client.gni") 17 18config("render_service_client_config") { 19 include_dirs = [ 20 "$rosen_root/modules", 21 "$rosen_root/modules/render_service_client/core", 22 "$rosen_root/modules/render_service_base/include", 23 "//foundation/graphic/standard/interfaces/innerkits/common", 24 "//foundation/graphic/standard/interfaces/innerkits/surface", 25 "//foundation/graphic/standard/interfaces/innerkits/composer", 26 ] 27} 28 29ohos_source_set("render_service_client_src") { 30 defines = [] 31 defines += gpu_defines 32 include_dirs = [ 33 "core", 34 "$rosen_root/modules/render_service_base/src", 35 "$rosen_root/modules/2d_graphics/src", 36 "//foundation/graphic/utils/log", 37 "//foundation/graphic/standard/utils/log", 38 "//foundation/graphic/standard/interfaces/innerkits/surface", 39 ] 40 41 sources = [ 42 #animation 43 "core/animation/rs_animation.cpp", 44 "core/animation/rs_animation_callback.cpp", 45 "core/animation/rs_animation_group.cpp", 46 "core/animation/rs_animation_timing_curve.cpp", 47 "core/animation/rs_curve_animation.cpp", 48 "core/animation/rs_implicit_animation_param.cpp", 49 "core/animation/rs_implicit_animator.cpp", 50 "core/animation/rs_keyframe_animation.cpp", 51 "core/animation/rs_path_animation.cpp", 52 "core/animation/rs_transition.cpp", 53 54 #pipeline 55 "core/pipeline/rs_node_map.cpp", 56 "core/pipeline/rs_render_thread.cpp", 57 "core/pipeline/rs_render_thread_visitor.cpp", 58 59 #transaction 60 "core/transaction/rs_interfaces.cpp", 61 "core/transaction/rs_render_thread_client.cpp", 62 "core/transaction/rs_transaction.cpp", 63 64 #ui 65 "core/ui/rs_base_node.cpp", 66 "core/ui/rs_canvas_node.cpp", 67 "core/ui/rs_display_node.cpp", 68 "core/ui/rs_node.cpp", 69 "core/ui/rs_root_node.cpp", 70 "core/ui/rs_surface_extractor.cpp", 71 "core/ui/rs_surface_node.cpp", 72 "core/ui/rs_texture_node.cpp", 73 "core/ui/rs_ui_director.cpp", 74 ] 75 76 cflags = [ 77 "-Wall", 78 "-Wno-pointer-arith", 79 "-Wno-non-virtual-dtor", 80 "-Wno-missing-field-initializers", 81 "-Wno-c++11-narrowing", 82 "-fvisibility=hidden", 83 ] 84 85 cflags_cc = [ 86 "-std=c++17", 87 "-fvisibility-inlines-hidden", 88 ] 89 90 deps = [] 91 92 if (enable_export_macro) { 93 defines += [ "ENABLE_EXPORT_MACRO" ] 94 } 95 96 external_deps = [ 97 "bytrace_standard:bytrace_core", 98 "hisysevent_native:libhisysevent", 99 ] 100 public_deps = 101 [ "$rosen_root/modules/render_service_base:librender_service_base" ] 102} 103 104ohos_shared_library("librender_service_client") { 105 public_deps = [ 106 ":render_service_client_src", 107 "//foundation/ace/ace_engine/build/external_config/flutter/skia:ace_skia_ohos", 108 ] 109 110 public_configs = [ ":render_service_client_config" ] 111 112 part_name = "graphic_standard" 113 subsystem_name = "graphic" 114} 115 116group("test") { 117 testonly = true 118 119 deps = [ "test:test" ] 120} 121