Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit c748410

Browse files
authored
Abbreviate names of intermediate generated targets in testing.gni. (#18617)
1 parent c9f9891 commit c748410

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

testing/testing.gni

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ template("fixtures_location") {
2929
# Array of source lines. We use a list to ensure a trailing newline is
3030
# emitted by write_file() to comply with -Wnewline-eof.
3131
location_source = [ "namespace flutter {namespace testing {const char* GetFixturesPath() {return \"$location_path\";}}}" ]
32-
location_source_path = "$target_gen_dir/fixtures_location$target_name.cc"
32+
location_source_path = "$target_gen_dir/_fl_$target_name.cc"
3333

3434
write_file(location_source_path, location_source)
3535

@@ -160,7 +160,7 @@ template("dart_snapshot") {
160160

161161
testonly = true
162162

163-
dart_snapshot_kernel_target_name = "dart_snapshot_kernel_$target_name"
163+
dart_snapshot_kernel_target_name = "_dsk_$target_name"
164164
dart_snapshot_kernel_path = "$target_gen_dir/assets/kernel_blob.bin"
165165
dart_snapshot_kernel(dart_snapshot_kernel_target_name) {
166166
dart_main = invoker.dart_main
@@ -171,7 +171,7 @@ template("dart_snapshot") {
171171
snapshot_public_deps = [ ":$dart_snapshot_kernel_target_name" ]
172172

173173
if (is_aot_test) {
174-
dart_snapshot_aot_target_name = "dart_snapshot_aot_$target_name"
174+
dart_snapshot_aot_target_name = "_dsa_$target_name"
175175
dart_snapshot_aot(dart_snapshot_aot_target_name) {
176176
dart_kernel = dart_snapshot_kernel_path
177177
deps = [
@@ -240,7 +240,7 @@ template("copy_fixtures") {
240240
template("test_fixtures") {
241241
# Even if no fixtures are present, the location of the fixtures directory
242242
# must always be known to tests.
243-
fixtures_location_target_name = "fixtures_location_$target_name"
243+
fixtures_location_target_name = "_fl_$target_name"
244244
fixtures_location(fixtures_location_target_name) {
245245
if (is_fuchsia) {
246246
assets_dir = "/pkg/data/assets"
@@ -253,7 +253,7 @@ template("test_fixtures") {
253253

254254
# If the fixtures are specified, copy them to the assets directory.
255255
if (defined(invoker.fixtures)) {
256-
copy_fixtures_target_name = "copy_fixtures_$target_name"
256+
copy_fixtures_target_name = "_cf_$target_name"
257257
copy_fixtures(copy_fixtures_target_name) {
258258
fixtures = invoker.fixtures
259259
}
@@ -263,7 +263,7 @@ template("test_fixtures") {
263263
# If a Dart file is specified, snapshot it and place it in the generated
264264
# assets directory.
265265
if (defined(invoker.dart_main)) {
266-
dart_snapshot_target_name = "dart_snapshot_$target_name"
266+
dart_snapshot_target_name = "_ds_$target_name"
267267
dart_snapshot(dart_snapshot_target_name) {
268268
dart_main = invoker.dart_main
269269
}

0 commit comments

Comments
 (0)