OLD | NEW |
---|---|
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 { | 5 { |
6 'variables': { | 6 'variables': { |
7 # If any of the linux_link_FOO below are set to 1, then the corresponding | 7 # If any of the linux_link_FOO below are set to 1, then the corresponding |
8 # target will be linked against the FOO library (either dynamically or | 8 # target will be linked against the FOO library (either dynamically or |
9 # statically, depending on the pkg-config files), as opposed to loading the | 9 # statically, depending on the pkg-config files), as opposed to loading the |
10 # FOO library dynamically with dlopen. | 10 # FOO library dynamically with dlopen. |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
106 }], | 106 }], |
107 ], | 107 ], |
108 }, | 108 }, |
109 { | 109 { |
110 'target_name': 'gdk', | 110 'target_name': 'gdk', |
111 'type': 'none', | 111 'type': 'none', |
112 'conditions': [ | 112 'conditions': [ |
113 ['_toolset=="target"', { | 113 ['_toolset=="target"', { |
114 'direct_dependent_settings': { | 114 'direct_dependent_settings': { |
115 'cflags': [ | 115 'cflags': [ |
116 '<!@(<(pkg-config) --cflags gdk-2.0)', | 116 '<!@(<(pkg-config) --cflags gdk-3.0)', |
Elliot Glaysher
2015/07/20 19:31:40
Please don't do this. We need to support both GTK
knthzh
2015/07/21 15:48:27
I can't. I'm too terrified of triggering another e
Elliot Glaysher
2015/07/28 17:54:36
(Just to be clear, I'm fine with you having this h
| |
117 ], | 117 ], |
118 }, | 118 }, |
119 'link_settings': { | 119 'link_settings': { |
120 'ldflags': [ | 120 'ldflags': [ |
121 '<!@(<(pkg-config) --libs-only-L --libs-only-other gdk-2.0)', | 121 '<!@(<(pkg-config) --libs-only-L --libs-only-other gdk-3.0)', |
122 ], | 122 ], |
123 'libraries': [ | 123 'libraries': [ |
124 '<!@(<(pkg-config) --libs-only-l gdk-2.0)', | 124 '<!@(<(pkg-config) --libs-only-l gdk-3.0)', |
125 ], | 125 ], |
126 }, | 126 }, |
127 }], | 127 }], |
128 ], | 128 ], |
129 }, | 129 }, |
130 { | 130 { |
131 'target_name': 'gtk', | 131 'target_name': 'gtk', |
132 'type': 'none', | 132 'type': 'none', |
133 'toolsets': ['host', 'target'], | 133 'toolsets': ['host', 'target'], |
134 'variables': { | 134 'variables': { |
135 # gtk requires gmodule, but it does not list it as a dependency | 135 # gtk requires gmodule, but it does not list it as a dependency |
136 # in some misconfigured systems. | 136 # in some misconfigured systems. |
137 'gtk_packages': 'gmodule-2.0 gtk+-2.0 gthread-2.0', | 137 'gtk_packages': 'gmodule-2.0 gtk+-3.0 gthread-2.0', |
138 }, | 138 }, |
139 'conditions': [ | 139 'conditions': [ |
140 ['_toolset=="target"', { | 140 ['_toolset=="target"', { |
141 'all_dependent_settings': { | 141 'all_dependent_settings': { |
142 'cflags': [ | 142 'cflags': [ |
143 '<!@(<(pkg-config) --cflags <(gtk_packages))', | 143 '<!@(<(pkg-config) --cflags <(gtk_packages))', |
144 ], | 144 ], |
145 }, | 145 }, |
146 'link_settings': { | 146 'link_settings': { |
147 'ldflags': [ | 147 'ldflags': [ |
(...skipping 20 matching lines...) Expand all Loading... | |
168 }], | 168 }], |
169 ], | 169 ], |
170 }, | 170 }, |
171 { | 171 { |
172 'target_name': 'gtkprint', | 172 'target_name': 'gtkprint', |
173 'type': 'none', | 173 'type': 'none', |
174 'conditions': [ | 174 'conditions': [ |
175 ['_toolset=="target"', { | 175 ['_toolset=="target"', { |
176 'direct_dependent_settings': { | 176 'direct_dependent_settings': { |
177 'cflags': [ | 177 'cflags': [ |
178 '<!@(<(pkg-config) --cflags gtk+-unix-print-2.0)', | 178 '<!@(<(pkg-config) --cflags gtk+-unix-print-3.0)', |
179 ], | 179 ], |
180 }, | 180 }, |
181 'link_settings': { | 181 'link_settings': { |
182 'ldflags': [ | 182 'ldflags': [ |
183 '<!@(<(pkg-config) --libs-only-L --libs-only-other gtk+-unix-p rint-2.0)', | 183 '<!@(<(pkg-config) --libs-only-L --libs-only-other gtk+-unix-p rint-3.0)', |
184 ], | 184 ], |
185 'libraries': [ | 185 'libraries': [ |
186 '<!@(<(pkg-config) --libs-only-l gtk+-unix-print-2.0)', | 186 '<!@(<(pkg-config) --libs-only-l gtk+-unix-print-3.0)', |
187 ], | 187 ], |
188 }, | 188 }, |
189 }], | 189 }], |
190 ], | 190 ], |
191 }, | 191 }, |
192 ], # targets | 192 ], # targets |
193 }], | 193 }], |
194 [ 'use_x11==1 or ozone_platform_ozonex==1', { | 194 [ 'use_x11==1 or ozone_platform_ozonex==1', { |
195 # Hide X11 and related dependencies when use_x11=0 | 195 # Hide X11 and related dependencies when use_x11=0 |
196 'targets': [ | 196 'targets': [ |
(...skipping 1016 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1213 }, | 1213 }, |
1214 }], | 1214 }], |
1215 ], | 1215 ], |
1216 }], | 1216 }], |
1217 ] | 1217 ] |
1218 }], | 1218 }], |
1219 ], | 1219 ], |
1220 }, | 1220 }, |
1221 ], | 1221 ], |
1222 } | 1222 } |
OLD | NEW |