blob: 7fe69dc8e9610fd3e1c55a43c9b0e2a67352c88c [file] [log] [blame]
Alexei Frolov1a82c142019-10-31 17:37:12 -07001# 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
19declare_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
25dir_pw_build = "$dir_pigweed/pw_build"
Alexei Frolovbaaa2d62019-11-12 16:20:51 -080026dir_pw_docgen = "$dir_pigweed/pw_docgen"
Alexei Frolovc10c8122019-11-01 16:31:19 -070027dir_pw_preprocessor = "$dir_pigweed/pw_preprocessor"
Wyatt Hepler77105652019-11-06 17:50:03 -080028dir_pw_span = "$dir_pigweed/pw_span"
Alexei Frolov1a82c142019-10-31 17:37:12 -070029dir_pw_status = "$dir_pigweed/pw_status"
30dir_pw_toolchain = "$dir_pigweed/pw_toolchain"
Alexei Frolovc10c8122019-11-01 16:31:19 -070031dir_pw_unit_test = "$dir_pigweed/pw_unit_test"