Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / ui / libgtk2ui / BUILD.gn
index 6fc67c1..0d34b7a 100644 (file)
@@ -5,6 +5,17 @@
 assert(is_linux, "This file should only be referenced on Linux")
 
 import("//build/config/features.gni")
+import("//build/config/linux/pkg_config.gni")
+
+pkg_config("gtk") {
+  # Gtk requires gmodule, but it does not list it as a dependency in some
+  # misconfigured systems.
+  packages = [ "gmodule-2.0", "gtk+-2.0", "gthread-2.0" ]
+}
+
+pkg_config("gtkprint") {
+  packages = [ "gtk+-unix-print-2.0" ]
+}
 
 component("libgtk2ui") {
   sources = [
@@ -70,9 +81,9 @@ component("libgtk2ui") {
   defines = [ "LIBGTK2UI_IMPLEMENTATION" ]
 
   configs += [
+    ":gtk",
+    ":gtkprint",
     "//build/config/linux:gconf",
-    "//build/config/linux:gtk",
-    "//build/config/linux:gtkprint",
     "//printing:cups",
   ]