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

[gn] embed mac codesign metadata in android artifacts #37951

Merged
merged 2 commits into from
Nov 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions shell/platform/android/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,12 @@ zip_bundle("android_javadoc") {
deps = [ ":gen_android_javadoc" ]
}

generated_file("android_entitlement_config") {
outputs = [ "$target_gen_dir/android_entitlements.txt" ]
contents = [ "gen_snapshot" ]
deps = []
}

if (target_cpu != "x86") {
zip_bundle("gen_snapshot") {
gen_snapshot_bin = "gen_snapshot"
Expand Down Expand Up @@ -647,6 +653,16 @@ if (target_cpu != "x86") {
]

deps = [ "//third_party/dart/runtime/bin:gen_snapshot($host_toolchain)" ]

if (host_os == "mac") {
deps += [ ":android_entitlement_config" ]
files += [
{
source = "$target_gen_dir/android_entitlements.txt"
destination = "entitlements.txt"
},
]
}
}
}

Expand Down