Fix for x86_64 build fail
[platform/upstream/connectedhomeip.git] / third_party / pigweed / repo / pw_toolchain / BUILD.gn
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
15 import("//build_overrides/pigweed.gni")
16
17 import("$dir_pw_docgen/docs.gni")
18 import("arm_gcc/toolchains.gni")
19 import("generate_toolchain.gni")
20 import("host_clang/toolchains.gni")
21 import("host_gcc/toolchains.gni")
22
23 # 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.
27
28 # Generate ARM GCC toolchains
29 generate_toolchains("arm_gcc_suite") {
30   toolchains = pw_toolchain_arm_gcc_list
31 }
32
33 # Generate Host GCC toolchains
34 generate_toolchains("host_gcc_suite") {
35   toolchains = pw_toolchain_host_gcc_list
36 }
37
38 # Generate Host Clang toolchains
39 generate_toolchains("host_clang_suite") {
40   toolchains = pw_toolchain_host_clang_list
41 }
42
43 pw_doc_group("docs") {
44   sources = [ "docs.rst" ]
45 }