| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 # Generates a header with preprocessor defines specified by the build file. | 5 # Generates a header with preprocessor defines specified by the build file. |
| 6 # The GYP version of this (with instructions) is build/buildflag_header.gypi. | |
| 7 # | 6 # |
| 8 # The flags are converted to function-style defines with mangled names and | 7 # The flags are converted to function-style defines with mangled names and |
| 9 # code uses an accessor macro to access the values. This is to try to | 8 # code uses an accessor macro to access the values. This is to try to |
| 10 # minimize bugs where code checks whether something is defined or not, and | 9 # minimize bugs where code checks whether something is defined or not, and |
| 11 # the proper header isn't included, meaning the answer will always be silently | 10 # the proper header isn't included, meaning the answer will always be silently |
| 12 # false or might vary across the code base. | 11 # false or might vary across the code base. |
| 13 # | 12 # |
| 14 # In the GN template, specify build flags in the template as a list | 13 # In the GN template, specify build flags in the template as a list |
| 15 # of strings that encode key/value pairs like this: | 14 # of strings that encode key/value pairs like this: |
| 16 # | 15 # |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 | 128 |
| 130 forward_variables_from(invoker, | 129 forward_variables_from(invoker, |
| 131 [ | 130 [ |
| 132 "deps", | 131 "deps", |
| 133 "public_deps", | 132 "public_deps", |
| 134 "testonly", | 133 "testonly", |
| 135 "visibility", | 134 "visibility", |
| 136 ]) | 135 ]) |
| 137 } | 136 } |
| 138 } | 137 } |
| OLD | NEW |