BUILD.gn 1.1 KB

12345678910111213141516171819202122232425262728
  1. # Copyright 2020 The Chromium Authors. All rights reserved.
  2. # Use of this source code is governed by a BSD-style license that can be
  3. # found in the LICENSE file.
  4. import("//build/config/python.gni")
  5. import("//build/util/process_version.gni")
  6. python_library("lacros_resource_sizes_py") {
  7. pydeps_file = "lacros_resource_sizes.pydeps"
  8. data = [ "//buildtools/third_party/eu-strip/bin/eu-strip" ]
  9. data_deps = [
  10. "//build/util:test_results",
  11. "//third_party/catapult/tracing:convert_chart_json",
  12. ]
  13. }
  14. # Lacros is built with "{arch}-generic" configuration. However, in Chrome
  15. # OS, it is just "one board variation", so the libraries on the *-generic
  16. # boards may not be compatible with the ones on the actual DUTs.
  17. # One of the common pattern recently we hit is symbols exposed by libgcc.
  18. # The symbols start to be exposed recently because of libunwind transition
  19. # and along with it they are or are not re-exposed by other libraries, too,
  20. # depending on per-board implementation.
  21. # To mitigate the situation, marking -shared-libgcc to look up the system
  22. # libgcc always.
  23. config("optional_shared_libgcc") {
  24. ldflags = [ "-shared-libgcc" ]
  25. }