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': { |
| 7 'conditions': [ |
| 8 ['sysroot!=""', { |
| 9 'pkg-config': './pkg-config-wrapper "<(sysroot)" "<(target_arch)"', |
| 10 }, { |
| 11 'pkg-config': 'pkg-config' |
| 12 }] |
| 13 ], |
| 14 }, |
6 'conditions': [ | 15 'conditions': [ |
7 ['sysroot!=""', { | |
8 'variables': { | |
9 'pkg-config': './pkg-config-wrapper "<(sysroot)" "<(target_arch)"', | |
10 }, | |
11 }, { | |
12 'variables': { | |
13 'pkg-config': 'pkg-config' | |
14 }, | |
15 }], | |
16 [ 'os_posix==1 and OS!="mac"', { | 16 [ 'os_posix==1 and OS!="mac"', { |
17 'variables': { | 17 'variables': { |
18 # We use our own copy of libssl3, although we still need to link against | 18 # We use our own copy of libssl3, although we still need to link against |
19 # the rest of NSS. | 19 # the rest of NSS. |
20 'use_system_ssl%': 0, | 20 'use_system_ssl%': 0, |
21 }, | 21 }, |
22 }, { | 22 }, { |
23 'variables': { | 23 'variables': { |
24 'use_system_ssl%': 1, | 24 'use_system_ssl%': 1, |
25 }, | 25 }, |
26 }], | 26 }], |
27 ], | 27 [ 'chromeos==0', { |
28 | 28 # Hide GTK and related dependencies for Chrome OS, so they won't get |
29 | 29 # added back to Chrome OS. Don't try to use GTK on Chrome OS. |
| 30 'targets': [ |
| 31 { |
| 32 'target_name': 'gtk', |
| 33 'type': 'none', |
| 34 'toolsets': ['host', 'target'], |
| 35 'variables': { |
| 36 # gtk requires gmodule, but it does not list it as a dependency |
| 37 # in some misconfigured systems. |
| 38 'gtk_packages': 'gmodule-2.0 gtk+-2.0 gthread-2.0', |
| 39 }, |
| 40 'conditions': [ |
| 41 ['_toolset=="target"', { |
| 42 'direct_dependent_settings': { |
| 43 'cflags': [ |
| 44 '<!@(<(pkg-config) --cflags <(gtk_packages))', |
| 45 ], |
| 46 }, |
| 47 'link_settings': { |
| 48 'ldflags': [ |
| 49 '<!@(<(pkg-config) --libs-only-L --libs-only-other <(gtk_packa
ges))', |
| 50 ], |
| 51 'libraries': [ |
| 52 '<!@(<(pkg-config) --libs-only-l <(gtk_packages))', |
| 53 ], |
| 54 }, |
| 55 }, { |
| 56 'direct_dependent_settings': { |
| 57 'cflags': [ |
| 58 '<!@(pkg-config --cflags <(gtk_packages))', |
| 59 ], |
| 60 }, |
| 61 'link_settings': { |
| 62 'ldflags': [ |
| 63 '<!@(pkg-config --libs-only-L --libs-only-other <(gtk_packages
))', |
| 64 ], |
| 65 'libraries': [ |
| 66 '<!@(pkg-config --libs-only-l <(gtk_packages))', |
| 67 ], |
| 68 }, |
| 69 }], |
| 70 ], |
| 71 }, |
| 72 { |
| 73 'target_name': 'gtkprint', |
| 74 'type': 'none', |
| 75 'conditions': [ |
| 76 ['_toolset=="target"', { |
| 77 'direct_dependent_settings': { |
| 78 'cflags': [ |
| 79 '<!@(<(pkg-config) --cflags gtk+-unix-print-2.0)', |
| 80 ], |
| 81 }, |
| 82 'link_settings': { |
| 83 'ldflags': [ |
| 84 '<!@(<(pkg-config) --libs-only-L --libs-only-other gtk+-unix-p
rint-2.0)', |
| 85 ], |
| 86 'libraries': [ |
| 87 '<!@(<(pkg-config) --libs-only-l gtk+-unix-print-2.0)', |
| 88 ], |
| 89 }, |
| 90 }], |
| 91 ], |
| 92 }, |
| 93 ], # targets |
| 94 }] # chromeos==0 |
| 95 ], # conditions |
30 'targets': [ | 96 'targets': [ |
31 { | 97 { |
32 'target_name': 'gtk', | |
33 'type': 'none', | |
34 'toolsets': ['host', 'target'], | |
35 'variables': { | |
36 # gtk requires gmodule, but it does not list it as a dependency in some | |
37 # misconfigured systems. | |
38 'gtk_packages': 'gmodule-2.0 gtk+-2.0 gthread-2.0', | |
39 }, | |
40 'conditions': [ | |
41 ['_toolset=="target"', { | |
42 'direct_dependent_settings': { | |
43 'cflags': [ | |
44 '<!@(<(pkg-config) --cflags <(gtk_packages))', | |
45 ], | |
46 }, | |
47 'link_settings': { | |
48 'ldflags': [ | |
49 '<!@(<(pkg-config) --libs-only-L --libs-only-other <(gtk_packages)
)', | |
50 ], | |
51 'libraries': [ | |
52 '<!@(<(pkg-config) --libs-only-l <(gtk_packages))', | |
53 ], | |
54 }, | |
55 }, { | |
56 'direct_dependent_settings': { | |
57 'cflags': [ | |
58 '<!@(pkg-config --cflags <(gtk_packages))', | |
59 ], | |
60 }, | |
61 'link_settings': { | |
62 'ldflags': [ | |
63 '<!@(pkg-config --libs-only-L --libs-only-other <(gtk_packages))', | |
64 ], | |
65 'libraries': [ | |
66 '<!@(pkg-config --libs-only-l <(gtk_packages))', | |
67 ], | |
68 }, | |
69 }], | |
70 ['chromeos==1', { | |
71 'link_settings': { | |
72 'libraries': [ '-lXtst' ] | |
73 } | |
74 }], | |
75 ], | |
76 }, | |
77 { | |
78 'target_name': 'gtkprint', | |
79 'type': 'none', | |
80 'conditions': [ | |
81 ['_toolset=="target"', { | |
82 'direct_dependent_settings': { | |
83 'cflags': [ | |
84 '<!@(<(pkg-config) --cflags gtk+-unix-print-2.0)', | |
85 ], | |
86 }, | |
87 'link_settings': { | |
88 'ldflags': [ | |
89 '<!@(<(pkg-config) --libs-only-L --libs-only-other gtk+-unix-print
-2.0)', | |
90 ], | |
91 'libraries': [ | |
92 '<!@(<(pkg-config) --libs-only-l gtk+-unix-print-2.0)', | |
93 ], | |
94 }, | |
95 }], | |
96 ], | |
97 }, | |
98 { | |
99 'target_name': 'ssl', | 98 'target_name': 'ssl', |
100 'type': 'none', | 99 'type': 'none', |
101 'conditions': [ | 100 'conditions': [ |
102 ['_toolset=="target"', { | 101 ['_toolset=="target"', { |
103 'conditions': [ | 102 'conditions': [ |
104 ['use_openssl==1', { | 103 ['use_openssl==1', { |
105 'dependencies': [ | 104 'dependencies': [ |
106 '../../third_party/openssl/openssl.gyp:openssl', | 105 '../../third_party/openssl/openssl.gyp:openssl', |
107 ], | 106 ], |
108 }], | 107 }], |
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
650 ], | 649 ], |
651 'libraries': [ | 650 'libraries': [ |
652 '<!@(<(pkg-config) --libs-only-l libudev)', | 651 '<!@(<(pkg-config) --libs-only-l libudev)', |
653 ], | 652 ], |
654 }, | 653 }, |
655 }], | 654 }], |
656 ], | 655 ], |
657 }, | 656 }, |
658 ], | 657 ], |
659 } | 658 } |
OLD | NEW |