blob: 0ac53a821ef3948eef7279d168eef84bc9a2df6a [file] [log] [blame]
Alexei Frolov844ff0f2020-05-06 12:15:29 -07001# Copyright 2020 The Pigweed Authors
Alexei Frolov1a82c142019-10-31 17:37:12 -07002#
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")
16
Armando Montanez0054a9b2020-03-13 13:06:24 -070017import("$dir_pw_docgen/docs.gni")
Alexei Frolov844ff0f2020-05-06 12:15:29 -070018import("arm_gcc/toolchains.gni")
19import("generate_toolchain.gni")
20import("host_clang/toolchains.gni")
21import("host_gcc/toolchains.gni")
Alexei Frolov1a82c142019-10-31 17:37:12 -070022
Alexei Frolov844ff0f2020-05-06 12:15:29 -070023# For each of the toolchains below, the toolchain GNI file has the corresponding
24# configs. This allows BUILDCONFIG.gn to set default target values on "flat"
25# lists of configs, i.e. not nested. This in turn allows individual targets
26# fine-grained control over which default configs they wise to override.
Alexei Frolov1a82c142019-10-31 17:37:12 -070027
Alexei Frolov844ff0f2020-05-06 12:15:29 -070028# Generate ARM GCC toolchains
29generate_toolchains("arm_gcc_suite") {
Armando Montanezfd5de702020-06-10 16:51:01 -070030 toolchains = pw_toolchain_arm_gcc_list
Alexei Frolov1a82c142019-10-31 17:37:12 -070031}
32
Alexei Frolov844ff0f2020-05-06 12:15:29 -070033# Generate Host GCC toolchains
Wyatt Heplercca0daf2019-11-14 11:29:04 -080034generate_toolchains("host_gcc_suite") {
Armando Montanez164624f2020-06-10 15:00:29 -070035 toolchains = pw_toolchain_host_gcc_list
Alexei Frolovc10c8122019-11-01 16:31:19 -070036}
Keir Mierle58671912019-11-14 00:15:41 -080037
Alexei Frolov844ff0f2020-05-06 12:15:29 -070038# Generate Host Clang toolchains
Keir Mierle58671912019-11-14 00:15:41 -080039generate_toolchains("host_clang_suite") {
Armando Montanez164624f2020-06-10 15:00:29 -070040 toolchains = pw_toolchain_host_clang_list
Keir Mierle58671912019-11-14 00:15:41 -080041}
Armando Montanez0054a9b2020-03-13 13:06:24 -070042
43pw_doc_group("docs") {
44 sources = [ "docs.rst" ]
45}