1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
8 # On Linux, we implicitly already depend on expat via fontconfig;
9 # let's not pull it in twice.
10 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
11 'use_system_expat%': 1,
13 'use_system_expat%': 0,
20 'XML_STATIC', # Compile for static linkage.
27 ['use_system_expat == 1', {
30 'target_name': 'expat',
39 'direct_dependent_settings': {
41 '<(android_src)/external/expat/lib',
48 }, { # else: use_system_expat != 1
51 'target_name': 'expat',
52 'type': 'static_library',
55 'files/lib/xmlparse.c',
56 'files/lib/xmlrole.c',
60 # Prefer adding a dependency to expat and relying on the following
61 # direct_dependent_settings rule over manually adding the include
62 # path. This is because you'll want any translation units that
63 # #include these files to pick up the #defines as well.
64 'direct_dependent_settings': {
69 'XML_STATIC', # Tell dependants to expect static linkage.
78 ['OS=="mac" or OS=="ios" or OS=="android" or os_bsd==1', {
80 'HAVE_EXPAT_CONFIG_H',