13fc297bdSopenharmony_ci# Copyright (c) 2024  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/sa_profile/sa_profile.gni")
153fc297bdSopenharmony_ciimport("soc_perf.gni")
163fc297bdSopenharmony_ci
173fc297bdSopenharmony_cigroup("base_group_soc_perf_all") {
183fc297bdSopenharmony_ci  if (soc_perf_device_enable) {
193fc297bdSopenharmony_ci    deps = [ "${socperf_path}/profile:socperf_config" ]
203fc297bdSopenharmony_ci  }
213fc297bdSopenharmony_ci}
223fc297bdSopenharmony_ci
233fc297bdSopenharmony_cigroup("fwk_group_socperf_client_all") {
243fc297bdSopenharmony_ci  if (soc_perf_device_enable) {
253fc297bdSopenharmony_ci    deps = [ "${socperf_interfaces}/inner_api/socperf_client:socperf_client" ]
263fc297bdSopenharmony_ci  }
273fc297bdSopenharmony_ci}
283fc297bdSopenharmony_ci
293fc297bdSopenharmony_cigroup("service_group_soc_perf_all") {
303fc297bdSopenharmony_ci  if (soc_perf_device_enable) {
313fc297bdSopenharmony_ci    deps = [
323fc297bdSopenharmony_ci      "${socperf_path}/sa_profile:socperf_sa_profile",
333fc297bdSopenharmony_ci      "${socperf_services}:socperf_server",
343fc297bdSopenharmony_ci    ]
353fc297bdSopenharmony_ci  }
363fc297bdSopenharmony_ci}
373fc297bdSopenharmony_ci
383fc297bdSopenharmony_cigroup("test_soc_perf_all") {
393fc297bdSopenharmony_ci  testonly = true
403fc297bdSopenharmony_ci  if (soc_perf_device_enable) {
413fc297bdSopenharmony_ci    deps = [
423fc297bdSopenharmony_ci      "${socperf_test}/fuzztest:fuzztest",
433fc297bdSopenharmony_ci      "${socperf_test}/testutil:socperf_test",
443fc297bdSopenharmony_ci      "${socperf_test}/unittest:unittest",
453fc297bdSopenharmony_ci    ]
463fc297bdSopenharmony_ci  }
473fc297bdSopenharmony_ci}
48