BUILD.gn 919 B

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