1e9297d28Sopenharmony_ci# Copyright (c) 2022-2023 Huawei Device Co., Ltd.
2e9297d28Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3e9297d28Sopenharmony_ci# you may not use this file except in compliance with the License.
4e9297d28Sopenharmony_ci# You may obtain a copy of the License at
5e9297d28Sopenharmony_ci#
6e9297d28Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7e9297d28Sopenharmony_ci#
8e9297d28Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9e9297d28Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10e9297d28Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11e9297d28Sopenharmony_ci# See the License for the specific language governing permissions and
12e9297d28Sopenharmony_ci# limitations under the License.
13e9297d28Sopenharmony_ci
14e9297d28Sopenharmony_ciimport("//build/ohos.gni")
15e9297d28Sopenharmony_ciimport("graphic_config.gni")
16e9297d28Sopenharmony_ci
17e9297d28Sopenharmony_cigroup("default") {
18e9297d28Sopenharmony_ci  public_deps = [ ":graphic.rc" ]
19e9297d28Sopenharmony_ci  public_deps += [ "etc:graphic_config" ]
20e9297d28Sopenharmony_ci
21e9297d28Sopenharmony_ci  if (graphic_2d_feature_bootanimation_enable) {
22e9297d28Sopenharmony_ci    public_deps += [ "frameworks/bootanimation:bootanimation" ]
23e9297d28Sopenharmony_ci    public_deps += [ "frameworks/bootanimation:bootanimation_para" ]
24e9297d28Sopenharmony_ci    public_deps += [ "frameworks/bootanimation:bootanimation_pics" ]
25e9297d28Sopenharmony_ci    public_deps += [ "frameworks/bootanimation:bootanimation_sounds" ]
26e9297d28Sopenharmony_ci    public_deps += [ "frameworks/bootanimation:bootanimation_video" ]
27e9297d28Sopenharmony_ci  }
28e9297d28Sopenharmony_ci}
29e9297d28Sopenharmony_ci
30e9297d28Sopenharmony_cigroup("graphic_common_test") {
31e9297d28Sopenharmony_ci  testonly = true
32e9297d28Sopenharmony_ci
33e9297d28Sopenharmony_ci  public_deps = [
34e9297d28Sopenharmony_ci    "frameworks/bootanimation/test:test",
35e9297d28Sopenharmony_ci    "frameworks/opengl_wrapper/test:test",
36e9297d28Sopenharmony_ci    "frameworks/vulkan_layers/test:test",
37e9297d28Sopenharmony_ci    "graphic_test:test",
38e9297d28Sopenharmony_ci    "rosen/modules/composer:test",
39e9297d28Sopenharmony_ci    "rosen/modules/create_pixelmap_surface:test",
40e9297d28Sopenharmony_ci    "rosen/modules/effect/test/unittest:test",
41e9297d28Sopenharmony_ci    "rosen/modules/graphics_effect/test:test",
42e9297d28Sopenharmony_ci    "rosen/test/frame_analyzer:test",
43e9297d28Sopenharmony_ci    "rosen/test/frame_report:test",
44e9297d28Sopenharmony_ci    "rosen/test/hyper_graphic_manager:test",
45e9297d28Sopenharmony_ci    "rosen/test/render:test",
46e9297d28Sopenharmony_ci    "rosen/test/render_frame_trace:test",
47e9297d28Sopenharmony_ci    "rosen/test/render_service:test",
48e9297d28Sopenharmony_ci    "rosen/test/texgine:test",
49e9297d28Sopenharmony_ci    "utils/color_manager:test",
50e9297d28Sopenharmony_ci    "utils/rs_frame_report_ext:test",
51e9297d28Sopenharmony_ci    "utils/socketpair:test",
52e9297d28Sopenharmony_ci  ]
53e9297d28Sopenharmony_ci}
54e9297d28Sopenharmony_ci
55e9297d28Sopenharmony_ci## Install graphic.rc to /system/etc/init/graphic.rc {{{
56e9297d28Sopenharmony_ciohos_prebuilt_etc("graphic.rc") {
57e9297d28Sopenharmony_ci  source = "graphic.cfg"
58e9297d28Sopenharmony_ci  relative_install_dir = "init"
59e9297d28Sopenharmony_ci  part_name = "graphic_2d"
60e9297d28Sopenharmony_ci  subsystem_name = "graphic"
61e9297d28Sopenharmony_ci}
62e9297d28Sopenharmony_ci
63e9297d28Sopenharmony_ci## Install graphic.rc to /system/etc/init/graphic.rc }}}
64e9297d28Sopenharmony_ci
65e9297d28Sopenharmony_cigroup("libvulkan") {
66e9297d28Sopenharmony_ci  public_deps = libvulkan
67e9297d28Sopenharmony_ci}
68e9297d28Sopenharmony_ci
69e9297d28Sopenharmony_cigroup("libnative_image") {
70e9297d28Sopenharmony_ci  public_deps = [ "frameworks/surfaceimage:libnative_image" ]
71e9297d28Sopenharmony_ci}
72e9297d28Sopenharmony_ci
73e9297d28Sopenharmony_cigroup("libbootanimation_utils") {
74e9297d28Sopenharmony_ci  public_deps = [ "frameworks/bootanimation/utils:libbootanimation_utils" ]
75e9297d28Sopenharmony_ci}
76