| OLD | NEW |
| 1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2009 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 'conditions': [ | 6 'conditions': [ |
| 7 ['sysroot!=""', { | 7 ['sysroot!=""', { |
| 8 'variables': { | 8 'variables': { |
| 9 'pkg-config': './pkg-config-wrapper "<(sysroot)"', | 9 'pkg-config': './pkg-config-wrapper "<(sysroot)"', |
| 10 }, | 10 }, |
| 11 }, { | 11 }, { |
| 12 'variables': { | 12 'variables': { |
| 13 'pkg-config': 'pkg-config' | 13 'pkg-config': 'pkg-config' |
| 14 }, | 14 }, |
| 15 }], | 15 }], |
| 16 ], | 16 ], |
| 17 | 17 |
| 18 'targets': [ | 18 'targets': [ |
| 19 { | 19 { |
| 20 'target_name': 'gtk', | 20 'target_name': 'gtk', |
| 21 'type': 'settings', | 21 'type': 'settings', |
| 22 'direct_dependent_settings': { | 22 'conditions': [ |
| 23 'cflags': [ | 23 ['_toolset=="target"', { |
| 24 '<!@(<(pkg-config) --cflags gtk+-2.0 gthread-2.0)', | 24 'direct_dependent_settings': { |
| 25 ], | 25 'cflags': [ |
| 26 }, | 26 '<!@(<(pkg-config) --cflags gtk+-2.0 gthread-2.0)', |
| 27 'link_settings': { | 27 ], |
| 28 'ldflags': [ | 28 }, |
| 29 '<!@(<(pkg-config) --libs-only-L --libs-only-other gtk+-2.0 gthread-2.
0)', | 29 'link_settings': { |
| 30 ], | 30 'ldflags': [ |
| 31 'libraries': [ | 31 '<!@(<(pkg-config) --libs-only-L --libs-only-other gtk+-2.0 gthrea
d-2.0)', |
| 32 '<!@(<(pkg-config) --libs-only-l gtk+-2.0 gthread-2.0)', | 32 ], |
| 33 ], | 33 'libraries': [ |
| 34 }, | 34 '<!@(<(pkg-config) --libs-only-l gtk+-2.0 gthread-2.0)', |
| 35 ], |
| 36 }, |
| 37 }]] |
| 35 }, | 38 }, |
| 36 { | 39 { |
| 37 'target_name': 'gtkprint', | 40 'target_name': 'gtkprint', |
| 38 'type': 'settings', | 41 'type': 'settings', |
| 39 'direct_dependent_settings': { | 42 'conditions': [ |
| 40 'cflags': [ | 43 ['_toolset=="target"', { |
| 41 '<!@(<(pkg-config) --cflags gtk+-unix-print-2.0)', | 44 'direct_dependent_settings': { |
| 42 ], | 45 'cflags': [ |
| 43 }, | 46 '<!@(<(pkg-config) --cflags gtk+-unix-print-2.0)', |
| 44 'link_settings': { | 47 ], |
| 45 'ldflags': [ | 48 }, |
| 46 '<!@(<(pkg-config) --libs-only-L --libs-only-other gtk+-unix-print-2.0
)', | 49 'link_settings': { |
| 47 ], | 50 'ldflags': [ |
| 48 'libraries': [ | 51 '<!@(<(pkg-config) --libs-only-L --libs-only-other gtk+-unix-print
-2.0)', |
| 49 '<!@(<(pkg-config) --libs-only-l gtk+-unix-print-2.0)', | 52 ], |
| 50 ], | 53 'libraries': [ |
| 51 }, | 54 '<!@(<(pkg-config) --libs-only-l gtk+-unix-print-2.0)', |
| 55 ], |
| 56 }, |
| 57 }]] |
| 52 }, | 58 }, |
| 53 { | 59 { |
| 54 'target_name': 'nss', | 60 'target_name': 'nss', |
| 55 'type': 'settings', | 61 'type': 'settings', |
| 56 'direct_dependent_settings': { | 62 'conditions': [ |
| 57 'cflags': [ | 63 ['_toolset=="target"', { |
| 58 '<!@(<(pkg-config) --cflags nss)', | 64 'direct_dependent_settings': { |
| 59 ], | 65 'cflags': [ |
| 60 }, | 66 '<!@(<(pkg-config) --cflags nss)', |
| 61 'link_settings': { | 67 ], |
| 62 'ldflags': [ | 68 }, |
| 63 '<!@(<(pkg-config) --libs-only-L --libs-only-other nss)', | 69 'link_settings': { |
| 64 ], | 70 'ldflags': [ |
| 65 'libraries': [ | 71 '<!@(<(pkg-config) --libs-only-L --libs-only-other nss)', |
| 66 '<!@(<(pkg-config) --libs-only-l nss)', | 72 ], |
| 67 ], | 73 'libraries': [ |
| 68 }, | 74 '<!@(<(pkg-config) --libs-only-l nss)', |
| 75 ], |
| 76 }, |
| 77 }]] |
| 69 }, | 78 }, |
| 70 { | 79 { |
| 71 'target_name': 'freetype2', | 80 'target_name': 'freetype2', |
| 72 'type': 'settings', | 81 'type': 'settings', |
| 73 'direct_dependent_settings': { | 82 'conditions': [ |
| 74 'cflags': [ | 83 ['_toolset=="target"', { |
| 75 '<!@(<(pkg-config) --cflags freetype2)', | 84 'direct_dependent_settings': { |
| 76 ], | 85 'cflags': [ |
| 77 }, | 86 '<!@(<(pkg-config) --cflags freetype2)', |
| 78 'link_settings': { | 87 ], |
| 79 'ldflags': [ | 88 }, |
| 80 '<!@(<(pkg-config) --libs-only-L --libs-only-other freetype2)', | 89 'link_settings': { |
| 81 ], | 90 'ldflags': [ |
| 82 'libraries': [ | 91 '<!@(<(pkg-config) --libs-only-L --libs-only-other freetype2)', |
| 83 '<!@(<(pkg-config) --libs-only-l freetype2)', | 92 ], |
| 84 ], | 93 'libraries': [ |
| 85 }, | 94 '<!@(<(pkg-config) --libs-only-l freetype2)', |
| 95 ], |
| 96 }, |
| 97 }]] |
| 86 }, | 98 }, |
| 87 { | 99 { |
| 88 'target_name': 'fontconfig', | 100 'target_name': 'fontconfig', |
| 89 'type': 'settings', | 101 'type': 'settings', |
| 90 'direct_dependent_settings': { | 102 'conditions': [ |
| 91 'cflags': [ | 103 ['_toolset=="target"', { |
| 92 '<!@(<(pkg-config) --cflags fontconfig)', | 104 'direct_dependent_settings': { |
| 93 ], | 105 'cflags': [ |
| 94 }, | 106 '<!@(<(pkg-config) --cflags fontconfig)', |
| 95 'link_settings': { | 107 ], |
| 96 'ldflags': [ | 108 }, |
| 97 '<!@(<(pkg-config) --libs-only-L --libs-only-other fontconfig)', | 109 'link_settings': { |
| 98 ], | 110 'ldflags': [ |
| 99 'libraries': [ | 111 '<!@(<(pkg-config) --libs-only-L --libs-only-other fontconfig)', |
| 100 '<!@(<(pkg-config) --libs-only-l fontconfig)', | 112 ], |
| 101 ], | 113 'libraries': [ |
| 102 }, | 114 '<!@(<(pkg-config) --libs-only-l fontconfig)', |
| 115 ], |
| 116 }, |
| 117 }]] |
| 103 }, | 118 }, |
| 104 { | 119 { |
| 105 'target_name': 'gdk', | 120 'target_name': 'gdk', |
| 106 'type': 'settings', | 121 'type': 'settings', |
| 107 'direct_dependent_settings': { | 122 'conditions': [ |
| 108 'cflags': [ | 123 ['_toolset=="target"', { |
| 109 '<!@(<(pkg-config) --cflags gdk-2.0)', | 124 'direct_dependent_settings': { |
| 110 ], | 125 'cflags': [ |
| 111 }, | 126 '<!@(<(pkg-config) --cflags gdk-2.0)', |
| 112 'link_settings': { | 127 ], |
| 113 'ldflags': [ | 128 }, |
| 114 '<!@(<(pkg-config) --libs-only-L --libs-only-other gdk-2.0)', | 129 'link_settings': { |
| 115 ], | 130 'ldflags': [ |
| 116 'libraries': [ | 131 '<!@(<(pkg-config) --libs-only-L --libs-only-other gdk-2.0)', |
| 117 '<!@(<(pkg-config) --libs-only-l gdk-2.0)', | 132 ], |
| 118 ], | 133 'libraries': [ |
| 119 }, | 134 '<!@(<(pkg-config) --libs-only-l gdk-2.0)', |
| 135 ], |
| 136 }, |
| 137 }]] |
| 120 }, | 138 }, |
| 121 { | 139 { |
| 122 'target_name': 'gconf', | 140 'target_name': 'gconf', |
| 123 'type': 'settings', | 141 'type': 'settings', |
| 124 'direct_dependent_settings': { | 142 'conditions': [ |
| 125 'cflags': [ | 143 ['_toolset=="target"', { |
| 126 '<!@(<(pkg-config) --cflags gconf-2.0)', | 144 'direct_dependent_settings': { |
| 127 ], | 145 'cflags': [ |
| 128 }, | 146 '<!@(<(pkg-config) --cflags gconf-2.0)', |
| 129 'link_settings': { | 147 ], |
| 130 'ldflags': [ | 148 }, |
| 131 '<!@(<(pkg-config) --libs-only-L --libs-only-other gconf-2.0)', | 149 'link_settings': { |
| 132 ], | 150 'ldflags': [ |
| 133 'libraries': [ | 151 '<!@(<(pkg-config) --libs-only-L --libs-only-other gconf-2.0)', |
| 134 '<!@(<(pkg-config) --libs-only-l gconf-2.0)', | 152 ], |
| 135 ], | 153 'libraries': [ |
| 136 }, | 154 '<!@(<(pkg-config) --libs-only-l gconf-2.0)', |
| 155 ], |
| 156 }, |
| 157 }]] |
| 137 }, | 158 }, |
| 138 { | 159 { |
| 139 'target_name': 'x11', | 160 'target_name': 'x11', |
| 140 'type': 'settings', | 161 'type': 'settings', |
| 141 'direct_dependent_settings': { | 162 'conditions': [ |
| 142 'cflags': [ | 163 ['_toolset=="target"', { |
| 143 '<!@(<(pkg-config) --cflags x11)', | 164 'direct_dependent_settings': { |
| 144 ], | 165 'cflags': [ |
| 145 }, | 166 '<!@(<(pkg-config) --cflags x11)', |
| 146 'link_settings': { | 167 ], |
| 147 'ldflags': [ | 168 }, |
| 148 '<!@(<(pkg-config) --libs-only-L --libs-only-other x11)', | 169 'link_settings': { |
| 149 ], | 170 'ldflags': [ |
| 150 'libraries': [ | 171 '<!@(<(pkg-config) --libs-only-L --libs-only-other x11)', |
| 151 '<!@(<(pkg-config) --libs-only-l x11)', | 172 ], |
| 152 ], | 173 'libraries': [ |
| 153 }, | 174 '<!@(<(pkg-config) --libs-only-l x11)', |
| 175 ], |
| 176 }, |
| 177 }]] |
| 154 }, | 178 }, |
| 155 { | 179 { |
| 156 'target_name': 'selinux', | 180 'target_name': 'selinux', |
| 157 'type': 'settings', | 181 'type': 'settings', |
| 158 'link_settings': { | 182 'conditions': [ |
| 159 'libraries': [ | 183 ['_toolset=="target"', { |
| 160 '-lselinux', | 184 'link_settings': { |
| 161 ], | 185 'libraries': [ |
| 162 }, | 186 '-lselinux', |
| 187 ], |
| 188 }, |
| 189 }]] |
| 163 }, | 190 }, |
| 164 # TODO(evanm): temporarily disabled while we figure out whether to depend | 191 # TODO(evanm): temporarily disabled while we figure out whether to depend |
| 165 # on gnome-keyring etc. | 192 # on gnome-keyring etc. |
| 166 # http://code.google.com/p/chromium/issues/detail?id=12351 | 193 # http://code.google.com/p/chromium/issues/detail?id=12351 |
| 167 # { | 194 # { |
| 168 # 'target_name': 'gnome-keyring', | 195 # 'target_name': 'gnome-keyring', |
| 169 # 'type': 'settings', | 196 # 'type': 'settings', |
| 170 # 'direct_dependent_settings': { | 197 # 'direct_dependent_settings': { |
| 171 # 'cflags': [ | 198 # 'cflags': [ |
| 172 # '<!@(<(pkg-config) --cflags gnome-keyring-1)', | 199 # '<!@(<(pkg-config) --cflags gnome-keyring-1)', |
| (...skipping 26 matching lines...) Expand all Loading... |
| 199 # }, | 226 # }, |
| 200 # }, | 227 # }, |
| 201 ], | 228 ], |
| 202 } | 229 } |
| 203 | 230 |
| 204 # Local Variables: | 231 # Local Variables: |
| 205 # tab-width:2 | 232 # tab-width:2 |
| 206 # indent-tabs-mode:nil | 233 # indent-tabs-mode:nil |
| 207 # End: | 234 # End: |
| 208 # vim: set expandtab tabstop=2 shiftwidth=2: | 235 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |