blob: b70632ace4979cf5aba2955042ff111244681011 [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{
djsollenec58b862016-07-15 12:52:34 -07009 'targets': [
10 {
11 'target_name': 'expat',
12 'type': 'none',
13 'conditions': [
14 [ 'skia_android_framework', {
msarett80d46cc2016-07-15 14:18:49 -070015 'dependencies': [ 'android_deps.gyp:expat_android' ],
16 'export_dependent_settings': [ 'android_deps.gyp:expat_android' ],
djsollenec58b862016-07-15 12:52:34 -070017 },{
18 'dependencies': [ 'expat.gyp:expat_static' ],
19 'export_dependent_settings': [ 'expat.gyp:expat_static' ],
20 }]
21 ]
22 },
23 {
24 'target_name': 'expat_static',
mtklein4e79f332016-02-07 13:31:23 -080025 'type': 'static_library',
fmalita771a1902016-07-14 14:02:24 -070026 'cflags': [ '-Wno-missing-field-initializers' ],
27 'xcode_settings': { 'WARNING_CFLAGS': [ '-Wno-missing-field-initializers', ], },
28 'msvs_disabled_warnings': [4244],
fmalita7445e862016-07-14 19:14:06 -070029 'defines': [
30 'HAVE_EXPAT_CONFIG_H',
31 'XML_STATIC', # Compile for static linkage.
32 ],
fmalita771a1902016-07-14 14:02:24 -070033 'include_dirs': [
fmalita7445e862016-07-14 19:14:06 -070034 '../third_party/externals/expat',
fmalita771a1902016-07-14 14:02:24 -070035 ],
mtklein4e79f332016-02-07 13:31:23 -080036 'sources': [
37 '../third_party/externals/expat/lib/xmlparse.c',
38 '../third_party/externals/expat/lib/xmlrole.c',
39 '../third_party/externals/expat/lib/xmltok.c',
40 ],
41 'direct_dependent_settings': {
fmalita7445e862016-07-14 19:14:06 -070042 'include_dirs': [
43 '../third_party/externals/expat/lib',
44 ],
45 'defines': [
46 'XML_STATIC', # Tell dependants to expect static linkage.
47 ],
mtklein4e79f332016-02-07 13:31:23 -080048 },
49 }]
50}