blob: 90e4e44f41fa8f601d757a61b5929cf8247c184b [file] [log] [blame]
mtklein4e79f332016-02-07 13:31:23 -08001# Copyright 2016 Google Inc.
2#
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
6# Build expat from source.
mtklein4e79f332016-02-07 13:31:23 -08007
8{
9 'targets': [{
10 'target_name': 'expat',
11 'type': 'static_library',
fmalita771a1902016-07-14 14:02:24 -070012 'cflags': [ '-Wno-missing-field-initializers' ],
13 'xcode_settings': { 'WARNING_CFLAGS': [ '-Wno-missing-field-initializers', ], },
14 'msvs_disabled_warnings': [4244],
fmalita7445e862016-07-14 19:14:06 -070015 'defines': [
16 'HAVE_EXPAT_CONFIG_H',
17 'XML_STATIC', # Compile for static linkage.
18 ],
fmalita771a1902016-07-14 14:02:24 -070019 'include_dirs': [
fmalita7445e862016-07-14 19:14:06 -070020 '../third_party/externals/expat',
fmalita771a1902016-07-14 14:02:24 -070021 ],
mtklein4e79f332016-02-07 13:31:23 -080022 'sources': [
23 '../third_party/externals/expat/lib/xmlparse.c',
24 '../third_party/externals/expat/lib/xmlrole.c',
25 '../third_party/externals/expat/lib/xmltok.c',
26 ],
27 'direct_dependent_settings': {
fmalita7445e862016-07-14 19:14:06 -070028 'include_dirs': [
29 '../third_party/externals/expat/lib',
30 ],
31 'defines': [
32 'XML_STATIC', # Tell dependants to expect static linkage.
33 ],
mtklein4e79f332016-02-07 13:31:23 -080034 },
35 }]
36}