diff options
author | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-09 04:28:47 +0000 |
---|---|---|
committer | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-09 04:28:47 +0000 |
commit | 287853f5df9ee14f1e3c7b9075fbfea3fb0f6ddb (patch) | |
tree | 725ddfc7ff5b78272d6893cc909b1c18824ba454 /third_party | |
parent | 0840ec5e966c33b496dd85bea061ccd41e629b5e (diff) | |
download | chromium_src-287853f5df9ee14f1e3c7b9075fbfea3fb0f6ddb.zip chromium_src-287853f5df9ee14f1e3c7b9075fbfea3fb0f6ddb.tar.gz chromium_src-287853f5df9ee14f1e3c7b9075fbfea3fb0f6ddb.tar.bz2 |
Compile expat for PNaCl
Added expat_nacl target that compiles expat for PNaCl
BUG=276739
Review URL: https://codereview.chromium.org/120303002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243765 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party')
-rw-r--r-- | third_party/expat/expat_nacl.gyp | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/third_party/expat/expat_nacl.gyp b/third_party/expat/expat_nacl.gyp new file mode 100644 index 0000000..ea7811c --- /dev/null +++ b/third_party/expat/expat_nacl.gyp @@ -0,0 +1,47 @@ +# Copyright 2014 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. + +{ + 'includes': [ + '../../native_client/build/untrusted.gypi', + ], + 'targets': [ + { + 'target_name': 'expat_nacl', + 'type': 'none', + 'variables': { + 'nlib_target': 'libexpat_nacl.a', + 'build_glibc': 0, + 'build_newlib': 0, + 'build_pnacl_newlib': 1, + }, + 'sources': [ + 'files/lib/expat.h', + 'files/lib/xmlparse.c', + 'files/lib/xmlrole.c', + 'files/lib/xmltok.c', + ], + 'include_dirs': [ + 'files/lib', + ], + 'defines': [ + '_LIB', + 'XML_STATIC', + 'HAVE_MEMMOVE', + ], + 'compile_flags': [ + '-Wno-enum-conversion', + '-Wno-switch', + ], + 'direct_dependent_settings': { + 'include_dirs': [ + 'files/lib' + ], + 'defines': [ + 'XML_STATIC', # Tell dependants to expect static linkage. + ], + }, + }, + ], +} |