| OLD | NEW |
| 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"', {'os_include': 'linux'}], | 8 ['OS=="linux"', {'os_include': 'linux'}], |
| 9 ['OS=="mac"', {'os_include': 'mac'}], | 9 ['OS=="mac"', {'os_include': 'mac'}], |
| 10 ['OS=="win"', {'os_include': 'win32'}], | 10 ['OS=="win"', {'os_include': 'win32'}], |
| 11 ], | 11 ], |
| 12 'use_system_libxslt%': 0, |
| 12 }, | 13 }, |
| 13 'includes': [ | 14 'includes': [ |
| 14 '../../build/common.gypi', | 15 '../../build/common.gypi', |
| 15 ], | 16 ], |
| 16 'targets': [ | 17 'targets': [ |
| 17 { | 18 { |
| 18 'target_name': 'libxslt', | 19 'target_name': 'libxslt', |
| 19 'type': 'static_library', | |
| 20 'msvs_guid': 'F9810DE8-CBC3-4605-A7B1-ECA2D5292FD7', | |
| 21 'sources': [ | |
| 22 'libxslt/attributes.c', | |
| 23 'libxslt/attributes.h', | |
| 24 'libxslt/attrvt.c', | |
| 25 'libxslt/documents.c', | |
| 26 'libxslt/documents.h', | |
| 27 'libxslt/extensions.c', | |
| 28 'libxslt/extensions.h', | |
| 29 'libxslt/extra.c', | |
| 30 'libxslt/extra.h', | |
| 31 'libxslt/functions.c', | |
| 32 'libxslt/functions.h', | |
| 33 'libxslt/imports.c', | |
| 34 'libxslt/imports.h', | |
| 35 'libxslt/keys.c', | |
| 36 'libxslt/keys.h', | |
| 37 'libxslt/libxslt.h', | |
| 38 'libxslt/namespaces.c', | |
| 39 'libxslt/namespaces.h', | |
| 40 'libxslt/numbers.c', | |
| 41 'libxslt/numbersInternals.h', | |
| 42 'libxslt/pattern.c', | |
| 43 'libxslt/pattern.h', | |
| 44 'libxslt/preproc.c', | |
| 45 'libxslt/preproc.h', | |
| 46 'libxslt/security.c', | |
| 47 'libxslt/security.h', | |
| 48 'libxslt/templates.c', | |
| 49 'libxslt/templates.h', | |
| 50 'libxslt/transform.c', | |
| 51 'libxslt/transform.h', | |
| 52 'libxslt/trio.h', | |
| 53 'libxslt/triodef.h', | |
| 54 'libxslt/variables.c', | |
| 55 'libxslt/variables.h', | |
| 56 'libxslt/win32config.h', | |
| 57 'libxslt/xslt.c', | |
| 58 'libxslt/xslt.h', | |
| 59 'libxslt/xsltconfig.h', | |
| 60 'libxslt/xsltexports.h', | |
| 61 'libxslt/xsltInternals.h', | |
| 62 'libxslt/xsltutils.c', | |
| 63 'libxslt/xsltutils.h', | |
| 64 'libxslt/xsltwin32config.h', | |
| 65 'linux/config.h', | |
| 66 'mac/config.h', | |
| 67 # TODO(port): Need a pregenerated win32/config.h? | |
| 68 ], | |
| 69 'defines': [ | |
| 70 'LIBXSLT_STATIC', | |
| 71 ], | |
| 72 'include_dirs': [ | |
| 73 '<(os_include)', | |
| 74 '.', | |
| 75 ], | |
| 76 'dependencies': [ | |
| 77 '../libxml/libxml.gyp:libxml', | |
| 78 ], | |
| 79 'direct_dependent_settings': { | |
| 80 'defines': [ | |
| 81 'LIBXSLT_STATIC', | |
| 82 ], | |
| 83 'include_dirs': [ | |
| 84 '.', | |
| 85 ], | |
| 86 }, | |
| 87 'conditions': [ | 20 'conditions': [ |
| 88 ['OS!="win"', {'product_name': 'xslt'}], | 21 ['OS=="linux" and use_system_libxslt', { |
| 22 'type': 'settings', |
| 23 'direct_dependent_settings': { |
| 24 'cflags': [ |
| 25 '<!@(python ../../build/linux/pkg_config_wrapper.py --cflags libxs
lt)', |
| 26 ], |
| 27 }, |
| 28 'link_settings': { |
| 29 'libraries': [ |
| 30 '<!@(python ../../build/linux/pkg_config_wrapper.py --libs libxslt
)', |
| 31 ], |
| 32 }, |
| 33 }, { # else: OS != "linux" or ! use_system_libxslt |
| 34 'type': 'static_library', |
| 35 'msvs_guid': 'F9810DE8-CBC3-4605-A7B1-ECA2D5292FD7', |
| 36 'sources': [ |
| 37 'libxslt/attributes.c', |
| 38 'libxslt/attributes.h', |
| 39 'libxslt/attrvt.c', |
| 40 'libxslt/documents.c', |
| 41 'libxslt/documents.h', |
| 42 'libxslt/extensions.c', |
| 43 'libxslt/extensions.h', |
| 44 'libxslt/extra.c', |
| 45 'libxslt/extra.h', |
| 46 'libxslt/functions.c', |
| 47 'libxslt/functions.h', |
| 48 'libxslt/imports.c', |
| 49 'libxslt/imports.h', |
| 50 'libxslt/keys.c', |
| 51 'libxslt/keys.h', |
| 52 'libxslt/libxslt.h', |
| 53 'libxslt/namespaces.c', |
| 54 'libxslt/namespaces.h', |
| 55 'libxslt/numbers.c', |
| 56 'libxslt/numbersInternals.h', |
| 57 'libxslt/pattern.c', |
| 58 'libxslt/pattern.h', |
| 59 'libxslt/preproc.c', |
| 60 'libxslt/preproc.h', |
| 61 'libxslt/security.c', |
| 62 'libxslt/security.h', |
| 63 'libxslt/templates.c', |
| 64 'libxslt/templates.h', |
| 65 'libxslt/transform.c', |
| 66 'libxslt/transform.h', |
| 67 'libxslt/trio.h', |
| 68 'libxslt/triodef.h', |
| 69 'libxslt/variables.c', |
| 70 'libxslt/variables.h', |
| 71 'libxslt/win32config.h', |
| 72 'libxslt/xslt.c', |
| 73 'libxslt/xslt.h', |
| 74 'libxslt/xsltconfig.h', |
| 75 'libxslt/xsltexports.h', |
| 76 'libxslt/xsltInternals.h', |
| 77 'libxslt/xsltutils.c', |
| 78 'libxslt/xsltutils.h', |
| 79 'libxslt/xsltwin32config.h', |
| 80 'linux/config.h', |
| 81 'mac/config.h', |
| 82 # TODO(port): Need a pregenerated win32/config.h? |
| 83 ], |
| 84 'defines': [ |
| 85 'LIBXSLT_STATIC', |
| 86 ], |
| 87 'include_dirs': [ |
| 88 '<(os_include)', |
| 89 '.', |
| 90 ], |
| 91 'dependencies': [ |
| 92 '../libxml/libxml.gyp:libxml', |
| 93 ], |
| 94 'direct_dependent_settings': { |
| 95 'defines': [ |
| 96 'LIBXSLT_STATIC', |
| 97 ], |
| 98 'include_dirs': [ |
| 99 '.', |
| 100 ], |
| 101 }, |
| 102 'conditions': [ |
| 103 ['OS!="win"', {'product_name': 'xslt'}], |
| 104 ], |
| 105 }], |
| 89 ], | 106 ], |
| 90 }, | 107 }, |
| 91 ], | 108 ], |
| 92 } | 109 } |
| OLD | NEW |