2015-08-29 00:48:04 +03:00
|
|
|
# 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")
|
2017-10-09 18:35:00 +03:00
|
|
|
import("//build/config/freetype/freetype.gni")
|
2015-08-29 00:48:04 +03:00
|
|
|
import("//build/config/linux/pkg_config.gni")
|
|
|
|
|
2015-11-11 19:24:25 +03:00
|
|
|
if (use_gio) {
|
2015-08-29 00:48:04 +03:00
|
|
|
pkg_config("gio_config") {
|
|
|
|
packages = [ "gio-2.0" ]
|
|
|
|
|
2017-12-08 05:40:38 +03:00
|
|
|
defines = [ "USE_GIO" ]
|
2015-08-29 00:48:04 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# Looking for libspeechd? Use //third_party/speech-dispatcher
|
|
|
|
|
2017-10-09 18:35:00 +03:00
|
|
|
if (use_system_freetype) {
|
|
|
|
assert(!is_chromecast)
|
|
|
|
|
2017-05-09 13:09:52 +03:00
|
|
|
# Only provided for distributions which prefer to keep linking to FreeType on
|
|
|
|
# the system, use with caution,for details see build/config/freetype/BUILD.gn.
|
2017-03-24 20:50:23 +03:00
|
|
|
pkg_config("freetype_from_pkgconfig") {
|
2017-10-09 18:35:00 +03:00
|
|
|
visibility = [
|
|
|
|
"//third_party:freetype_harfbuzz",
|
|
|
|
"//third_party/harfbuzz-ng:harfbuzz_source",
|
|
|
|
]
|
2016-04-25 18:47:13 +03:00
|
|
|
packages = [ "freetype2" ]
|
|
|
|
}
|
|
|
|
}
|