13fc297bdSopenharmony_ci# Copyright (c) 2022-2023 Huawei Device Co., Ltd.
23fc297bdSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
33fc297bdSopenharmony_ci# you may not use this file except in compliance with the License.
43fc297bdSopenharmony_ci# You may obtain a copy of the License at
53fc297bdSopenharmony_ci#
63fc297bdSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
73fc297bdSopenharmony_ci#
83fc297bdSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
93fc297bdSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
103fc297bdSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
113fc297bdSopenharmony_ci# See the License for the specific language governing permissions and
123fc297bdSopenharmony_ci# limitations under the License.
133fc297bdSopenharmony_ci
143fc297bdSopenharmony_ciimport("//build/ohos.gni")
153fc297bdSopenharmony_ciimport("../../../soc_perf.gni")
163fc297bdSopenharmony_ci
173fc297bdSopenharmony_ciconfig("socperf_client_public_config") {
183fc297bdSopenharmony_ci  include_dirs = [
193fc297bdSopenharmony_ci    "include",
203fc297bdSopenharmony_ci    "${socperf_common}/include",
213fc297bdSopenharmony_ci  ]
223fc297bdSopenharmony_ci}
233fc297bdSopenharmony_ci
243fc297bdSopenharmony_ciohos_shared_library("socperf_client") {
253fc297bdSopenharmony_ci  sources = [
263fc297bdSopenharmony_ci    "src/socperf_client.cpp",
273fc297bdSopenharmony_ci    "src/socperf_proxy.cpp",
283fc297bdSopenharmony_ci  ]
293fc297bdSopenharmony_ci
303fc297bdSopenharmony_ci  public_configs = [ ":socperf_client_public_config" ]
313fc297bdSopenharmony_ci
323fc297bdSopenharmony_ci  external_deps = [
333fc297bdSopenharmony_ci    "c_utils:utils",
343fc297bdSopenharmony_ci    "hilog:libhilog",
353fc297bdSopenharmony_ci    "ipc:ipc_single",
363fc297bdSopenharmony_ci    "safwk:system_ability_fwk",
373fc297bdSopenharmony_ci    "samgr:samgr_proxy",
383fc297bdSopenharmony_ci  ]
393fc297bdSopenharmony_ci
403fc297bdSopenharmony_ci  innerapi_tags = [
413fc297bdSopenharmony_ci    "platformsdk",
423fc297bdSopenharmony_ci    "chipsetsdk",
433fc297bdSopenharmony_ci  ]
443fc297bdSopenharmony_ci  version_script = "libsocperf_client.versionscript"
453fc297bdSopenharmony_ci  part_name = "soc_perf"
463fc297bdSopenharmony_ci  subsystem_name = "resourceschedule"
473fc297bdSopenharmony_ci  branch_protector_ret = "pac_ret"
483fc297bdSopenharmony_ci
493fc297bdSopenharmony_ci  sanitize = {
503fc297bdSopenharmony_ci    cfi = true
513fc297bdSopenharmony_ci    cfi_cross_dso = true
523fc297bdSopenharmony_ci    debug = false
533fc297bdSopenharmony_ci  }
543fc297bdSopenharmony_ci}
55