148f512ceSopenharmony_ci# Copyright (C) 2021 Huawei Device Co., Ltd. 248f512ceSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 348f512ceSopenharmony_ci# you may not use this file except in compliance with the License. 448f512ceSopenharmony_ci# You may obtain a copy of the License at 548f512ceSopenharmony_ci# 648f512ceSopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 748f512ceSopenharmony_ci# 848f512ceSopenharmony_ci# Unless required by applicable law or agreed to in writing, software 948f512ceSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 1048f512ceSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1148f512ceSopenharmony_ci# See the License for the specific language governing permissions and 1248f512ceSopenharmony_ci# limitations under the License. 1348f512ceSopenharmony_ci 1448f512ceSopenharmony_ciimport("//build/ohos.gni") 1548f512ceSopenharmony_ciimport("../../hiperf.gni") 1648f512ceSopenharmony_ci 1748f512ceSopenharmony_ciohos_executable("hiperf_demo") { 1848f512ceSopenharmony_ci deps = [ "${hiperf_path}/interfaces/innerkits/native:hiperf_client" ] 1948f512ceSopenharmony_ci sources = [ "hiperf_demo.cpp" ] 2048f512ceSopenharmony_ci subsystem_name = "developtools" 2148f512ceSopenharmony_ci part_name = "hiperf" 2248f512ceSopenharmony_ci} 2348f512ceSopenharmony_ci 2448f512ceSopenharmony_ciohos_executable("hiperf_example_cmd") { 2548f512ceSopenharmony_ci cflags = [ "-O0" ] 2648f512ceSopenharmony_ci sources = [ "hiperf_example_cmd.cpp" ] 2748f512ceSopenharmony_ci subsystem_name = "developtools" 2848f512ceSopenharmony_ci part_name = "hiperf" 2948f512ceSopenharmony_ci} 30