• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 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/graphic_config.gni")
16
17## Build bootanimation {{{
18config("bootanimation_config") {
19  visibility = [ ":*" ]
20
21  include_dirs = [
22    "include",
23    "//foundation/graphic/graphic_2d/utils/log",
24    "//third_party/cJSON",
25    "//foundation/multimedia/player_framework/interfaces/inner_api/native",
26  ]
27
28  cflags = [
29    "-Wall",
30    "-Werror",
31    "-g3",
32  ]
33
34  defines = []
35  defines += gpu_defines
36}
37
38ohos_executable("bootanimation") {
39  install_enable = true
40
41  sources = [
42    "src/boot_animation.cpp",
43    "src/main.cpp",
44    "src/util.cpp",
45  ]
46
47  configs = [
48    ":bootanimation_config",
49    "//commonlibrary/c_utils/base:utils_config",
50  ]
51
52  deps = [
53    "//base/global/resource_management/frameworks/resmgr:global_resmgr",
54    "//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog",
55    "//foundation/graphic/graphic_2d:libsurface",
56    "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics:2d_graphics",
57    "//foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform:platform",
58    "//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client",
59    "//foundation/multimedia/player_framework/interfaces/inner_api/native:media_client",
60    "//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
61    "//foundation/window/window_manager/dm:libdm",
62    "//foundation/window/window_manager/wm:libwm",
63    "//third_party/cJSON:cjson_static",
64    "//third_party/flutter/build/skia:ace_skia_ohos",
65    "//third_party/zlib:libz",
66  ]
67
68  external_deps = [
69    "hitrace_native:hitrace_meter",
70    "ipc:ipc_core",
71  ]
72
73  if (is_standard_system) {
74    external_deps += [ "init:libbegetutil" ]
75  } else {
76    external_deps += [ "startup:syspara" ]
77  }
78
79  part_name = "graphic_standard"
80  subsystem_name = "graphic"
81}
82
83## Build bootanimation }}}
84
85## Install data/*.jpg to /system/etc/init/ {{{
86ohos_prebuilt_etc("bootanimation_pics") {
87  source = "data/bootpic.zip"
88  relative_install_dir = "init"
89  part_name = "graphic_standard"
90  subsystem_name = "graphic"
91}
92
93ohos_prebuilt_etc("bootanimation_sounds") {
94  source = "data/bootsound.wav"
95  relative_install_dir = "init"
96  part_name = "graphic_standard"
97  subsystem_name = "graphic"
98}
99## Install data/*.jpg to /system/etc/init/ }}}
100