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 config("libxslt_warnings") {
13 # libxslt stores a char[3] in a `const unsigned char*`.
16 # xsltDefaultRegion and xsltCalibrateTimestamps are only
17 # used with certain preprocessor defines set.
18 "-Wno-unused-function",
23 static_library("libxslt") {
25 "libxslt/attributes.c",
26 "libxslt/attributes.h",
28 "libxslt/documents.c",
29 "libxslt/documents.h",
30 "libxslt/extensions.c",
31 "libxslt/extensions.h",
34 "libxslt/functions.c",
35 "libxslt/functions.h",
41 "libxslt/namespaces.c",
42 "libxslt/namespaces.h",
44 "libxslt/numbersInternals.h",
51 "libxslt/templates.c",
52 "libxslt/templates.h",
53 "libxslt/transform.c",
54 "libxslt/transform.h",
57 "libxslt/variables.c",
58 "libxslt/variables.h",
59 "libxslt/win32config.h",
62 "libxslt/xsltInternals.h",
63 "libxslt/xsltconfig.h",
64 "libxslt/xsltexports.h",
65 "libxslt/xsltlocale.c",
66 "libxslt/xsltlocale.h",
67 "libxslt/xsltutils.c",
68 "libxslt/xsltutils.h",
69 "libxslt/xsltwin32config.h",
75 configs -= [ "//build/config/compiler:chromium_code" ]
77 "//build/config/compiler:no_chromium_code",
79 # Must be after no_chromium_code for warning flags to be ordered correctly.
82 public_configs = [ ":libxslt_config" ]
85 if (is_linux || is_android) {
86 include_dirs = [ "linux" ]
88 include_dirs = [ "win32" ]
89 cflags += [ "/wd4267" ] # size_t to int.
91 include_dirs = [ "mac" ]
95 "//third_party/libxml",