blob: aac9c62677c3d3baf077d64b5e979d323cc7848e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# Copyright (c) 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
if (is_linux) {
config("expat_config") {
libs = [ "expat" ]
}
group("expat") {
direct_dependent_configs = [ ":expat_config" ]
}
} else {
config("expat_config") {
include_dirs = [ "files/lib" ]
defines = [ "XML_STATIC" ]
}
static_library("expat") {
sources = [
"files/lib/expat.h",
"files/lib/xmlparse.c",
"files/lib/xmlrole.c",
"files/lib/xmltok.c",
]
direct_dependent_configs = [ ":expat_config" ]
defines = [ "_LIB" ]
if (is_win) {
defines += [ "COMPILED_FROM_DSP" ]
} else {
defines += [ "HAVE_EXPAT_CONFIG_H" ]
}
}
}
|