# Copyright (c) 2020 Project CHIP Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import("//build_overrides/chip.gni")

import("${chip_root}/src/platform/device.gni")

declare_args() {
  # Enable building tests.
  chip_build_tests = current_os != "freertos"

  # Enable happy tests.
  chip_enable_happy_tests = false
}

declare_args() {
  # Build executables for running individual tests.
  chip_link_tests =
      chip_build_tests && (current_os == "linux" || current_os == "mac")
}

declare_args() {
  # Enable use of nlfaultinjection.
  chip_with_nlfaultinjection = chip_build_tests
}
