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

Side by Side Diff: build/linux/system.gyp

Issue 148643002: Hide X11 dependencies when use_x11=0. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review Fix: remove blank lines Created 6 years, 10 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
« no previous file with comments | « no previous file | chrome/chrome_browser.gypi » ('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) 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 'conditions': [ 7 'conditions': [
8 ['sysroot!=""', { 8 ['sysroot!=""', {
9 'pkg-config': '<(chroot_cmd) ./pkg-config-wrapper "<(sysroot)" "<(target _arch)"', 9 'pkg-config': '<(chroot_cmd) ./pkg-config-wrapper "<(sysroot)" "<(target _arch)"',
10 }, { 10 }, {
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 ], 100 ],
101 'libraries': [ 101 'libraries': [
102 '<!@(<(pkg-config) --libs-only-l gtk+-unix-print-2.0)', 102 '<!@(<(pkg-config) --libs-only-l gtk+-unix-print-2.0)',
103 ], 103 ],
104 }, 104 },
105 }], 105 }],
106 ], 106 ],
107 }, 107 },
108 ], # targets 108 ], # targets
109 }], 109 }],
110 [ 'use_x11==1', {
111 # Hide X11 and related dependencies when use_x11=0
112 'targets': [
113 {
114 'target_name': 'x11',
115 'type': 'none',
116 'toolsets': ['host', 'target'],
117 'conditions': [
118 ['_toolset=="target"', {
119 'direct_dependent_settings': {
120 'cflags': [
121 '<!@(<(pkg-config) --cflags x11)',
122 ],
123 },
124 'link_settings': {
125 'ldflags': [
126 '<!@(<(pkg-config) --libs-only-L --libs-only-other x11 xi)',
127 ],
128 'libraries': [
129 '<!@(<(pkg-config) --libs-only-l x11 xi)',
130 ],
131 },
132 }, {
133 'direct_dependent_settings': {
134 'cflags': [
135 '<!@(pkg-config --cflags x11)',
136 ],
137 },
138 'link_settings': {
139 'ldflags': [
140 '<!@(pkg-config --libs-only-L --libs-only-other x11 xi)',
141 ],
142 'libraries': [
143 '<!@(pkg-config --libs-only-l x11 xi)',
144 ],
145 },
146 }],
147 ],
148 },
149 {
150 'target_name': 'xcursor',
151 'type': 'none',
152 'direct_dependent_settings': {
153 'cflags': [
154 '<!@(<(pkg-config) --cflags xcursor)',
155 ],
156 },
157 'link_settings': {
158 'ldflags': [
159 '<!@(<(pkg-config) --libs-only-L --libs-only-other xcursor)',
160 ],
161 'libraries': [
162 '<!@(<(pkg-config) --libs-only-l xcursor)',
163 ],
164 },
165 },
166 {
167 'target_name': 'xcomposite',
168 'type': 'none',
169 'direct_dependent_settings': {
170 'cflags': [
171 '<!@(<(pkg-config) --cflags xcomposite)',
172 ],
173 },
174 'link_settings': {
175 'ldflags': [
176 '<!@(<(pkg-config) --libs-only-L --libs-only-other xcomposite)',
177 ],
178 'libraries': [
179 '<!@(<(pkg-config) --libs-only-l xcomposite)',
180 ],
181 },
182 },
183 {
184 'target_name': 'xdamage',
185 'type': 'none',
186 'direct_dependent_settings': {
187 'cflags': [
188 '<!@(<(pkg-config) --cflags xdamage)',
189 ],
190 },
191 'link_settings': {
192 'ldflags': [
193 '<!@(<(pkg-config) --libs-only-L --libs-only-other xdamage)',
194 ],
195 'libraries': [
196 '<!@(<(pkg-config) --libs-only-l xdamage)',
197 ],
198 },
199 },
200 {
201 'target_name': 'xext',
202 'type': 'none',
203 'direct_dependent_settings': {
204 'cflags': [
205 '<!@(<(pkg-config) --cflags xext)',
206 ],
207 },
208 'link_settings': {
209 'ldflags': [
210 '<!@(<(pkg-config) --libs-only-L --libs-only-other xext)',
211 ],
212 'libraries': [
213 '<!@(<(pkg-config) --libs-only-l xext)',
214 ],
215 },
216 },
217 {
218 'target_name': 'xfixes',
219 'type': 'none',
220 'direct_dependent_settings': {
221 'cflags': [
222 '<!@(<(pkg-config) --cflags xfixes)',
223 ],
224 },
225 'link_settings': {
226 'ldflags': [
227 '<!@(<(pkg-config) --libs-only-L --libs-only-other xfixes)',
228 ],
229 'libraries': [
230 '<!@(<(pkg-config) --libs-only-l xfixes)',
231 ],
232 },
233 },
234 {
235 'target_name': 'xi',
236 'type': 'none',
237 'direct_dependent_settings': {
238 'cflags': [
239 '<!@(<(pkg-config) --cflags xi)',
240 ],
241 },
242 'link_settings': {
243 'ldflags': [
244 '<!@(<(pkg-config) --libs-only-L --libs-only-other xi)',
245 ],
246 'libraries': [
247 '<!@(<(pkg-config) --libs-only-l xi)',
248 ],
249 },
250 },
251 {
252 'target_name': 'xrandr',
253 'type': 'none',
254 'toolsets': ['host', 'target'],
255 'conditions': [
256 ['_toolset=="target"', {
257 'direct_dependent_settings': {
258 'cflags': [
259 '<!@(<(pkg-config) --cflags xrandr)',
260 ],
261 },
262 'link_settings': {
263 'ldflags': [
264 '<!@(<(pkg-config) --libs-only-L --libs-only-other xrandr)',
265 ],
266 'libraries': [
267 '<!@(<(pkg-config) --libs-only-l xrandr)',
268 ],
269 },
270 }, {
271 'direct_dependent_settings': {
272 'cflags': [
273 '<!@(pkg-config --cflags xrandr)',
274 ],
275 },
276 'link_settings': {
277 'ldflags': [
278 '<!@(pkg-config --libs-only-L --libs-only-other xrandr)',
279 ],
280 'libraries': [
281 '<!@(pkg-config --libs-only-l xrandr)',
282 ],
283 },
284 }],
285 ],
286 },
287 {
288 'target_name': 'xrender',
289 'type': 'none',
290 'direct_dependent_settings': {
291 'cflags': [
292 '<!@(<(pkg-config) --cflags xrender)',
293 ],
294 },
295 'link_settings': {
296 'ldflags': [
297 '<!@(<(pkg-config) --libs-only-L --libs-only-other xrender)',
298 ],
299 'libraries': [
300 '<!@(<(pkg-config) --libs-only-l xrender)',
301 ],
302 },
303 },
304 {
305 'target_name': 'xscrnsaver',
306 'type': 'none',
307 'direct_dependent_settings': {
308 'cflags': [
309 '<!@(<(pkg-config) --cflags xscrnsaver)',
310 ],
311 },
312 'link_settings': {
313 'ldflags': [
314 '<!@(<(pkg-config) --libs-only-L --libs-only-other xscrnsaver)',
315 ],
316 'libraries': [
317 '<!@(<(pkg-config) --libs-only-l xscrnsaver)',
318 ],
319 },
320 },
321 {
322 'target_name': 'xtst',
323 'type': 'none',
324 'toolsets': ['host', 'target'],
325 'conditions': [
326 ['_toolset=="target"', {
327 'direct_dependent_settings': {
328 'cflags': [
329 '<!@(<(pkg-config) --cflags xtst)',
330 ],
331 },
332 'link_settings': {
333 'ldflags': [
334 '<!@(<(pkg-config) --libs-only-L --libs-only-other xtst)',
335 ],
336 'libraries': [
337 '<!@(<(pkg-config) --libs-only-l xtst)',
338 ],
339 },
340 }, {
341 'direct_dependent_settings': {
342 'cflags': [
343 '<!@(pkg-config --cflags xtst)',
344 ],
345 },
346 'link_settings': {
347 'ldflags': [
348 '<!@(pkg-config --libs-only-L --libs-only-other xtst)',
349 ],
350 'libraries': [
351 '<!@(pkg-config --libs-only-l xtst)',
352 ],
353 },
354 }]
355 ]
356 }
357 ], # targets
358 }],
110 ], # conditions 359 ], # conditions
111 'targets': [ 360 'targets': [
112 { 361 {
113 'target_name': 'dbus', 362 'target_name': 'dbus',
114 'type': 'none', 363 'type': 'none',
115 'direct_dependent_settings': { 364 'direct_dependent_settings': {
116 'cflags': [ 365 'cflags': [
117 '<!@(<(pkg-config) --cflags dbus-1)', 366 '<!@(<(pkg-config) --cflags dbus-1)',
118 ], 367 ],
119 }, 368 },
(...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 'ldflags': [ 997 'ldflags': [
749 '<!@(<(pkg-config) --libs-only-L --libs-only-other libudev)', 998 '<!@(<(pkg-config) --libs-only-L --libs-only-other libudev)',
750 ], 999 ],
751 'libraries': [ 1000 'libraries': [
752 '<!@(<(pkg-config) --libs-only-l libudev)', 1001 '<!@(<(pkg-config) --libs-only-l libudev)',
753 ], 1002 ],
754 }, 1003 },
755 }], 1004 }],
756 ], 1005 ],
757 }, 1006 },
758 {
759 'target_name': 'x11',
760 'type': 'none',
761 'toolsets': ['host', 'target'],
762 'conditions': [
763 ['_toolset=="target"', {
764 'direct_dependent_settings': {
765 'cflags': [
766 '<!@(<(pkg-config) --cflags x11)',
767 ],
768 },
769 'link_settings': {
770 'ldflags': [
771 '<!@(<(pkg-config) --libs-only-L --libs-only-other x11 xi)',
772 ],
773 'libraries': [
774 '<!@(<(pkg-config) --libs-only-l x11 xi)',
775 ],
776 },
777 }, {
778 'direct_dependent_settings': {
779 'cflags': [
780 '<!@(pkg-config --cflags x11)',
781 ],
782 },
783 'link_settings': {
784 'ldflags': [
785 '<!@(pkg-config --libs-only-L --libs-only-other x11 xi)',
786 ],
787 'libraries': [
788 '<!@(pkg-config --libs-only-l x11 xi)',
789 ],
790 },
791 }],
792 ],
793 },
794 {
795 'target_name': 'xcursor',
796 'type': 'none',
797 'direct_dependent_settings': {
798 'cflags': [
799 '<!@(<(pkg-config) --cflags xcursor)',
800 ],
801 },
802 'link_settings': {
803 'ldflags': [
804 '<!@(<(pkg-config) --libs-only-L --libs-only-other xcursor)',
805 ],
806 'libraries': [
807 '<!@(<(pkg-config) --libs-only-l xcursor)',
808 ],
809 },
810 },
811 {
812 'target_name': 'xcomposite',
813 'type': 'none',
814 'direct_dependent_settings': {
815 'cflags': [
816 '<!@(<(pkg-config) --cflags xcomposite)',
817 ],
818 },
819 'link_settings': {
820 'ldflags': [
821 '<!@(<(pkg-config) --libs-only-L --libs-only-other xcomposite)',
822 ],
823 'libraries': [
824 '<!@(<(pkg-config) --libs-only-l xcomposite)',
825 ],
826 },
827 },
828 {
829 'target_name': 'xdamage',
830 'type': 'none',
831 'direct_dependent_settings': {
832 'cflags': [
833 '<!@(<(pkg-config) --cflags xdamage)',
834 ],
835 },
836 'link_settings': {
837 'ldflags': [
838 '<!@(<(pkg-config) --libs-only-L --libs-only-other xdamage)',
839 ],
840 'libraries': [
841 '<!@(<(pkg-config) --libs-only-l xdamage)',
842 ],
843 },
844 },
845 {
846 'target_name': 'xext',
847 'type': 'none',
848 'direct_dependent_settings': {
849 'cflags': [
850 '<!@(<(pkg-config) --cflags xext)',
851 ],
852 },
853 'link_settings': {
854 'ldflags': [
855 '<!@(<(pkg-config) --libs-only-L --libs-only-other xext)',
856 ],
857 'libraries': [
858 '<!@(<(pkg-config) --libs-only-l xext)',
859 ],
860 },
861 },
862 {
863 'target_name': 'xfixes',
864 'type': 'none',
865 'direct_dependent_settings': {
866 'cflags': [
867 '<!@(<(pkg-config) --cflags xfixes)',
868 ],
869 },
870 'link_settings': {
871 'ldflags': [
872 '<!@(<(pkg-config) --libs-only-L --libs-only-other xfixes)',
873 ],
874 'libraries': [
875 '<!@(<(pkg-config) --libs-only-l xfixes)',
876 ],
877 },
878 },
879 {
880 'target_name': 'xi',
881 'type': 'none',
882 'direct_dependent_settings': {
883 'cflags': [
884 '<!@(<(pkg-config) --cflags xi)',
885 ],
886 },
887 'link_settings': {
888 'ldflags': [
889 '<!@(<(pkg-config) --libs-only-L --libs-only-other xi)',
890 ],
891 'libraries': [
892 '<!@(<(pkg-config) --libs-only-l xi)',
893 ],
894 },
895 },
896 {
897 'target_name': 'xrandr',
898 'type': 'none',
899 'toolsets': ['host', 'target'],
900 'conditions': [
901 ['_toolset=="target"', {
902 'direct_dependent_settings': {
903 'cflags': [
904 '<!@(<(pkg-config) --cflags xrandr)',
905 ],
906 },
907 'link_settings': {
908 'ldflags': [
909 '<!@(<(pkg-config) --libs-only-L --libs-only-other xrandr)',
910 ],
911 'libraries': [
912 '<!@(<(pkg-config) --libs-only-l xrandr)',
913 ],
914 },
915 }, {
916 'direct_dependent_settings': {
917 'cflags': [
918 '<!@(pkg-config --cflags xrandr)',
919 ],
920 },
921 'link_settings': {
922 'ldflags': [
923 '<!@(pkg-config --libs-only-L --libs-only-other xrandr)',
924 ],
925 'libraries': [
926 '<!@(pkg-config --libs-only-l xrandr)',
927 ],
928 },
929 }],
930 ],
931 },
932 {
933 'target_name': 'xrender',
934 'type': 'none',
935 'direct_dependent_settings': {
936 'cflags': [
937 '<!@(<(pkg-config) --cflags xrender)',
938 ],
939 },
940 'link_settings': {
941 'ldflags': [
942 '<!@(<(pkg-config) --libs-only-L --libs-only-other xrender)',
943 ],
944 'libraries': [
945 '<!@(<(pkg-config) --libs-only-l xrender)',
946 ],
947 },
948 },
949 {
950 'target_name': 'xscrnsaver',
951 'type': 'none',
952 'direct_dependent_settings': {
953 'cflags': [
954 '<!@(<(pkg-config) --cflags xscrnsaver)',
955 ],
956 },
957 'link_settings': {
958 'ldflags': [
959 '<!@(<(pkg-config) --libs-only-L --libs-only-other xscrnsaver)',
960 ],
961 'libraries': [
962 '<!@(<(pkg-config) --libs-only-l xscrnsaver)',
963 ],
964 },
965 },
966 {
967 'target_name': 'xtst',
968 'type': 'none',
969 'toolsets': ['host', 'target'],
970 'conditions': [
971 ['_toolset=="target"', {
972 'direct_dependent_settings': {
973 'cflags': [
974 '<!@(<(pkg-config) --cflags xtst)',
975 ],
976 },
977 'link_settings': {
978 'ldflags': [
979 '<!@(<(pkg-config) --libs-only-L --libs-only-other xtst)',
980 ],
981 'libraries': [
982 '<!@(<(pkg-config) --libs-only-l xtst)',
983 ],
984 },
985 }, {
986 'direct_dependent_settings': {
987 'cflags': [
988 '<!@(pkg-config --cflags xtst)',
989 ],
990 },
991 'link_settings': {
992 'ldflags': [
993 '<!@(pkg-config --libs-only-L --libs-only-other xtst)',
994 ],
995 'libraries': [
996 '<!@(pkg-config --libs-only-l xtst)',
997 ],
998 },
999 }]
1000 ]
1001 }
1002 ], 1007 ],
1003 } 1008 }
OLDNEW
« no previous file with comments | « no previous file | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698