Rob Mohr | d45e234 | 2020-03-03 15:02:18 -0800 | [diff] [blame] | 1 | # Copyright 2020 The Pigweed Authors |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); you may not |
| 4 | # use this file except in compliance with the License. You may obtain a copy of |
| 5 | # the License at |
| 6 | # |
| 7 | # https://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, WITHOUT |
| 11 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 12 | # License for the specific language governing permissions and limitations under |
| 13 | # the License. |
| 14 | |
Armando Montanez | fb3d3fb | 2020-06-09 18:12:12 -0700 | [diff] [blame] | 15 | import("//build_overrides/pigweed.gni") |
Rob Mohr | d45e234 | 2020-03-03 15:02:18 -0800 | [diff] [blame] | 16 | |
Rob Mohr | 0d644f6 | 2021-02-24 16:15:51 -0800 | [diff] [blame] | 17 | import("$dir_pw_build/python.gni") |
Armando Montanez | fb3d3fb | 2020-06-09 18:12:12 -0700 | [diff] [blame] | 18 | import("$dir_pw_docgen/docs.gni") |
Wyatt Hepler | d49f8fe | 2020-10-15 10:13:47 -0700 | [diff] [blame] | 19 | |
Rob Mohr | d45e234 | 2020-03-03 15:02:18 -0800 | [diff] [blame] | 20 | pw_doc_group("docs") { |
Rob Mohr | 43d3611 | 2020-09-09 13:38:13 -0700 | [diff] [blame] | 21 | inputs = [ "doc_resources/pw_env_setup_output.png" ] |
Rob Mohr | d45e234 | 2020-03-03 15:02:18 -0800 | [diff] [blame] | 22 | sources = [ "docs.rst" ] |
| 23 | } |
Rob Mohr | 0d644f6 | 2021-02-24 16:15:51 -0800 | [diff] [blame] | 24 | |
| 25 | pw_python_group("python") { |
| 26 | python_deps = [ |
| 27 | # Python packages |
| 28 | "$dir_pw_allocator/py", |
| 29 | "$dir_pw_arduino_build/py", |
| 30 | "$dir_pw_bloat/py", |
| 31 | "$dir_pw_build/py", |
| 32 | "$dir_pw_cli/py", |
| 33 | "$dir_pw_cpu_exception_cortex_m/py", |
| 34 | "$dir_pw_docgen/py", |
| 35 | "$dir_pw_doctor/py", |
| 36 | "$dir_pw_env_setup/py", |
| 37 | "$dir_pw_hdlc/py", |
Wyatt Hepler | 8f4a096 | 2021-03-11 16:39:21 -0800 | [diff] [blame] | 38 | "$dir_pw_log_tokenized/py", |
Rob Mohr | 0d644f6 | 2021-02-24 16:15:51 -0800 | [diff] [blame] | 39 | "$dir_pw_module/py", |
| 40 | "$dir_pw_package/py", |
| 41 | "$dir_pw_presubmit/py", |
| 42 | "$dir_pw_protobuf/py", |
| 43 | "$dir_pw_protobuf_compiler/py", |
| 44 | "$dir_pw_rpc/py", |
| 45 | "$dir_pw_status/py", |
| 46 | "$dir_pw_tokenizer/py", |
| 47 | "$dir_pw_toolchain/py", |
| 48 | "$dir_pw_trace/py", |
| 49 | "$dir_pw_trace_tokenized/py", |
| 50 | "$dir_pw_unit_test/py", |
| 51 | "$dir_pw_watch/py", |
| 52 | |
| 53 | # Standalone scripts |
| 54 | "$dir_pw_hdlc/rpc_example:example_script", |
Wyatt Hepler | a3ca62a | 2021-05-04 16:21:43 -0700 | [diff] [blame] | 55 | "$dir_pw_third_party/nanopb:generate_nanopb_proto", |
Armando Montanez | fe5d6ba | 2021-05-12 13:09:52 -0700 | [diff] [blame] | 56 | |
| 57 | # Python requirements for CIPD packages that don't have dedicated modules. |
| 58 | ":renode_requirements", |
Rob Mohr | 0d644f6 | 2021-02-24 16:15:51 -0800 | [diff] [blame] | 59 | ] |
| 60 | } |
| 61 | |
| 62 | # Python packages for supporting specific targets. |
| 63 | pw_python_group("target_support_packages") { |
| 64 | python_deps = [ |
Rob Mohr | 3d61b32 | 2021-05-17 10:52:24 -0700 | [diff] [blame] | 65 | "$dir_pigweed/targets/lm3s6965evb_qemu/py", |
| 66 | "$dir_pigweed/targets/stm32f429i_disc1/py", |
Rob Mohr | 0d644f6 | 2021-02-24 16:15:51 -0800 | [diff] [blame] | 67 | ] |
| 68 | } |
Armando Montanez | fe5d6ba | 2021-05-12 13:09:52 -0700 | [diff] [blame] | 69 | |
| 70 | pw_python_requirements("renode_requirements") { |
| 71 | requirements = [ |
| 72 | "psutil", |
| 73 | "pyyaml", |
| 74 | "robotframework==3.1", |
| 75 | ] |
| 76 | } |