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

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

Issue 1293073006: Make gtk2/gtk3 compile time switchable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove deprecation warning. Created 5 years, 3 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 | « build/config/ui.gni ('k') | chrome/browser/ui/libgtk2ui/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) 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 '<!@(<(pkg-config) --libs-only-L --libs-only-other gdk-2.0)', 121 '<!@(<(pkg-config) --libs-only-L --libs-only-other gdk-2.0)',
122 ], 122 ],
123 'libraries': [ 123 'libraries': [
124 '<!@(<(pkg-config) --libs-only-l gdk-2.0)', 124 '<!@(<(pkg-config) --libs-only-l gdk-2.0)',
125 ], 125 ],
126 }, 126 },
127 }], 127 }],
128 ], 128 ],
129 }, 129 },
130 { 130 {
131 'target_name': 'gtk', 131 'target_name': 'gtk2',
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+-2.0 gthread-2.0',
138 }, 138 },
139 'conditions': [ 139 'conditions': [
140 ['_toolset=="target"', { 140 ['_toolset=="target"', {
141 'all_dependent_settings': { 141 'all_dependent_settings': {
(...skipping 20 matching lines...) Expand all
162 '<!@(pkg-config --libs-only-L --libs-only-other <(gtk_packages ))', 162 '<!@(pkg-config --libs-only-L --libs-only-other <(gtk_packages ))',
163 ], 163 ],
164 'libraries': [ 164 'libraries': [
165 '<!@(pkg-config --libs-only-l <(gtk_packages))', 165 '<!@(pkg-config --libs-only-l <(gtk_packages))',
166 ], 166 ],
167 }, 167 },
168 }], 168 }],
169 ], 169 ],
170 }, 170 },
171 { 171 {
172 'target_name': 'gtkprint', 172 'target_name': 'gtkprint2',
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-2.0)',
179 ], 179 ],
180 }, 180 },
181 'link_settings': { 181 'link_settings': {
182 'ldflags': [ 182 'ldflags': [
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 ], 416 ],
417 'libraries': [ 417 'libraries': [
418 '<!@(pkg-config --libs-only-l xtst)', 418 '<!@(pkg-config --libs-only-l xtst)',
419 ], 419 ],
420 }, 420 },
421 }] 421 }]
422 ] 422 ]
423 } 423 }
424 ], # targets 424 ], # targets
425 }], 425 }],
426 ['use_gtk3==1', {
427 # Hide GTK3 and related dependencies when use_gtk3==0 because the user
428 # might not have the GTK3 headers yet.
429 'targets': [
430 {
431 'target_name': 'gtk3',
432 'type': 'none',
433 'toolsets': ['host', 'target'],
434 'variables': {
435 # gtk requires gmodule, but it does not list it as a dependency
436 # in some misconfigured systems.
437 'gtk_packages': 'gmodule-2.0 gtk+-3.0 gthread-2.0',
438 },
439 'conditions': [
440 ['_toolset=="target"', {
441 'all_dependent_settings': {
442 'cflags': [
443 '<!@(<(pkg-config) --cflags <(gtk_packages))',
444 ],
445 },
446 'link_settings': {
447 'ldflags': [
448 '<!@(<(pkg-config) --libs-only-L --libs-only-other <(gtk_packa ges))',
449 ],
450 'libraries': [
451 '<!@(<(pkg-config) --libs-only-l <(gtk_packages))',
452 ],
453 },
454 }, {
455 'all_dependent_settings': {
456 'cflags': [
457 '<!@(pkg-config --cflags <(gtk_packages))',
458 ],
459 },
460 'link_settings': {
461 'ldflags': [
462 '<!@(pkg-config --libs-only-L --libs-only-other <(gtk_packages ))',
463 ],
464 'libraries': [
465 '<!@(pkg-config --libs-only-l <(gtk_packages))',
466 ],
467 },
468 }],
469 ],
470 },
471 {
472 'target_name': 'gtkprint3',
473 'type': 'none',
474 'conditions': [
475 ['_toolset=="target"', {
476 'direct_dependent_settings': {
477 'cflags': [
478 '<!@(<(pkg-config) --cflags gtk+-unix-print-3.0)',
479 ],
480 },
481 'link_settings': {
482 'ldflags': [
483 '<!@(<(pkg-config) --libs-only-L --libs-only-other gtk+-unix-p rint-3.0)',
484 ],
485 'libraries': [
486 '<!@(<(pkg-config) --libs-only-l gtk+-unix-print-3.0)',
487 ],
488 },
489 }],
490 ],
491 },
492 ],
493 }],
426 ['use_x11==1 and chromeos==0', { 494 ['use_x11==1 and chromeos==0', {
427 'targets': [ 495 'targets': [
428 { 496 {
429 'target_name': 'xscrnsaver', 497 'target_name': 'xscrnsaver',
430 'type': 'none', 498 'type': 'none',
431 'direct_dependent_settings': { 499 'direct_dependent_settings': {
432 'cflags': [ 500 'cflags': [
433 '<!@(<(pkg-config) --cflags xscrnsaver)', 501 '<!@(<(pkg-config) --cflags xscrnsaver)',
434 ], 502 ],
435 }, 503 },
(...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after
1216 }, 1284 },
1217 }], 1285 }],
1218 ], 1286 ],
1219 }], 1287 }],
1220 ] 1288 ]
1221 }], 1289 }],
1222 ], 1290 ],
1223 }, 1291 },
1224 ], 1292 ],
1225 } 1293 }
OLDNEW
« no previous file with comments | « build/config/ui.gni ('k') | chrome/browser/ui/libgtk2ui/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698