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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « build/config/BUILDCONFIG.gn ('k') | crypto/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/linux/pkg_config.gni") 5 import("//build/config/linux/pkg_config.gni")
6 import("//build/config/sysroot.gni") 6 import("//build/config/sysroot.gni")
7 7
8 config("sdk") { 8 config("sdk") {
9 if (sysroot != "") { 9 if (sysroot != "") {
10 cflags = [ "--sysroot=" + sysroot ] 10 cflags = [ "--sysroot=" + sysroot ]
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 "Xcursor", 68 "Xcursor",
69 "Xdamage", 69 "Xdamage",
70 "Xext", 70 "Xext",
71 "Xfixes", 71 "Xfixes",
72 "Xi", 72 "Xi",
73 "Xrender", 73 "Xrender",
74 "Xss", 74 "Xss",
75 "Xtst", 75 "Xtst",
76 ] 76 ]
77 } 77 }
78
79 config("libresolv") {
80 libs = [ "libresolv" ]
81 }
82
83 pkg_config("gconf") {
84 packages = [ "gconf-2.0" ]
85 defines = [ "USE_GCONF" ]
86 }
87
88 pkg_config("gio_config") {
89 packages = [ "gio-2.0" ]
90 defines = [ "USE_GIO" ]
91 }
92
93 gio_output_h = "$root_gen_dir/library_loaders/libgio.h"
94 gio_output_cc = "$root_gen_dir/library_loaders/libgio_loader.cc"
95
96 action("make_gio_headers") {
97 visibility = ":gio"
98
99 script = "//tools/generate_library_loader/generate_library_loader.py"
100
101 outputs = [ gio_output_h, gio_output_cc ]
102
103 args = [
104 "--name", "LibGioLoader",
105 "--output-h", rebase_path(gio_output_h),
106 "--output-cc", rebase_path(gio_output_cc),
107 # TODO(brettw) convert ti "<gio/gio.h>" once GN doesn't mangle <>.
108 "--header", "\"gio/gio.h\"",
109 # Note GYP build exposes a variable linux_link_gsettings to control this,
110 # which, if manually set to true, will disable dlopen() for this. Its not
111 # clear this is needed, so here we just leave off.
112 "--link-directly=0",
113 "g_settings_new",
114 "g_settings_get_child",
115 "g_settings_get_string",
116 "g_settings_get_boolean",
117 "g_settings_get_int",
118 "g_settings_get_strv",
119 "g_settings_list_schemas",
120 ]
121 }
122
123 source_set("gio") {
124 direct_dependent_configs = [ ":gio_config" ]
125 sources = [ gio_output_h, gio_output_cc ]
126 deps = [ ":make_gio_headers" ]
127 }
OLDNEW
« 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