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

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

Issue 10787018: Add support for libxml as a system library target on iOS (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebased 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
« no previous file with comments | « 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) 2012 The Chromium Authors. All rights reserved. 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 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': { 6 'variables': {
7 'conditions': [ 7 'conditions': [
8 # Define an "os_include" variable that points at the OS-specific generated 8 # Define an "os_include" variable that points at the OS-specific generated
9 # headers. These were generated by running the configure script offline. 9 # headers. These were generated by running the configure script offline.
10 ['os_posix == 1 and OS != "mac"', { 10 ['os_posix == 1 and OS != "mac" and OS != "ios"', {
11 'os_include': 'linux' 11 'os_include': 'linux'
12 }], 12 }],
13 ['OS=="mac"', {'os_include': 'mac'}], 13 ['OS=="mac"', {'os_include': 'mac'}],
14 ['OS=="win"', {'os_include': 'win32'}], 14 ['OS=="win"', {'os_include': 'win32'}],
15 ], 15 ],
16 'use_system_libxml%': 0, 16 'use_system_libxml%': 0,
17 }, 17 },
18 'targets': [ 18 'targets': [
19 { 19 {
20 'target_name': 'libxml', 20 'target_name': 'libxml',
21 'conditions': [ 21 'conditions': [
22 ['os_posix == 1 and OS != "mac" and use_system_libxml', { 22 ['use_system_libxml', {
23 'conditions': [
24 ['os_posix == 1 and OS != "mac" and OS != "ios"', {
25 'type': 'static_library',
26 'sources': [
27 'chromium/libxml_utils.h',
28 'chromium/libxml_utils.cc',
29 ],
30 'cflags': [
31 '<!@(pkg-config --cflags libxml-2.0)',
32 ],
33 'defines': [
34 'USE_SYSTEM_LIBXML',
35 ],
36 'direct_dependent_settings': {
37 'cflags': [
38 '<!@(pkg-config --cflags libxml-2.0)',
39 ],
40 'defines': [
41 'USE_SYSTEM_LIBXML',
42 ],
43 },
44 'link_settings': {
45 'ldflags': [
46 '<!@(pkg-config --libs-only-L --libs-only-other libxml-2.0)',
47 ],
48 'libraries': [
49 '<!@(pkg-config --libs-only-l libxml-2.0)',
50 ],
51 },
52 }],
53 ['OS == "ios"', {
54 'type': 'none',
55 'all_dependent_settings': {
56 'defines': [
57 'USE_SYSTEM_LIBXML',
58 ],
59 'include_dirs': [
60 '$(SDKROOT)/usr/include/libxml2',
61 ],
62 },
63 'link_settings': {
64 'libraries': [
65 '$(SDKROOT)/usr/lib/libxml2.dylib',
66 ],
67 },
68 }],
69 ],
70 }, { # else: !use_system_libxml
23 'type': 'static_library', 71 'type': 'static_library',
24 'sources': [ 72 'sources': [
25 'chromium/libxml_utils.h', 73 'chromium/libxml_utils.h',
26 'chromium/libxml_utils.cc',
27 ],
28 'cflags': [
29 '<!@(pkg-config --cflags libxml-2.0)',
30 ],
31 'defines': [
32 'USE_SYSTEM_LIBXML',
33 ],
34 'direct_dependent_settings': {
35 'cflags': [
36 '<!@(pkg-config --cflags libxml-2.0)',
37 ],
38 'defines': [
39 'USE_SYSTEM_LIBXML',
40 ],
41 },
42 'link_settings': {
43 'ldflags': [
44 '<!@(pkg-config --libs-only-L --libs-only-other libxml-2.0)',
45 ],
46 'libraries': [
47 '<!@(pkg-config --libs-only-l libxml-2.0)',
48 ],
49 },
50 }, { # else: os_posix != 1 or OS == "mac" or ! use_system_libxml
51 'type': 'static_library',
52 'sources': [
53 'chromium/libxml_utils.h',
54 'chromium/libxml_utils.cc', 74 'chromium/libxml_utils.cc',
55 'linux/config.h', 75 'linux/config.h',
56 'linux/include/libxml/xmlversion.h', 76 'linux/include/libxml/xmlversion.h',
57 'mac/config.h', 77 'mac/config.h',
58 'mac/include/libxml/xmlversion.h', 78 'mac/include/libxml/xmlversion.h',
59 'src/include/libxml/c14n.h', 79 'src/include/libxml/c14n.h',
60 'src/include/libxml/catalog.h', 80 'src/include/libxml/catalog.h',
61 'src/include/libxml/chvalid.h', 81 'src/include/libxml/chvalid.h',
62 'src/include/libxml/debugXML.h', 82 'src/include/libxml/debugXML.h',
63 'src/include/libxml/dict.h', 83 'src/include/libxml/dict.h',
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 '-Wno-pointer-sign', 244 '-Wno-pointer-sign',
225 '-Wno-empty-body', 245 '-Wno-empty-body',
226 ], 246 ],
227 }], 247 }],
228 ], 248 ],
229 }], 249 }],
230 ], 250 ],
231 }, 251 },
232 ], 252 ],
233 } 253 }
OLDNEW
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698