Alexei Frolov | 1a82c14 | 2019-10-31 17:37:12 -0700 | [diff] [blame] | 1 | # Copyright 2019 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 | # This file defines a directory variable for each of Pigweed's modules. This |
| 16 | # allows modules to be moved or swapped out without breaking existing builds. |
| 17 | # All module variables are prefixed with dir_. |
| 18 | |
| 19 | declare_args() { |
| 20 | # Location of the Pigweed modules directory (defaults to the directory of |
| 21 | # this file). |
| 22 | dir_pigweed = get_path_info(get_path_info("BUILD.gn", "abspath"), "dir") |
| 23 | } |
| 24 | |
| 25 | dir_pw_build = "$dir_pigweed/pw_build" |
Alexei Frolov | baaa2d6 | 2019-11-12 16:20:51 -0800 | [diff] [blame^] | 26 | dir_pw_docgen = "$dir_pigweed/pw_docgen" |
Alexei Frolov | c10c812 | 2019-11-01 16:31:19 -0700 | [diff] [blame] | 27 | dir_pw_preprocessor = "$dir_pigweed/pw_preprocessor" |
Wyatt Hepler | 7710565 | 2019-11-06 17:50:03 -0800 | [diff] [blame] | 28 | dir_pw_span = "$dir_pigweed/pw_span" |
Alexei Frolov | 1a82c14 | 2019-10-31 17:37:12 -0700 | [diff] [blame] | 29 | dir_pw_status = "$dir_pigweed/pw_status" |
| 30 | dir_pw_toolchain = "$dir_pigweed/pw_toolchain" |
Alexei Frolov | c10c812 | 2019-11-01 16:31:19 -0700 | [diff] [blame] | 31 | dir_pw_unit_test = "$dir_pigweed/pw_unit_test" |