1# Copyright (c) 2022-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("graphic_config.gni") 16 17group("default") { 18 public_deps = [ ":graphic.rc" ] 19 20 if (graphic_2d_feature_bootanimation_enable) { 21 public_deps += [ "frameworks/bootanimation:bootanimation" ] 22 public_deps += [ "frameworks/bootanimation:bootanimation_para" ] 23 public_deps += [ "frameworks/bootanimation:bootanimation_pics" ] 24 public_deps += [ "frameworks/bootanimation:bootanimation_sounds" ] 25 public_deps += [ "frameworks/bootanimation:bootanimation_video" ] 26 } 27} 28 29group("graphic_common_test") { 30 testonly = true 31 32 public_deps = [ 33 "frameworks/bootanimation/test:test", 34 "frameworks/opengl_wrapper/test:test", 35 "frameworks/vulkan_layers/test:test", 36 "graphic_test:test", 37 "rosen/modules/composer:test", 38 "rosen/modules/create_pixelmap_surface:test", 39 "rosen/modules/effect/test/unittest:test", 40 "rosen/modules/graphics_effect/test:test", 41 "rosen/test/frame_analyzer:test", 42 "rosen/test/frame_report:test", 43 "rosen/test/hyper_graphic_manager:test", 44 "rosen/test/render_frame_trace:test", 45 "rosen/test/render_service:test", 46 "rosen/test/texgine:test", 47 "utils/color_manager:test", 48 "utils/rs_frame_report_ext:test", 49 "utils/socketpair:test", 50 ] 51 if (graphic_2d_feature_enable_vulkan) { 52 public_deps -= [ "frameworks/opengl_wrapper/test:test" ] 53 } 54} 55 56## Install graphic.rc to /system/etc/init/graphic.rc {{{ 57ohos_prebuilt_etc("graphic.rc") { 58 source = "graphic.cfg" 59 relative_install_dir = "init" 60 part_name = "graphic_2d" 61 subsystem_name = "graphic" 62} 63 64## Install graphic.rc to /system/etc/init/graphic.rc }}} 65 66group("libfence") { 67 public_deps = [ "frameworks/fence:libfence" ] 68} 69 70group("libvulkan") { 71 public_deps = libvulkan 72} 73 74group("libnative_image") { 75 public_deps = [ "frameworks/surfaceimage:libnative_image" ] 76} 77 78group("libbootanimation_utils") { 79 public_deps = [ "frameworks/bootanimation/utils:libbootanimation_utils" ] 80} 81