1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 config("libxslt_config") {
6 defines = [ "LIBXSLT_STATIC" ]
10 static_library("libxslt") {
12 "libxslt/attributes.c",
13 "libxslt/attributes.h",
15 "libxslt/documents.c",
16 "libxslt/documents.h",
17 "libxslt/extensions.c",
18 "libxslt/extensions.h",
21 "libxslt/functions.c",
22 "libxslt/functions.h",
28 "libxslt/namespaces.c",
29 "libxslt/namespaces.h",
31 "libxslt/numbersInternals.h",
38 "libxslt/templates.c",
39 "libxslt/templates.h",
40 "libxslt/transform.c",
41 "libxslt/transform.h",
44 "libxslt/variables.c",
45 "libxslt/variables.h",
46 "libxslt/win32config.h",
49 "libxslt/xsltInternals.h",
50 "libxslt/xsltconfig.h",
51 "libxslt/xsltexports.h",
52 "libxslt/xsltlocale.c",
53 "libxslt/xsltlocale.h",
54 "libxslt/xsltutils.c",
55 "libxslt/xsltutils.h",
56 "libxslt/xsltwin32config.h",
61 configs -= [ "//build/config/compiler:chromium_code" ]
62 configs += [ "//build/config/compiler:no_chromium_code" ]
63 public_configs = [ ":libxslt_config" ]
65 if (is_linux || is_android) {
66 include_dirs = [ "linux" ]
68 include_dirs = [ "win32" ]
70 include_dirs = [ "mac" ]
74 cflags = [ "-Wno-pointer-sign" ]
78 "//third_party/libxml",