mtklein | 25c81d4 | 2016-07-27 13:55:26 -0700 | [diff] [blame] | 1 | # 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 | declare_args() { |
Mike Klein | e459afd | 2017-03-03 09:21:30 -0500 | [diff] [blame] | 7 | skia_use_system_expat = is_official_build |
mtklein | 25c81d4 | 2016-07-27 13:55:26 -0700 | [diff] [blame] | 8 | } |
| 9 | |
| 10 | import("../third_party.gni") |
| 11 | |
Mike Klein | 10d665d | 2016-11-01 11:46:10 -0400 | [diff] [blame] | 12 | if (skia_use_system_expat) { |
| 13 | system("expat") { |
| 14 | libs = [ "expat" ] |
| 15 | } |
| 16 | } else { |
| 17 | third_party("expat") { |
| 18 | public_defines = [ "XML_STATIC" ] |
| 19 | public_include_dirs = [ "../externals/expat/lib" ] |
mtklein | 25c81d4 | 2016-07-27 13:55:26 -0700 | [diff] [blame] | 20 | |
Mike Klein | 10d665d | 2016-11-01 11:46:10 -0400 | [diff] [blame] | 21 | defines = [ "HAVE_MEMMOVE" ] |
mtklein | 25c81d4 | 2016-07-27 13:55:26 -0700 | [diff] [blame] | 22 | |
Mike Klein | 10d665d | 2016-11-01 11:46:10 -0400 | [diff] [blame] | 23 | sources = [ |
| 24 | "../externals/expat/lib/xmlparse.c", |
| 25 | "../externals/expat/lib/xmlrole.c", |
| 26 | "../externals/expat/lib/xmltok.c", |
| 27 | ] |
| 28 | } |
mtklein | 25c81d4 | 2016-07-27 13:55:26 -0700 | [diff] [blame] | 29 | } |