OLD | NEW |
1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2006-2008 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 __doc__ = """ | 5 __doc__ = """ |
6 Settings for other components using the libxml library. | 6 Settings for other components using the libxml library. |
7 """ | 7 """ |
8 | 8 |
9 Import("env") | 9 Import("env") |
10 | 10 |
| 11 if env.WantSystemLib('libxml'): |
| 12 env.Append(LIBS = ['xml2']) |
| 13 else: |
| 14 env.Append(LIBS = ['libxml']) |
| 15 |
11 env.Append( | 16 env.Append( |
12 CPPPATH = [ | 17 CPPPATH = [ |
13 '$LIBXML_DIR/include', | 18 '$LIBXML_DIR/include', |
14 '$LIBXML_DIR/DerivedSources/include', | |
15 ], | |
16 CPPDEFINES = [ | |
17 'LIBXML_STATIC', | |
18 ], | |
19 LIBS = [ | |
20 env['XML_LIB'], | |
21 ], | |
22 ) | |
23 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | |
24 # Use of this source code is governed by a BSD-style license that can be | |
25 # found in the LICENSE file. | |
26 | |
27 __doc__ = """ | |
28 Settings for other components using the libxml library. | |
29 """ | |
30 | |
31 Import("env") | |
32 | |
33 env.Append( | |
34 CPPPATH = [ | |
35 '$LIBXML_DIR/include', | |
36 '$LIBXML_DIR/DerivedSources/include', | 19 '$LIBXML_DIR/DerivedSources/include', |
37 ], | 20 ], |
38 CPPDEFINES = [ | 21 CPPDEFINES = [ |
39 'LIBXML_STATIC', | 22 'LIBXML_STATIC', |
40 ], | 23 ], |
41 LIBS = [ | |
42 env['XML_LIB'], | |
43 ], | |
44 ) | 24 ) |
OLD | NEW |