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