blob: 04d27523d083071115324f5d12fa26f87881d152 [file] [log] [blame]
Rob Mohrd45e2342020-03-03 15:02:18 -08001# 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 Montanezfb3d3fb2020-06-09 18:12:12 -070015import("//build_overrides/pigweed.gni")
Rob Mohrd45e2342020-03-03 15:02:18 -080016
Rob Mohr0d644f62021-02-24 16:15:51 -080017import("$dir_pw_build/python.gni")
Armando Montanezfb3d3fb2020-06-09 18:12:12 -070018import("$dir_pw_docgen/docs.gni")
Wyatt Heplerd49f8fe2020-10-15 10:13:47 -070019
Rob Mohrd45e2342020-03-03 15:02:18 -080020pw_doc_group("docs") {
Rob Mohr43d36112020-09-09 13:38:13 -070021 inputs = [ "doc_resources/pw_env_setup_output.png" ]
Rob Mohrd45e2342020-03-03 15:02:18 -080022 sources = [ "docs.rst" ]
23}
Rob Mohr0d644f62021-02-24 16:15:51 -080024
25pw_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 Hepler8f4a0962021-03-11 16:39:21 -080038 "$dir_pw_log_tokenized/py",
Rob Mohr0d644f62021-02-24 16:15:51 -080039 "$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 Heplera3ca62a2021-05-04 16:21:43 -070055 "$dir_pw_third_party/nanopb:generate_nanopb_proto",
Rob Mohr0d644f62021-02-24 16:15:51 -080056 ]
57}
58
59# Python packages for supporting specific targets.
60pw_python_group("target_support_packages") {
61 python_deps = [
62 "$dir_pigweed/targets/lm3s6965evb-qemu/py",
63 "$dir_pigweed/targets/stm32f429i-disc1/py",
64 ]
65}