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",
62 config("libxslt_warnings") {
65 # libxslt stores a char[3] in a `const unsigned char*`.
68 # xsltDefaultRegion and xsltCalibrateTimestamps are only
69 # used with certain preprocessor defines set.
70 "-Wno-unused-function",
74 configs -= [ "//build/config/compiler:chromium_code" ]
75 configs += [ "//build/config/compiler:no_chromium_code" ]
76 configs += [ ":libxslt_warnings" ]
77 public_configs = [ ":libxslt_config" ]
80 if (is_linux || is_android) {
81 include_dirs = [ "linux" ]
83 include_dirs = [ "win32" ]
84 cflags += [ "/wd4267" ] # size_t to int.
86 include_dirs = [ "mac" ]
90 "//third_party/libxml",