chromium-src-build/linux/BUILD.gn

58 строки
1.8 KiB
Plaintext
Исходник Обычный вид История

# Copyright (c) 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/features.gni")
import("//build/config/linux/pkg_config.gni")
if (use_gio) {
pkg_config("gio_config") {
packages = [ "gio-2.0" ]
# glib >=2.40 deprecate g_settings_list_schemas in favor of
# g_settings_schema_source_list_schemas. This function is not available on
# earlier versions that we still need to support (specifically, 2.32), so
# disable the warning with the GLIB_DISABLE_DEPRECATION_WARNINGS define.
# TODO(mgiuca): Remove this suppression when we drop support for Ubuntu
# 13.10 (saucy) and earlier. Update the code to use
# g_settings_schema_source_list_schemas instead.
defines = [
"USE_GIO",
"GLIB_DISABLE_DEPRECATION_WARNINGS",
]
# TODO(brettw) Theoretically I think ignore_libs should be set so that we
# don't link directly to GIO and use the loader generated below. But the
# gio target in GYP doesn't make any sense to me and appears to link
# directly to GIO in addition to making a loader. This this uncommented,
# the link in component build fails, so I think this is closer to the
# GYP build.
#ignore_libs = true # Loader generated below.
}
deps = [
"//build/linux/libgio",
]
}
# Looking for libspeechd? Use //third_party/speech-dispatcher
group("fontconfig") {
if (is_chromecast) {
# Chromecast platform does not provide fontconfig
public_deps = [
"//third_party/fontconfig",
]
} else {
public_configs = [ "//build/config/linux:fontconfig" ]
}
}
if (!is_chromecast) {
pkg_config("freetype_from_pkgconfig") {
visibility = [ ":freetype2" ]
packages = [ "freetype2" ]
}
}
Revert of Statically link own version of FreeType on Linux (patchset #3 id:40001 of https://codereview.chromium.org/2863063003/ ) Reason for revert: Deps change picked up by official builder: https://luci-milo.appspot.com/buildbot/chromium.chrome/Google%20Chrome%20Linux%20x64/17727 Please remove freetype from these files: chrome/installer/linux/debian/expected_deps_ia32_jessie chrome/installer/linux/debian/expected_deps_x64_jessie chrome/installer/linux/rpm/expected_deps_i386 chrome/installer/linux/rpm/expected_deps_x86_64 Original issue's description: > Statically link own version of FreeType on Linux > > For color font support, CFF and CFF2 rasterization, and OpenType font > variations, latest security fixes, Chrome needs an up-to-date version of > FreeType (more details on the bug). Since distributions are too far > behind in the shipped system FreeType versions, we need to start linking > in our own copy. > > For distributions that build their own Chromium this CL introduces a > switch use_system_freetype which can be used to keep the old linking > configuration at the expense of risking introduction of text rendering > and security regressions if the system FreeType is too old. > > BUG=274030 > > Review-Url: https://codereview.chromium.org/2863063003 > Cr-Commit-Position: refs/heads/master@{#470097} > Committed: https://chromium.googlesource.com/chromium/src/+/c15bda3bf4bbe231186176da9d809fed356f8cbf TBR=vapier@chromium.org,bungeman@chromium.org,dpranke@chromium.org,eae@chromium.org,drott@chromium.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=274030 Review-Url: https://codereview.chromium.org/2868793004 Cr-Original-Commit-Position: refs/heads/master@{#470149} Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src Cr-Mirrored-Commit: 52eb504ead78db774e2e21307e6322c1f7ce867f
2017-05-09 01:18:55 +03:00