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