• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    public_deps += [ "frameworks/bootanimation:bootanimation.rc" ]
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/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    "utils/color_manager:test",
47    "utils/rs_frame_report_ext:test",
48    "utils/scoped_bytrace:test",
49    "utils/socketpair:test",
50  ]
51}
52
53## Install graphic.rc to /system/etc/init/graphic.rc {{{
54ohos_prebuilt_etc("graphic.rc") {
55  source = "graphic.cfg"
56  relative_install_dir = "init"
57  part_name = "graphic_2d"
58  subsystem_name = "graphic"
59}
60
61## Install graphic.rc to /system/etc/init/graphic.rc }}}
62
63group("libvulkan") {
64  public_external_deps = libvulkan
65}
66
67group("libnative_image") {
68  public_deps = [ "frameworks/surfaceimage:libnative_image" ]
69}
70
71group("libbootanimation_utils") {
72  public_deps = [ "frameworks/bootanimation/utils:libbootanimation_utils" ]
73}
74