131c75014Sopenharmony_ci# Copyright (c) 2020-2021 Huawei Device Co., Ltd.
231c75014Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
331c75014Sopenharmony_ci# you may not use this file except in compliance with the License.
431c75014Sopenharmony_ci# You may obtain a copy of the License at
531c75014Sopenharmony_ci#
631c75014Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
731c75014Sopenharmony_ci#
831c75014Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
931c75014Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
1031c75014Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1131c75014Sopenharmony_ci# See the License for the specific language governing permissions and
1231c75014Sopenharmony_ci# limitations under the License.
1331c75014Sopenharmony_ciimport("//build/lite/config/component/lite_component.gni")
1431c75014Sopenharmony_ci
1531c75014Sopenharmony_cilite_component("tools") {
1631c75014Sopenharmony_ci  features = []
1731c75014Sopenharmony_ci  if (ohos_build_type == "debug") {
1831c75014Sopenharmony_ci    if (ohos_kernel_type == "liteos_m") {
1931c75014Sopenharmony_ci      features += [ "//test/xts/tools/lite/hctest" ]
2031c75014Sopenharmony_ci    } else if (ohos_kernel_type == "liteos_a" || ohos_kernel_type == "linux") {
2131c75014Sopenharmony_ci      features += [ "//test/xts/tools/lite/hcpptest" ]
2231c75014Sopenharmony_ci    }
2331c75014Sopenharmony_ci  }
2431c75014Sopenharmony_ci}
2531c75014Sopenharmony_ci
2631c75014Sopenharmony_cigenerate_notice_file("tools_notice_file") {
2731c75014Sopenharmony_ci  module_name = "tools"
2831c75014Sopenharmony_ci  module_source_dir_list = [
2931c75014Sopenharmony_ci    "//third_party/googletest",
3031c75014Sopenharmony_ci    "//third_party/unity",
3131c75014Sopenharmony_ci  ]
3231c75014Sopenharmony_ci}
33