blob: d6647d7e7d5e5e244a529ef4c8f595c122308024 [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"
26dir_pw_status = "$dir_pigweed/pw_status"
27dir_pw_toolchain = "$dir_pigweed/pw_toolchain"