• 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("../soc_perf.gni")
16
17config("socperf_server_config") {
18  include_dirs = [
19    "core/include",
20    "server/include",
21    "${socperf_common}/include",
22    "${socperf_interfaces}/inner_api/socperf_client/include",
23  ]
24}
25
26ohos_shared_library("socperf_server") {
27  configs = [ ":socperf_server_config" ]
28
29  sources = [
30    "core/src/socperf.cpp",
31    "core/src/socperf_thread_wrap.cpp",
32    "server/src/socperf_server.cpp",
33    "server/src/socperf_stub.cpp",
34  ]
35
36  deps = [ "//third_party/libxml2:xml2" ]
37
38  external_deps = [
39    "access_token:libaccesstoken_sdk",
40    "access_token:libtokenid_sdk",
41    "c_utils:utils",
42    "config_policy:configpolicy_util",
43    "eventhandler:libeventhandler",
44    "ffrt:libffrt",
45    "hilog:libhilog",
46    "hisysevent:libhisysevent",
47    "hitrace:hitrace_meter",
48    "init:libbegetutil",
49    "ipc:ipc_single",
50    "safwk:system_ability_fwk",
51    "samgr:samgr_proxy",
52  ]
53
54  defines = []
55
56  shlib_type = "sa"
57  part_name = "soc_perf"
58  subsystem_name = "resourceschedule"
59  branch_protector_ret = "pac_ret"
60
61  sanitize = {
62    cfi = true
63    cfi_cross_dso = true
64    debug = false
65  }
66}
67
68ohos_static_library("socperf_server_static") {
69  configs = [ ":socperf_server_config" ]
70
71  sources = [
72    "core/src/socperf.cpp",
73    "core/src/socperf_thread_wrap.cpp",
74    "server/src/socperf_server.cpp",
75    "server/src/socperf_stub.cpp",
76  ]
77
78  deps = [ "//third_party/libxml2:xml2" ]
79
80  external_deps = [
81    "access_token:libaccesstoken_sdk",
82    "access_token:libtokenid_sdk",
83    "c_utils:utils",
84    "config_policy:configpolicy_util",
85    "eventhandler:libeventhandler",
86    "ffrt:libffrt",
87    "hilog:libhilog",
88    "hisysevent:libhisysevent",
89    "hitrace:hitrace_meter",
90    "init:libbegetutil",
91    "ipc:ipc_single",
92    "safwk:system_ability_fwk",
93    "samgr:samgr_proxy",
94  ]
95
96  defines = []
97
98  part_name = "soc_perf"
99  subsystem_name = "resourceschedule"
100  branch_protector_ret = "pac_ret"
101
102  sanitize = {
103    cfi = true
104    cfi_cross_dso = true
105    debug = false
106  }
107}
108