1 # Copyright 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.
5 import("//build/config/linux/pkg_config.gni")
7 assert(is_linux, "This file should only be referenced on Linux")
9 # Depend on //build/config/linux/gtk to use GTK.
11 # GN doesn't check visibility for configs so we give this an obviously internal
12 # name to discourage random targets from accidentally depending on this and
13 # bypassing the GTK target's visibility.
14 pkg_config("gtk_internal_config") {
15 # Gtk requires gmodule, but it does not list it as a dependency in some
16 # misconfigured systems.
24 # Basically no parts of Chrome should depend on GTK. To prevent accidents, the
25 # parts that explicitly need GTK are whitelisted on this target.
28 "//chrome/browser/ui/libgtk2ui",
29 "//gpu/gles2_conform_support:gles2_conform_test_windowless",
31 "//remoting/host/it2me:remote_assistance_host",
32 "//remoting/host:remoting_me2me_host_static",
34 public_configs = [ ":gtk_internal_config" ]
37 # Depend on "gtkprint" to get this.
38 pkg_config("gtkprint_internal_config") {
39 packages = [ "gtk+-unix-print-2.0" ]
43 visibility = [ "//chrome/browser/ui/libgtk2ui" ]
44 public_configs = [ ":gtkprint_internal_config" ]