BUILD.gn (962B)
1 # Copyright 2015 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 5 import("//chromium/build/config/features.gni") 6 import("//chromium/build/config/freetype/freetype.gni") 7 import("//chromium/build/config/linux/pkg_config.gni") 8 9 if (use_gio) { 10 pkg_config("gio_config") { 11 packages = [ 12 "gio-2.0", 13 "gio-unix-2.0", 14 ] 15 16 defines = [ "USE_GIO" ] 17 } 18 } 19 20 # Looking for libspeechd? Use //third_party/speech-dispatcher 21 22 if (use_system_freetype) { 23 assert(!is_castos) 24 25 # Only provided for distributions which prefer to keep linking to FreeType on 26 # the system, use with caution,for details see build/config/freetype/BUILD.gn. 27 pkg_config("freetype_from_pkgconfig") { 28 visibility = [ 29 "//chromium/build/config/freetype:freetype", 30 "//third_party:freetype_harfbuzz", 31 "//third_party/harfbuzz-ng:harfbuzz_source", 32 ] 33 packages = [ "freetype2" ] 34 } 35 }