1# Copyright (c) 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/lite/config/component/lite_component.gni") 15import("//test/xts/tools/lite/build/common.gni") 16import("//test/xts/tools/lite/build/suite_lite.gni") 17 18executable("querySmall") { 19 output_extension = "bin" 20 sources = [ "src/QueryMainSmall.cpp" ] 21 22 include_dirs = [ 23 "./src/QueryMainSmall.cpp", 24 "//base/startup/init/interfaces/innerkits/include/syspara", 25 "//test/xts/device_attest_lite/interfaces/innerkits", 26 ] 27 28 deps = [ "//base/startup/init/interfaces/innerkits:libbegetutil" ] 29 if (os_level != "mini") { 30 deps += [ "//test/xts/device_attest_lite/framework:devattest_client" ] 31 } 32 33 cflags = [ "-Wno-error" ] 34 ldflags = [ 35 "-lstdc++", 36 "-lm", 37 "-lpthread", 38 "-s", 39 ] 40} 41 42copy("query_copy") { 43 sources = [ "$root_out_dir/bin/querySmall.bin" ] 44 outputs = [ "$root_out_dir/suites/acts/resource/tools/querySmall.bin" ] 45 deps = [ ":querySmall" ] 46} 47 48group("libQuery") { 49 if (ohos_kernel_type == "liteos_a" || ohos_kernel_type == "linux") { 50 deps = [ 51 ":querySmall", 52 ":query_copy", 53 ] 54 } 55} 56