skia2/gyp/expat.gyp
fmalita 771a190a00 Build Expat on all platforms
* bump version to @android-6.0.1_r55 (2.1.1)

* add as a dependency to the 'xml' target (for upcoming http://crrev.com/2142893006)

* tweak build for Mac, Win:

  - define HAVE_EXPAT_CONFIG_H (same as in Android.mk)
  - use -Wno-missing-field-initializers (same as in Android.mk)
  - suppress MSVS warning 4244 (same as ..cmake/Utilities/cmexpat/expatConfig.h.in)

GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2150603004
R=mtklein@google.com

Review-Url: https://codereview.chromium.org/2150603004
2016-07-14 14:02:24 -07:00

29 lines
907 B
Python

# Copyright 2016 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Build expat from source.
{
'targets': [{
'target_name': 'expat',
'type': 'static_library',
'cflags': [ '-Wno-missing-field-initializers' ],
'xcode_settings': { 'WARNING_CFLAGS': [ '-Wno-missing-field-initializers', ], },
'msvs_disabled_warnings': [4244],
'defines': [ 'HAVE_EXPAT_CONFIG_H' ],
'include_dirs': [
'../third_party/externals/expat',
],
'sources': [
'../third_party/externals/expat/lib/xmlparse.c',
'../third_party/externals/expat/lib/xmlrole.c',
'../third_party/externals/expat/lib/xmltok.c',
],
'direct_dependent_settings': {
'include_dirs': [ '../third_party/externals/expat/lib' ],
},
}]
}