12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
+ import (" //build_overrides/build.gni" )
15
16
import (" //build_overrides/chip.gni" )
16
17
import (" //build_overrides/mbedtls.gni" )
17
18
import (" //build_overrides/nlassert.gni" )
18
19
import (" //build_overrides/nlio.gni" )
19
20
import (" //build_overrides/nlunit_test.gni" )
20
21
import (" //build_overrides/pigweed.gni" )
22
+
21
23
import (" //src/platform/device.gni" )
22
24
import (" $dir_pw_build /python.gni" )
23
25
24
26
# This build file should not be used in superproject builds.
25
27
assert (chip_root == " //" )
26
28
27
- import (" ${ chip_root } /build /chip/tests.gni" )
28
- import (" ${ chip_root } /build /chip/tools.gni" )
29
+ import (" ${ build_root } /chip/tests.gni" )
30
+ import (" ${ build_root } /chip/tools.gni" )
29
31
30
32
if (current_toolchain != " ${ dir_pw_toolchain } /dummy:dummy" ) {
31
33
declare_args () {
@@ -115,7 +117,7 @@ if (current_toolchain != "${dir_pw_toolchain}/dummy:dummy") {
115
117
}
116
118
} else {
117
119
# This is the unified build. Configure various real toolchains.
118
- import (" ${ chip_root } /build /chip/chip_build.gni" )
120
+ import (" ${ build_root } /chip/chip_build.gni" )
119
121
declare_args () {
120
122
# Set this to false to disable all builds by default.
121
123
enable_default_builds = true
@@ -179,13 +181,13 @@ if (current_toolchain != "${dir_pw_toolchain}/dummy:dummy") {
179
181
180
182
if (enable_host_clang_build ) {
181
183
chip_build (" host_clang" ) {
182
- toolchain = " //build /toolchain/host:${ host_os } _${ host_cpu } _clang"
184
+ toolchain = " ${ build_root } /toolchain/host:${ host_os } _${ host_cpu } _clang"
183
185
}
184
186
}
185
187
186
188
if (enable_host_gcc_build ) {
187
189
chip_build (" host_gcc" ) {
188
- toolchain = " //build /toolchain/host:${ host_os } _${ host_cpu } _gcc"
190
+ toolchain = " ${ build_root } /toolchain/host:${ host_os } _${ host_cpu } _gcc"
189
191
}
190
192
}
191
193
@@ -197,19 +199,19 @@ if (current_toolchain != "${dir_pw_toolchain}/dummy:dummy") {
197
199
198
200
if (enable_android_builds ) {
199
201
chip_build (" android_arm" ) {
200
- toolchain = " //build /toolchain/android:android_arm"
202
+ toolchain = " ${ build_root } /toolchain/android:android_arm"
201
203
}
202
204
203
205
chip_build (" android_arm64" ) {
204
- toolchain = " //build /toolchain/android:android_arm64"
206
+ toolchain = " ${ build_root } /toolchain/android:android_arm64"
205
207
}
206
208
207
209
chip_build (" android_x64" ) {
208
- toolchain = " //build /toolchain/android:android_x64"
210
+ toolchain = " ${ build_root } /toolchain/android:android_x64"
209
211
}
210
212
211
213
chip_build (" android_x86" ) {
212
- toolchain = " //build /toolchain/android:android_x86"
214
+ toolchain = " ${ build_root } /toolchain/android:android_x86"
213
215
}
214
216
}
215
217
0 commit comments