| OLD | NEW |
| 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"', { |
| 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 ['os_posix == 1 and OS != "mac" and use_system_libxml', { |
| 23 'type': 'none', | 23 'type': 'static_library', |
| 24 'sources': [ |
| 25 'chromium/include/libxml/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 'include_dirs': [ |
| 35 'chromium/include', |
| 36 ], |
| 24 'direct_dependent_settings': { | 37 'direct_dependent_settings': { |
| 25 'cflags': [ | 38 'cflags': [ |
| 26 '<!@(pkg-config --cflags libxml-2.0)', | 39 '<!@(pkg-config --cflags libxml-2.0)', |
| 27 ], | 40 ], |
| 28 'defines': [ | 41 'defines': [ |
| 29 'USE_SYSTEM_LIBXML', | 42 'USE_SYSTEM_LIBXML', |
| 30 ], | 43 ], |
| 44 'include_dirs': [ |
| 45 'chromium/include', |
| 46 ], |
| 31 }, | 47 }, |
| 32 'link_settings': { | 48 'link_settings': { |
| 33 'ldflags': [ | 49 'ldflags': [ |
| 34 '<!@(pkg-config --libs-only-L --libs-only-other libxml-2.0)', | 50 '<!@(pkg-config --libs-only-L --libs-only-other libxml-2.0)', |
| 35 ], | 51 ], |
| 36 'libraries': [ | 52 'libraries': [ |
| 37 '<!@(pkg-config --libs-only-l libxml-2.0)', | 53 '<!@(pkg-config --libs-only-l libxml-2.0)', |
| 38 ], | 54 ], |
| 39 }, | 55 }, |
| 40 }, { # else: os_posix != 1 or OS == "mac" or ! use_system_libxml | 56 }, { # else: os_posix != 1 or OS == "mac" or ! use_system_libxml |
| 41 'type': 'static_library', | 57 'type': 'static_library', |
| 42 'sources': [ | 58 'sources': [ |
| 59 'chromium/include/libxml/libxml_utils.h', |
| 60 'chromium/libxml_utils.cc', |
| 43 'linux/config.h', | 61 'linux/config.h', |
| 44 'linux/include/libxml/xmlversion.h', | 62 'linux/include/libxml/xmlversion.h', |
| 45 'mac/config.h', | 63 'mac/config.h', |
| 46 'mac/include/libxml/xmlversion.h', | 64 'mac/include/libxml/xmlversion.h', |
| 47 'src/include/libxml/c14n.h', | 65 'src/include/libxml/c14n.h', |
| 48 'src/include/libxml/catalog.h', | 66 'src/include/libxml/catalog.h', |
| 49 'src/include/libxml/chvalid.h', | 67 'src/include/libxml/chvalid.h', |
| 50 'src/include/libxml/debugXML.h', | 68 'src/include/libxml/debugXML.h', |
| 51 'src/include/libxml/dict.h', | 69 'src/include/libxml/dict.h', |
| 52 'src/include/libxml/DOCBparser.h', | 70 'src/include/libxml/DOCBparser.h', |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 'defines': [ | 170 'defines': [ |
| 153 # Define LIBXML_STATIC as nothing to match how libxml.h | 171 # Define LIBXML_STATIC as nothing to match how libxml.h |
| 154 # (an internal header) defines LIBXML_STATIC, otherwise | 172 # (an internal header) defines LIBXML_STATIC, otherwise |
| 155 # we get the macro redefined warning from GCC. (-DFOO | 173 # we get the macro redefined warning from GCC. (-DFOO |
| 156 # defines the macro FOO as 1.) | 174 # defines the macro FOO as 1.) |
| 157 'LIBXML_STATIC=', | 175 'LIBXML_STATIC=', |
| 158 ], | 176 ], |
| 159 'include_dirs': [ | 177 'include_dirs': [ |
| 160 '<(os_include)', | 178 '<(os_include)', |
| 161 '<(os_include)/include', | 179 '<(os_include)/include', |
| 180 'chromium/include', |
| 162 'src/include', | 181 'src/include', |
| 163 ], | 182 ], |
| 164 'dependencies': [ | 183 'dependencies': [ |
| 165 '../icu/icu.gyp:icuuc', | 184 '../icu/icu.gyp:icuuc', |
| 166 '../zlib/zlib.gyp:zlib', | 185 '../zlib/zlib.gyp:zlib', |
| 167 ], | 186 ], |
| 168 'export_dependent_settings': [ | 187 'export_dependent_settings': [ |
| 169 '../icu/icu.gyp:icuuc', | 188 '../icu/icu.gyp:icuuc', |
| 170 ], | 189 ], |
| 171 'direct_dependent_settings': { | 190 'direct_dependent_settings': { |
| 172 'defines': [ | 191 'defines': [ |
| 173 'LIBXML_STATIC', | 192 'LIBXML_STATIC', |
| 174 ], | 193 ], |
| 175 'include_dirs': [ | 194 'include_dirs': [ |
| 176 '<(os_include)/include', | 195 '<(os_include)/include', |
| 196 'chromium/include', |
| 177 'src/include', | 197 'src/include', |
| 178 ], | 198 ], |
| 179 }, | 199 }, |
| 180 'conditions': [ | 200 'conditions': [ |
| 181 ['OS=="linux"', { | 201 ['OS=="linux"', { |
| 182 'link_settings': { | 202 'link_settings': { |
| 183 'libraries': [ | 203 'libraries': [ |
| 184 # We need dl for dlopen() and friends. | 204 # We need dl for dlopen() and friends. |
| 185 '-ldl', | 205 '-ldl', |
| 186 ], | 206 ], |
| (...skipping 25 matching lines...) Expand all Loading... |
| 212 '-Wno-pointer-sign', | 232 '-Wno-pointer-sign', |
| 213 '-Wno-empty-body', | 233 '-Wno-empty-body', |
| 214 ], | 234 ], |
| 215 }], | 235 }], |
| 216 ], | 236 ], |
| 217 }], | 237 }], |
| 218 ], | 238 ], |
| 219 }, | 239 }, |
| 220 ], | 240 ], |
| 221 } | 241 } |
| OLD | NEW |