fuchsia: Update mini_chromium/Crashpad build for SDK reorg Bug: crashpad:196 Change-Id: Ib2c27204c381c61ae48f9d33a74ba673fe01fedb Reviewed-on: https://chromium-review.googlesource.com/1035921 Reviewed-by: Joshua Peraza <jperaza@chromium.org>
diff --git a/build/BUILD.gn b/build/BUILD.gn index f67f075..31936e3 100644 --- a/build/BUILD.gn +++ b/build/BUILD.gn
@@ -120,6 +120,24 @@ common_flags += [ "--sysroot=" + sysroot_path ] } } + + if (mini_chromium_is_fuchsia) { + common_flags += [ + # The Fuchsia SDK no longer dumps everything in the sysroot, preferring + # the layout described in + # https://fuchsia.googlesource.com/docs/+/master/development/sdk/layout.md. + # Eventually /sysroot will be replaced by /pkg/system, but this work is + # not yet complete. + "-isystem", + rebase_path(fuchsia_sdk + "/pkg/crypto/include", root_build_dir), + "-isystem", + rebase_path(fuchsia_sdk + "/pkg/launchpad/include", root_build_dir), + "-isystem", + rebase_path(fuchsia_sdk + "/pkg/ssl/include", root_build_dir), + ] + + lib_dirs = [ fuchsia_sdk + "/arch/$target_cpu/lib" ] + } } if (mini_chromium_is_mac) {