summaryrefslogtreecommitdiffstats
path: root/third_party/libxml/using_libxml.scons
blob: 709520fbe142a360aa8fa073b66f4046b39258f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

__doc__ = """
Settings for other components using the libxml library.
"""

Import("env")

if env.WantSystemLib('libxml'):
  env.Append(LIBS = ['xml2'])
else:
  env.Append(LIBS = ['libxml'])

env.Append(
    CPPPATH = [
        '$LIBXML_DIR/include',
        '$LIBXML_DIR/DerivedSources/include',
    ],
    CPPDEFINES = [
        'LIBXML_STATIC',
    ],
)