# 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.

# Options from standalone-chip.mk that differ from configure defaults. These
# options are used from examples/.

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

import("${chip_root}/build/chip/tests.gni")
import("${chip_root}/src/tracing/tracing_args.gni")

declare_args() {
  chip_build_pw_rpc_lib = false
}

group("esp32") {
  deps = [
    "${chip_root}/src/lib",
    matter_trace_config,
  ]

  if (chip_build_pw_rpc_lib) {
    deps += [ "//lib/pw_rpc" ]
  }

  if (chip_build_tests) {
    deps += [ "${chip_root}/src:tests" ]
  }
}
