• 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("//foundation/graphic/graphic_2d/utils/wmlayout/wmlayout.gni")
16import("graphic_config.gni")
17
18group("default") {
19  public_deps = [ ":graphic.rc" ]
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/surface/test:test",
37    "frameworks/vulkan_layers/test:test",
38    "rosen/modules/composer:test",
39    "rosen/modules/effect/test/unittest:test",
40    "rosen/samples/texgine:texgine_feature_test",
41    "rosen/test/frame_analyzer:test",
42    "rosen/test/hyper_graphic_manager:test",
43    "rosen/test/render_frame_trace:test",
44    "rosen/test/render_service:test",
45    "rosen/test/texgine:test",
46    "utils/buffer_handle:test",
47    "utils/color_manager:test",
48    "utils/socketpair:test",
49    "utils/sync_fence: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("libsurface") {
67  public_deps = [ "frameworks/surface:surface" ]
68}
69
70group("libfence") {
71  public_deps = [ "frameworks/fence:libfence" ]
72}
73
74group("libgl") {
75  public_deps = libgl
76}
77
78group("libvulkan") {
79  public_deps = libvulkan
80}
81
82group("libnative_image") {
83  public_deps = [ "frameworks/surfaceimage:libnative_image" ]
84}
85
86group("libbootanimation_utils") {
87  public_deps = [ "frameworks/bootanimation/utils:libbootanimation_utils" ]
88}
89