Home | History | Annotate | Download | only in linux
      1 # Copyright (c) 2013 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 
      5 import("pkg_config.gni")
      6 
      7 # Sets up the dynamic library search path to include our "lib" directory.
      8 config("executable_ldconfig") {
      9   ldflags = [
     10     # Want to pass "\$". Need to escape both '\' and '$'. GN will re-escape as
     11     # required for ninja.
     12     "-Wl,-rpath=\\\$ORIGIN/lib/",
     13 
     14     "-Wl,-rpath-link=lib/",
     15   ]
     16 }
     17 
     18 config("fontconfig") {
     19   libs = [ "fontconfig" ]
     20 }
     21 
     22 pkg_config("freetype2") {
     23   packages = [ "freetype2" ]
     24 }
     25 
     26 pkg_config("glib") {
     27   packages = [ "glib-2.0", "gmodule-2.0", "gobject-2.0", "gthread-2.0" ]
     28 }
     29 
     30 pkg_config("gtk") {
     31   # Gtk requires gmodule, but it does not list it as a dependency in some
     32   # misconfigured systems.
     33   packages = [ "gmodule-2.0", "gtk+-2.0", "gthread-2.0" ]
     34   defines = [ "TOOLKIT_GTK" ]
     35 }
     36 
     37 pkg_config("pangocairo") {
     38   packages = [ "pangocairo" ]
     39 }
     40 
     41 pkg_config("udev") {
     42   packages = [ "libudev" ]
     43 }
     44 
     45 config("x11") {
     46   # Don't bother running pkg-config for these X related libraries since it just
     47   # returns the same libs, and forking pkg-config is slow.
     48   defines = [ "USE_X11" ]
     49   libs = [
     50     "X11",
     51     "Xcomposite",
     52     "Xcursor",
     53     "Xdamage",
     54     "Xext",
     55     "Xfixes",
     56     "Xi",
     57     "Xrender",
     58     "Xss",
     59     "Xtst",
     60   ]
     61 }
     62