Skip to content

Commit 9ebbc6e

Browse files
authored
Standardize the embedder file name. (#31723)
1 parent e97c801 commit 9ebbc6e

File tree

2 files changed

+26
-10
lines changed

2 files changed

+26
-10
lines changed

build/archives/BUILD.gn

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ zip_bundle("artifacts") {
4242
}
4343
}
4444

45-
if (host_os == "linux") {
46-
group("linux-embedder") {
47-
deps = [ "//flutter/shell/platform/embedder:linux-embedder-archive" ]
45+
if (host_os == "linux" || host_os == "win") {
46+
group("embedder") {
47+
deps = [ "//flutter/shell/platform/embedder:embedder-archive" ]
4848
}
4949
}
5050

shell/platform/embedder/BUILD.gn

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -428,9 +428,9 @@ group("flutter_engine") {
428428
}
429429
}
430430

431-
if (host_os == "linux") {
432-
zip_bundle("linux-embedder-archive") {
433-
output = "${host_os}-${target_cpu}/${host_os}-${target_cpu}-embedder"
431+
if (host_os == "linux" || host_os == "win") {
432+
zip_bundle("embedder-archive") {
433+
output = "$full_platform_name/$full_platform_name-embedder.zip"
434434
deps = [
435435
"//flutter/shell/platform/embedder:copy_headers",
436436
"//flutter/shell/platform/embedder:flutter_engine_library",
@@ -440,10 +440,26 @@ if (host_os == "linux") {
440440
source = "$root_out_dir/flutter_embedder.h"
441441
destination = "flutter_embedder.h"
442442
},
443-
{
444-
source = "$root_out_dir/libflutter_engine.so"
445-
destination = "libflutter_engine.so"
446-
},
447443
]
444+
if (host_os == "linux") {
445+
files += [
446+
{
447+
source = "$root_out_dir/libflutter_engine.so"
448+
destination = "libflutter_engine.so"
449+
},
450+
]
451+
}
452+
if (host_os == "win") {
453+
files += [
454+
{
455+
source = "$root_out_dir/flutter_engine.dll"
456+
destination = "flutter_engine.dll"
457+
},
458+
{
459+
source = "$root_out_dir/flutter_engine.dll.lib"
460+
destination = "flutter_engine.dll.lib"
461+
},
462+
]
463+
}
448464
}
449465
}

0 commit comments

Comments
 (0)