• 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/standard/graphic_config.gni")
16
17## Build libanimation_service.so {{{
18config("libanimation_service_config") {
19  visibility = [ ":*" ]
20
21  include_dirs = [
22    "client/include",
23    "//utils/system/safwk/native/include",  # system_ability_definition.h
24  ]
25
26  cflags = [
27    "-Wall",
28    "-Werror",
29    "-g3",
30  ]
31}
32
33config("libanimation_service_public_config") {
34  include_dirs = [
35    "export",
36    "//foundation/graphic/standard/interfaces/innerkits/common",
37  ]
38}
39
40ohos_shared_library("libanimation_service") {
41  sources = [
42    "client/src/animation_service_proxy.cpp",
43    "client/src/ianimation_service.cpp",
44  ]
45
46  configs = [ ":libanimation_service_config" ]
47
48  public_configs = [ ":libanimation_service_public_config" ]
49
50  deps = [
51    "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
52    "//foundation/graphic/standard/utils:libgraphic_utils",
53  ]
54
55  public_deps = [
56    "//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core",
57    "//utils/native/base:utils",
58  ]
59
60  part_name = "graphic_standard"
61  subsystem_name = "graphic"
62}
63
64## Build libanimation_service.so }}}
65
66## Build animation_server {{{
67config("animation_server_config") {
68  visibility = [ ":*" ]
69
70  include_dirs = [
71    "export",
72    "server/include",
73    "//utils/system/safwk/native/include",  # system_ability_definition.h
74  ]
75
76  cflags = [
77    "-Wall",
78    "-Werror",
79    "-g3",
80  ]
81
82  if (!ace_enable_gpu) {
83    cflags += [ "-Wno-unused-private-field" ]
84  }
85}
86
87ohos_executable("animation_server") {
88  install_enable = true
89
90  sources = [
91    "server/src/animation_server.cpp",
92    "server/src/animation_service_stub.cpp",
93    "server/src/main.cpp",
94  ]
95
96  if (ace_enable_gpu) {
97    sources += [
98      "server/src/animation_module.cpp",
99      "server/src/rotation_animation.cpp",
100    ]
101  } else {
102    sources += [
103      "server/src/mock/animation_module.cpp",
104      "server/src/mock/rotation_animation.cpp",
105    ]
106  }
107
108  configs = [ ":animation_server_config" ]
109
110  deps = [
111    "//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core",
112    "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
113    "//foundation/graphic/standard:libvsync_client",
114    "//foundation/graphic/standard:libwmclient",
115    "//foundation/graphic/standard:libwmservice",
116    "//foundation/graphic/standard/utils:libgraphic_utils",
117    "//foundation/multimodalinput/input/frameworks/proxy:libmmi-client",
118  ]
119
120  part_name = "graphic_standard"
121  subsystem_name = "graphic"
122}
123
124## Build animation_server }}}
125
126ohos_prebuilt_etc("cursor.raw") {
127  source = "server/cursor.raw"
128  part_name = "graphic_standard"
129  subsystem_name = "graphic"
130}
131