BUILD.gn 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. # Copyright (c) 2021 Project CHIP Authors
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. import("//build_overrides/build.gni")
  15. import("//build_overrides/chip.gni")
  16. import("//build_overrides/pigweed.gni")
  17. import("$dir_pw_build/python_dist.gni")
  18. # This target creates a single Python package and wheel for yamltests. It will
  19. # merge all Python dependencies Matter. The output is located in:
  20. # out/obj/matter_yamltests_distribution/ <- source files here
  21. # out/obj/matter_yamltests_distribution._build_wheel/matter_yamltests-0.0.1-py3-none-any.whl
  22. pw_python_distribution("matter_yamltests_distribution") {
  23. packages = [ "${chip_root}/scripts/py_matter_yamltests:matter_yamltests" ]
  24. generate_setup_cfg = {
  25. name = "matter_yamltests"
  26. version = "0.0.1"
  27. include_default_pyproject_file = true
  28. append_date_to_version = true
  29. }
  30. }