Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: third_party/expat/expat.gyp

Issue 10704079: Add a gyp flag to allow use of the system's version of libexpat (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« build/common.gypi ('K') | « build/common.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'variables': {
7 'conditions': [
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 != "android"', {
11 'use_system_expat%': 1,
12 }, {
13 'use_system_expat%': 0,
14 }],
15 ],
16 },
6 'target_defaults': { 17 'target_defaults': {
7 'defines': [ 18 'defines': [
8 '_LIB', 19 '_LIB',
9 'XML_STATIC', # Compile for static linkage. 20 'XML_STATIC', # Compile for static linkage.
10 ], 21 ],
11 'include_dirs': [ 22 'include_dirs': [
12 'files/lib', 23 'files/lib',
13 ], 24 ],
14 'dependencies': [
15 ]
16 }, 25 },
17 'conditions': [ 26 'conditions': [
18 ['os_posix == 1 and OS != "mac" and OS != "android"', { 27 ['use_system_expat == 1', {
19 # On Linux, we implicitly already depend on expat via fontconfig;
20 # let's not pull it in twice.
21 'targets': [ 28 'targets': [
22 { 29 {
23 'target_name': 'expat', 30 'target_name': 'expat',
24 'type': 'none', 31 'type': 'none',
25 'link_settings': { 32 'link_settings': {
26 'libraries': [ 33 'libraries': [
27 '-lexpat', 34 '-lexpat',
28 ], 35 ],
29 }, 36 },
37 'conditions': [
38 ['OS=="android"', {
39 'direct_dependent_settings': {
40 'include_dirs': [
41 '<(android_src)/external/expat/lib',
42 ],
43 },
44 }],
45 ],
30 }, 46 },
31 ], 47 ],
32 }, { # OS != linux 48 }, { # else: use_system_expat != 1
33 'targets': [ 49 'targets': [
34 { 50 {
35 'target_name': 'expat', 51 'target_name': 'expat',
36 'type': 'static_library', 52 'type': 'static_library',
37 'sources': [ 53 'sources': [
38 'files/lib/expat.h', 54 'files/lib/expat.h',
39 'files/lib/xmlparse.c', 55 'files/lib/xmlparse.c',
40 'files/lib/xmlrole.c', 56 'files/lib/xmlrole.c',
41 'files/lib/xmltok.c', 57 'files/lib/xmltok.c',
42 ], 58 ],
(...skipping 20 matching lines...) Expand all
63 'defines': [ 79 'defines': [
64 'HAVE_EXPAT_CONFIG_H', 80 'HAVE_EXPAT_CONFIG_H',
65 ], 81 ],
66 }], 82 }],
67 ], 83 ],
68 }, 84 },
69 ], 85 ],
70 }], 86 }],
71 ], 87 ],
72 } 88 }
OLDNEW
« build/common.gypi ('K') | « build/common.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698