Skip to content

Commit

Permalink
[darwin-framework-tool] Make some parts of examples/darwin-framework-…
Browse files Browse the repository at this point in the history
…tool/BUILD.gn a bit more generic when it comes to SDKROOT variants (#23113)
  • Loading branch information
vivien-apple authored and pull[bot] committed Mar 4, 2023
1 parent 224a1ea commit 2ae9919
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions examples/darwin-framework-tool/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@ declare_args() {
chip_codesign = current_os == "ios"
}

if (current_os == "ios") {
output_sdk_type = "Debug-iphoneos"
} else {
output_sdk_type = "Debug"
sdk_build_dir_suffix = ""
if (getenv("SDKROOT") != "") {
sdk_root_parts = string_split(getenv("SDKROOT"), ".")
sdk_build_dir_suffix = "-${sdk_root_parts[0]}"
}
output_sdk_type = "Debug${sdk_build_dir_suffix}"

action("build-darwin-framework") {
script = "${chip_root}/scripts/build/build_darwin_framework.py"
Expand Down

0 comments on commit 2ae9919

Please sign in to comment.