1 # Copyright (c) 2009 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.
8 ['os_posix == 1 and OS != "mac"', {
11 ['OS=="mac"', {'os_include': 'mac'}],
12 ['OS=="win"', {'os_include': 'win32'}],
14 # We used to have a separate flag for using the system
15 # libxslt, but it seems mixing Chrome libxml and system
16 # libxslt causes crashes that nobody has had time to diagnose.
17 # So just put them both behind the same flag for now.
18 'use_system_libxml%': 0,
22 'target_name': 'libxslt',
24 ['os_posix == 1 and OS != "mac" and use_system_libxml', {
26 'direct_dependent_settings': {
28 '<!@(pkg-config --cflags libxslt)',
33 '<!@(pkg-config --libs-only-L --libs-only-other libxslt)',
36 '<!@(pkg-config --libs-only-l libxslt)',
39 }, { # else: os_posix != 1 or OS == "mac" or ! use_system_libxml
40 'type': 'static_library',
42 'libxslt/attributes.c',
43 'libxslt/attributes.h',
45 'libxslt/documents.c',
46 'libxslt/documents.h',
47 'libxslt/extensions.c',
48 'libxslt/extensions.h',
51 'libxslt/functions.c',
52 'libxslt/functions.h',
58 'libxslt/namespaces.c',
59 'libxslt/namespaces.h',
61 'libxslt/numbersInternals.h',
68 'libxslt/templates.c',
69 'libxslt/templates.h',
70 'libxslt/transform.c',
71 'libxslt/transform.h',
74 'libxslt/variables.c',
75 'libxslt/variables.h',
76 'libxslt/win32config.h',
79 'libxslt/xsltconfig.h',
80 'libxslt/xsltexports.h',
81 'libxslt/xsltInternals.h',
82 'libxslt/xsltlocale.c',
83 'libxslt/xsltlocale.h',
84 'libxslt/xsltutils.c',
85 'libxslt/xsltutils.h',
86 'libxslt/xsltwin32config.h',
89 # TODO(port): Need a pregenerated win32/config.h?
99 '../libxml/libxml.gyp:libxml',
101 'direct_dependent_settings': {
109 'msvs_disabled_warnings': [
110 # size_t to int conversion.
114 'clang_warning_flags': [
115 # libxslt stores a char[3] in a `const unsigned char*`.
120 ['OS!="win"', {'product_name': 'xslt'}],