Alexei Frolov | 844ff0f | 2020-05-06 12:15:29 -0700 | [diff] [blame] | 1 | # Copyright 2020 The Pigweed Authors |
Alexei Frolov | 1a82c14 | 2019-10-31 17:37:12 -0700 | [diff] [blame] | 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 | # gn-format disable |
| 16 | import("//build_overrides/pigweed.gni") |
| 17 | |
Armando Montanez | 0054a9b | 2020-03-13 13:06:24 -0700 | [diff] [blame] | 18 | import("$dir_pw_docgen/docs.gni") |
Alexei Frolov | 844ff0f | 2020-05-06 12:15:29 -0700 | [diff] [blame] | 19 | import("arm_gcc/toolchains.gni") |
| 20 | import("generate_toolchain.gni") |
| 21 | import("host_clang/toolchains.gni") |
| 22 | import("host_gcc/toolchains.gni") |
Alexei Frolov | 1a82c14 | 2019-10-31 17:37:12 -0700 | [diff] [blame] | 23 | |
Alexei Frolov | 844ff0f | 2020-05-06 12:15:29 -0700 | [diff] [blame] | 24 | # For each of the toolchains below, the toolchain GNI file has the corresponding |
| 25 | # configs. This allows BUILDCONFIG.gn to set default target values on "flat" |
| 26 | # lists of configs, i.e. not nested. This in turn allows individual targets |
| 27 | # fine-grained control over which default configs they wise to override. |
Alexei Frolov | 1a82c14 | 2019-10-31 17:37:12 -0700 | [diff] [blame] | 28 | |
Alexei Frolov | 844ff0f | 2020-05-06 12:15:29 -0700 | [diff] [blame] | 29 | # Generate ARM GCC toolchains |
| 30 | generate_toolchains("arm_gcc_suite") { |
Armando Montanez | fd5de70 | 2020-06-10 16:51:01 -0700 | [diff] [blame] | 31 | toolchains = pw_toolchain_arm_gcc_list |
Alexei Frolov | 1a82c14 | 2019-10-31 17:37:12 -0700 | [diff] [blame] | 32 | } |
| 33 | |
Alexei Frolov | 844ff0f | 2020-05-06 12:15:29 -0700 | [diff] [blame] | 34 | # Generate Host GCC toolchains |
Wyatt Hepler | cca0daf | 2019-11-14 11:29:04 -0800 | [diff] [blame] | 35 | generate_toolchains("host_gcc_suite") { |
Armando Montanez | 164624f | 2020-06-10 15:00:29 -0700 | [diff] [blame] | 36 | toolchains = pw_toolchain_host_gcc_list |
Alexei Frolov | c10c812 | 2019-11-01 16:31:19 -0700 | [diff] [blame] | 37 | } |
Keir Mierle | 5867191 | 2019-11-14 00:15:41 -0800 | [diff] [blame] | 38 | |
Alexei Frolov | 844ff0f | 2020-05-06 12:15:29 -0700 | [diff] [blame] | 39 | # Generate Host Clang toolchains |
Keir Mierle | 5867191 | 2019-11-14 00:15:41 -0800 | [diff] [blame] | 40 | generate_toolchains("host_clang_suite") { |
Armando Montanez | 164624f | 2020-06-10 15:00:29 -0700 | [diff] [blame] | 41 | toolchains = pw_toolchain_host_clang_list |
Keir Mierle | 5867191 | 2019-11-14 00:15:41 -0800 | [diff] [blame] | 42 | } |
Armando Montanez | 0054a9b | 2020-03-13 13:06:24 -0700 | [diff] [blame] | 43 | |
| 44 | pw_doc_group("docs") { |
| 45 | sources = [ "docs.rst" ] |
| 46 | } |