| OLD | NEW | 
|---|
| 1 # Copyright 2016 Google Inc. | 1 # Copyright 2016 Google Inc. | 
| 2 # | 2 # | 
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be | 
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. | 
| 5 | 5 | 
| 6 # Build expat from source. | 6 # Build expat from source. | 
| 7 | 7 | 
| 8 { | 8 { | 
| 9     'targets': [{ | 9     'targets': [ | 
| 10         'target_name': 'expat', | 10     { | 
|  | 11       'target_name': 'expat', | 
|  | 12       'type': 'none', | 
|  | 13       'conditions': [ | 
|  | 14         [ 'skia_android_framework', { | 
|  | 15             'dependencies':              [ 'android_deps.gyp:expat' ], | 
|  | 16             'export_dependent_settings': [ 'android_deps.gyp:expat' ], | 
|  | 17         },{ | 
|  | 18             'dependencies':              [ 'expat.gyp:expat_static' ], | 
|  | 19             'export_dependent_settings': [ 'expat.gyp:expat_static' ], | 
|  | 20         }] | 
|  | 21       ] | 
|  | 22     }, | 
|  | 23     { | 
|  | 24         'target_name': 'expat_static', | 
| 11         'type': 'static_library', | 25         'type': 'static_library', | 
| 12         'cflags': [ '-Wno-missing-field-initializers' ], | 26         'cflags': [ '-Wno-missing-field-initializers' ], | 
| 13         'xcode_settings': { 'WARNING_CFLAGS': [ '-Wno-missing-field-initializers
    ', ], }, | 27         'xcode_settings': { 'WARNING_CFLAGS': [ '-Wno-missing-field-initializers
    ', ], }, | 
| 14         'msvs_disabled_warnings': [4244], | 28         'msvs_disabled_warnings': [4244], | 
| 15         'defines': [ | 29         'defines': [ | 
| 16             'HAVE_EXPAT_CONFIG_H', | 30             'HAVE_EXPAT_CONFIG_H', | 
| 17             'XML_STATIC', # Compile for static linkage. | 31             'XML_STATIC', # Compile for static linkage. | 
| 18         ], | 32         ], | 
| 19         'include_dirs': [ | 33         'include_dirs': [ | 
| 20             '../third_party/externals/expat', | 34             '../third_party/externals/expat', | 
| 21         ], | 35         ], | 
| 22         'sources': [ | 36         'sources': [ | 
| 23             '../third_party/externals/expat/lib/xmlparse.c', | 37             '../third_party/externals/expat/lib/xmlparse.c', | 
| 24             '../third_party/externals/expat/lib/xmlrole.c', | 38             '../third_party/externals/expat/lib/xmlrole.c', | 
| 25             '../third_party/externals/expat/lib/xmltok.c', | 39             '../third_party/externals/expat/lib/xmltok.c', | 
| 26         ], | 40         ], | 
| 27         'direct_dependent_settings': { | 41         'direct_dependent_settings': { | 
| 28             'include_dirs': [ | 42             'include_dirs': [ | 
| 29                 '../third_party/externals/expat/lib', | 43                 '../third_party/externals/expat/lib', | 
| 30             ], | 44             ], | 
| 31             'defines': [ | 45             'defines': [ | 
| 32                 'XML_STATIC',  # Tell dependants to expect static linkage. | 46                 'XML_STATIC',  # Tell dependants to expect static linkage. | 
| 33             ], | 47             ], | 
| 34         }, | 48         }, | 
| 35     }] | 49     }] | 
| 36 } | 50 } | 
| OLD | NEW | 
|---|