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 'variables': { | 6 'variables': { |
7 'conditions': [ | 7 'conditions': [ |
8 ['OS=="linux" or OS=="freebsd"', {'os_include': 'linux'}], | 8 ['OS=="linux" or OS=="freebsd"', {'os_include': 'linux'}], |
9 ['OS=="mac"', {'os_include': 'mac'}], | 9 ['OS=="mac"', {'os_include': 'mac'}], |
10 ['OS=="win"', {'os_include': 'win32'}], | 10 ['OS=="win"', {'os_include': 'win32'}], |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 'direct_dependent_settings': { | 167 'direct_dependent_settings': { |
168 'defines': [ | 168 'defines': [ |
169 'LIBXML_STATIC', | 169 'LIBXML_STATIC', |
170 ], | 170 ], |
171 'include_dirs': [ | 171 'include_dirs': [ |
172 '<(os_include)/include', | 172 '<(os_include)/include', |
173 'include', | 173 'include', |
174 ], | 174 ], |
175 }, | 175 }, |
176 'conditions': [ | 176 'conditions': [ |
| 177 ['OS=="linux"', { |
| 178 'link_settings': { |
| 179 'libraries': [ |
| 180 # We need dl for dlopen() and friends. |
| 181 '-ldl', |
| 182 ], |
| 183 }, |
| 184 }], |
177 ['OS=="mac"', {'defines': ['_REENTRANT']}], | 185 ['OS=="mac"', {'defines': ['_REENTRANT']}], |
178 ['OS=="win"', { | 186 ['OS=="win"', { |
179 'product_name': 'libxml2', | 187 'product_name': 'libxml2', |
180 }, { # else: OS!="win" | 188 }, { # else: OS!="win" |
181 'product_name': 'xml2', | 189 'product_name': 'xml2', |
182 }], | 190 }], |
183 ], | 191 ], |
184 }], | 192 }], |
185 ], | 193 ], |
186 }, | 194 }, |
187 ], | 195 ], |
188 } | 196 } |
OLD | NEW |