Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3382)

Unified Diff: build/config/linux/BUILD.gn

Issue 236713002: Implement net in GN build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/config/BUILDCONFIG.gn ('k') | crypto/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/linux/BUILD.gn
diff --git a/build/config/linux/BUILD.gn b/build/config/linux/BUILD.gn
index 51616c0daf197671c1551b7e97070d351dd75fe1..7358ca5a245cacbbb7fa90e0be9ec3f42623a7ef 100644
--- a/build/config/linux/BUILD.gn
+++ b/build/config/linux/BUILD.gn
@@ -75,3 +75,53 @@ config("x11") {
"Xtst",
]
}
+
+config("libresolv") {
+ libs = [ "libresolv" ]
+}
+
+pkg_config("gconf") {
+ packages = [ "gconf-2.0" ]
+ defines = [ "USE_GCONF" ]
+}
+
+pkg_config("gio_config") {
+ packages = [ "gio-2.0" ]
+ defines = [ "USE_GIO" ]
+}
+
+gio_output_h = "$root_gen_dir/library_loaders/libgio.h"
+gio_output_cc = "$root_gen_dir/library_loaders/libgio_loader.cc"
+
+action("make_gio_headers") {
+ visibility = ":gio"
+
+ script = "//tools/generate_library_loader/generate_library_loader.py"
+
+ outputs = [ gio_output_h, gio_output_cc ]
+
+ args = [
+ "--name", "LibGioLoader",
+ "--output-h", rebase_path(gio_output_h),
+ "--output-cc", rebase_path(gio_output_cc),
+ # TODO(brettw) convert ti "<gio/gio.h>" once GN doesn't mangle <>.
+ "--header", "\"gio/gio.h\"",
+ # Note GYP build exposes a variable linux_link_gsettings to control this,
+ # which, if manually set to true, will disable dlopen() for this. Its not
+ # clear this is needed, so here we just leave off.
+ "--link-directly=0",
+ "g_settings_new",
+ "g_settings_get_child",
+ "g_settings_get_string",
+ "g_settings_get_boolean",
+ "g_settings_get_int",
+ "g_settings_get_strv",
+ "g_settings_list_schemas",
+ ]
+}
+
+source_set("gio") {
+ direct_dependent_configs = [ ":gio_config" ]
+ sources = [ gio_output_h, gio_output_cc ]
+ deps = [ ":make_gio_headers" ]
+}
« no previous file with comments | « build/config/BUILDCONFIG.gn ('k') | crypto/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698