blob: 3d3e5340ebfb1dc45ae41cb9af7249aa9d172102 [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
Alexei Frolove2016762019-11-14 13:49:52 -080025dir_pw_bloat = "$dir_pigweed/pw_bloat"
Alexei Frolov1a82c142019-10-31 17:37:12 -070026dir_pw_build = "$dir_pigweed/pw_build"
Armando Montanez5104cd62019-12-10 14:36:43 -080027dir_pw_cpu_exception = "$dir_pigweed/pw_cpu_exception"
28dir_pw_cpu_exception_armv7m = "$dir_pigweed/pw_cpu_exception_armv7m"
Alexei Frolovbaaa2d62019-11-12 16:20:51 -080029dir_pw_docgen = "$dir_pigweed/pw_docgen"
Rob Mohrf82e7a82020-01-03 13:50:11 -080030dir_pw_doctor = "$dir_pigweed/pw_doctor"
Armando Montanez68de0712019-11-14 18:29:39 -080031dir_pw_dumb_io = "$dir_pigweed/pw_dumb_io"
Armando Montaneza69244e2019-11-15 11:25:10 -080032dir_pw_dumb_io_baremetal_stm32f429 =
33 "$dir_pigweed/pw_dumb_io_baremetal_stm32f429"
Armando Montanez68de0712019-11-14 18:29:39 -080034dir_pw_dumb_io_stdio = "$dir_pigweed/pw_dumb_io_stdio"
Keir Mierlec34f71f2019-12-06 12:44:47 -080035dir_pw_module = "$dir_pigweed/pw_module"
Alexei Frolovc10c8122019-11-01 16:31:19 -070036dir_pw_preprocessor = "$dir_pigweed/pw_preprocessor"
Wyatt Hepleree3e02f2019-12-05 10:52:31 -080037dir_pw_presubmit = "$dir_pigweed/pw_presubmit"
Alexei Frolovbbf164c2019-12-16 12:51:59 -080038dir_pw_protobuf = "$dir_pigweed/pw_protobuf"
Alexei Frolov942adf02019-12-11 17:07:28 -080039dir_pw_protobuf_compiler = "$dir_pigweed/pw_protobuf_compiler"
Wyatt Hepler77105652019-11-06 17:50:03 -080040dir_pw_span = "$dir_pigweed/pw_span"
Alexei Frolov1a82c142019-10-31 17:37:12 -070041dir_pw_status = "$dir_pigweed/pw_status"
Wyatt Hepler48db4d62019-11-11 10:32:45 -080042dir_pw_string = "$dir_pigweed/pw_string"
Alexei Frolov300dcea2019-12-23 13:33:59 -080043dir_pw_target_runner = "$dir_pigweed/pw_target_runner"
Alexei Frolov1a82c142019-10-31 17:37:12 -070044dir_pw_toolchain = "$dir_pigweed/pw_toolchain"
Alexei Frolovc10c8122019-11-01 16:31:19 -070045dir_pw_unit_test = "$dir_pigweed/pw_unit_test"
Alexei Frolov82d3cb32019-11-27 14:38:39 -080046dir_pw_varint = "$dir_pigweed/pw_varint"