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

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

Issue 3063009: Revert the changes to libxml.gyp in r52725.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Fix macro redefined warning. Created 10 years, 4 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
« no previous file with comments | « no previous file | 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) 2009 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2009 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 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { 8 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
9 'os_include': 'linux' 9 'os_include': 'linux'
10 }], 10 }],
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 'xmlregexp.c', 141 'xmlregexp.c',
142 'xmlsave.c', 142 'xmlsave.c',
143 'xmlschemas.c', 143 'xmlschemas.c',
144 'xmlschemastypes.c', 144 'xmlschemastypes.c',
145 'xmlstring.c', 145 'xmlstring.c',
146 'xmlunicode.c', 146 'xmlunicode.c',
147 'xmlwriter.c', 147 'xmlwriter.c',
148 'xpath.c', 148 'xpath.c',
149 'xpointer.c', 149 'xpointer.c',
150 ], 150 ],
151 'defines': [
152 # Define LIBXML_STATIC as nothing to match how libxml.h
153 # (an internal header) defines LIBXML_STATIC, otherwise
154 # we get the macro redefined warning from GCC. (-DFOO
155 # defines the macro FOO as 1.)
156 'LIBXML_STATIC=',
157 ],
151 'include_dirs': [ 158 'include_dirs': [
152 '<(os_include)', 159 '<(os_include)',
153 '<(os_include)/include', 160 '<(os_include)/include',
154 'include', 161 'include',
155 ], 162 ],
156 'dependencies': [ 163 'dependencies': [
157 '../icu/icu.gyp:icuuc', 164 '../icu/icu.gyp:icuuc',
158 '../zlib/zlib.gyp:zlib', 165 '../zlib/zlib.gyp:zlib',
159 ], 166 ],
160 'export_dependent_settings': [ 167 'export_dependent_settings': [
161 '../icu/icu.gyp:icuuc', 168 '../icu/icu.gyp:icuuc',
162 ], 169 ],
163 'direct_dependent_settings': { 170 'direct_dependent_settings': {
171 'defines': [
172 'LIBXML_STATIC',
Evan Martin 2010/07/27 18:22:53 Should this also be 'LIBXML_STATIC='?
173 ],
164 'include_dirs': [ 174 'include_dirs': [
165 '<(os_include)/include', 175 '<(os_include)/include',
166 'include', 176 'include',
167 ], 177 ],
168 }, 178 },
169 'conditions': [ 179 'conditions': [
170 ['OS=="linux"', { 180 ['OS=="linux"', {
171 'link_settings': { 181 'link_settings': {
172 'libraries': [ 182 'libraries': [
173 # We need dl for dlopen() and friends. 183 # We need dl for dlopen() and friends.
174 '-ldl', 184 '-ldl',
175 ], 185 ],
176 }, 186 },
177 }], 187 }],
178 ['OS=="mac"', {'defines': ['_REENTRANT']}], 188 ['OS=="mac"', {'defines': ['_REENTRANT']}],
179 ['OS=="win"', { 189 ['OS=="win"', {
180 'product_name': 'libxml2', 190 'product_name': 'libxml2',
181 'defines': [
182 # This symbol prevents libxml from marking its functions with
183 # __declspec(dllexport).
184 'LIBXML_STATIC',
185 ],
186 }, { # else: OS!="win" 191 }, { # else: OS!="win"
187 'product_name': 'xml2', 192 'product_name': 'xml2',
188 }], 193 }],
189 ], 194 ],
190 }], 195 }],
191 ], 196 ],
192 }, 197 },
193 ], 198 ],
194 } 199 }
195 200
196 # Local Variables: 201 # Local Variables:
197 # tab-width:2 202 # tab-width:2
198 # indent-tabs-mode:nil 203 # indent-tabs-mode:nil
199 # End: 204 # End:
200 # vim: set expandtab tabstop=2 shiftwidth=2: 205 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698