OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 config("libxslt_config") { | 5 config("libxslt_config") { |
6 defines = [ "LIBXSLT_STATIC" ] | 6 defines = [ "LIBXSLT_STATIC" ] |
7 include_dirs = [ "." ] | 7 include_dirs = [ "src" ] |
8 } | 8 } |
9 | 9 |
10 config("libxslt_warnings") { | 10 config("libxslt_warnings") { |
11 if (is_clang) { | 11 if (is_clang) { |
12 cflags = [ | 12 cflags = [ |
13 # libxslt stores a char[3] in a `const unsigned char*`. | 13 # libxslt stores a char[3] in a `const unsigned char*`. |
14 "-Wno-pointer-sign", | 14 "-Wno-pointer-sign", |
15 | 15 |
16 # xsltDefaultRegion and xsltCalibrateTimestamps are only | 16 # xsltDefaultRegion and xsltCalibrateTimestamps are only |
17 # used with certain preprocessor defines set. | 17 # used with certain preprocessor defines set. |
18 "-Wno-unused-function", | 18 "-Wno-unused-function", |
19 ] | 19 ] |
20 } | 20 } |
21 } | 21 } |
22 | 22 |
23 static_library("libxslt") { | 23 static_library("libxslt") { |
24 sources = [ | 24 sources = [ |
25 "libxslt/attributes.c", | 25 "src/libxslt/attributes.c", |
26 "libxslt/attributes.h", | 26 "src/libxslt/attributes.h", |
27 "libxslt/attrvt.c", | 27 "src/libxslt/attrvt.c", |
28 "libxslt/documents.c", | 28 "src/libxslt/documents.c", |
29 "libxslt/documents.h", | 29 "src/libxslt/documents.h", |
30 "libxslt/extensions.c", | 30 "src/libxslt/extensions.c", |
31 "libxslt/extensions.h", | 31 "src/libxslt/extensions.h", |
32 "libxslt/extra.c", | 32 "src/libxslt/extra.c", |
33 "libxslt/extra.h", | 33 "src/libxslt/extra.h", |
34 "libxslt/functions.c", | 34 "src/libxslt/functions.c", |
35 "libxslt/functions.h", | 35 "src/libxslt/functions.h", |
36 "libxslt/imports.c", | 36 "src/libxslt/imports.c", |
37 "libxslt/imports.h", | 37 "src/libxslt/imports.h", |
38 "libxslt/keys.c", | 38 "src/libxslt/keys.c", |
39 "libxslt/keys.h", | 39 "src/libxslt/keys.h", |
40 "libxslt/libxslt.h", | 40 "src/libxslt/libxslt.h", |
41 "libxslt/namespaces.c", | 41 "src/libxslt/namespaces.c", |
42 "libxslt/namespaces.h", | 42 "src/libxslt/namespaces.h", |
43 "libxslt/numbers.c", | 43 "src/libxslt/numbers.c", |
44 "libxslt/numbersInternals.h", | 44 "src/libxslt/numbersInternals.h", |
45 "libxslt/pattern.c", | 45 "src/libxslt/pattern.c", |
46 "libxslt/pattern.h", | 46 "src/libxslt/pattern.h", |
47 "libxslt/preproc.c", | 47 "src/libxslt/preproc.c", |
48 "libxslt/preproc.h", | 48 "src/libxslt/preproc.h", |
49 "libxslt/security.c", | 49 "src/libxslt/security.c", |
50 "libxslt/security.h", | 50 "src/libxslt/security.h", |
51 "libxslt/templates.c", | 51 "src/libxslt/templates.c", |
52 "libxslt/templates.h", | 52 "src/libxslt/templates.h", |
53 "libxslt/transform.c", | 53 "src/libxslt/transform.c", |
54 "libxslt/transform.h", | 54 "src/libxslt/transform.h", |
55 "libxslt/trio.h", | 55 "src/libxslt/trio.h", |
56 "libxslt/triodef.h", | 56 "src/libxslt/triodef.h", |
57 "libxslt/variables.c", | 57 "src/libxslt/variables.c", |
58 "libxslt/variables.h", | 58 "src/libxslt/variables.h", |
59 "libxslt/win32config.h", | 59 "src/libxslt/win32config.h", |
60 "libxslt/xslt.c", | 60 "src/libxslt/xslt.c", |
61 "libxslt/xslt.h", | 61 "src/libxslt/xslt.h", |
62 "libxslt/xsltInternals.h", | 62 "src/libxslt/xsltInternals.h", |
63 "libxslt/xsltconfig.h", | 63 "src/libxslt/xsltconfig.h", |
64 "libxslt/xsltexports.h", | 64 "src/libxslt/xsltexports.h", |
65 "libxslt/xsltlocale.c", | 65 "src/libxslt/xsltlocale.c", |
66 "libxslt/xsltlocale.h", | 66 "src/libxslt/xsltlocale.h", |
67 "libxslt/xsltutils.c", | 67 "src/libxslt/xsltutils.c", |
68 "libxslt/xsltutils.h", | 68 "src/libxslt/xsltutils.h", |
69 "libxslt/xsltwin32config.h", | 69 "src/libxslt/xsltwin32config.h", |
70 "linux/config.h", | 70 "linux/config.h", |
71 "mac/config.h", | 71 "mac/config.h", |
72 "win32/config.h", | 72 "win32/config.h", |
73 ] | 73 ] |
74 | 74 |
75 configs -= [ "//build/config/compiler:chromium_code" ] | 75 configs -= [ "//build/config/compiler:chromium_code" ] |
76 configs += [ | 76 configs += [ |
77 "//build/config/compiler:no_chromium_code", | 77 "//build/config/compiler:no_chromium_code", |
78 | 78 |
79 # Must be after no_chromium_code for warning flags to be ordered correctly. | 79 # Must be after no_chromium_code for warning flags to be ordered correctly. |
(...skipping 14 matching lines...) Expand all Loading... |
94 "/wd4311", | 94 "/wd4311", |
95 ] | 95 ] |
96 } else if (is_mac) { | 96 } else if (is_mac) { |
97 include_dirs = [ "mac" ] | 97 include_dirs = [ "mac" ] |
98 } | 98 } |
99 | 99 |
100 deps = [ | 100 deps = [ |
101 "//third_party/libxml", | 101 "//third_party/libxml", |
102 ] | 102 ] |
103 } | 103 } |
OLD | NEW |