| 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" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { | 8 ['os_posix == 1 and OS != "mac"', { |
| 9 'os_include': 'linux' | 9 'os_include': 'linux' |
| 10 }], | 10 }], |
| 11 ['OS=="mac"', {'os_include': 'mac'}], | 11 ['OS=="mac"', {'os_include': 'mac'}], |
| 12 ['OS=="win"', {'os_include': 'win32'}], | 12 ['OS=="win"', {'os_include': 'win32'}], |
| 13 ], | 13 ], |
| 14 # We used to have a separate flag for using the system | 14 # We used to have a separate flag for using the system |
| 15 # libxslt, but it seems mixing Chrome libxml and system | 15 # libxslt, but it seems mixing Chrome libxml and system |
| 16 # libxslt causes crashes that nobody has had time to diagnose. | 16 # libxslt causes crashes that nobody has had time to diagnose. |
| 17 # So just put them both behind the same flag for now. | 17 # So just put them both behind the same flag for now. |
| 18 'use_system_libxml%': 0, | 18 'use_system_libxml%': 0, |
| 19 }, | 19 }, |
| 20 'targets': [ | 20 'targets': [ |
| 21 { | 21 { |
| 22 'target_name': 'libxslt', | 22 'target_name': 'libxslt', |
| 23 'conditions': [ | 23 'conditions': [ |
| 24 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") ' | 24 ['os_posix == 1 and OS != "mac" and use_system_libxml', { |
| 25 'and use_system_libxml', { | |
| 26 'type': 'settings', | 25 'type': 'settings', |
| 27 'direct_dependent_settings': { | 26 'direct_dependent_settings': { |
| 28 'cflags': [ | 27 'cflags': [ |
| 29 '<!@(pkg-config --cflags libxslt)', | 28 '<!@(pkg-config --cflags libxslt)', |
| 30 ], | 29 ], |
| 31 }, | 30 }, |
| 32 'link_settings': { | 31 'link_settings': { |
| 33 'ldflags': [ | 32 'ldflags': [ |
| 34 '<!@(pkg-config --libs-only-L --libs-only-other libxslt)', | 33 '<!@(pkg-config --libs-only-L --libs-only-other libxslt)', |
| 35 ], | 34 ], |
| 36 'libraries': [ | 35 'libraries': [ |
| 37 '<!@(pkg-config --libs-only-l libxslt)', | 36 '<!@(pkg-config --libs-only-l libxslt)', |
| 38 ], | 37 ], |
| 39 }, | 38 }, |
| 40 }, { # else: OS != "linux" or ! use_system_libxml | 39 }, { # else: os_posix != 1 or OS == "mac" or ! use_system_libxml |
| 41 'type': 'static_library', | 40 'type': 'static_library', |
| 42 'msvs_guid': 'FC0E1FD0-5DD7-4041-A1C9-CD3C376E4EED', | 41 'msvs_guid': 'FC0E1FD0-5DD7-4041-A1C9-CD3C376E4EED', |
| 43 'sources': [ | 42 'sources': [ |
| 44 'libxslt/attributes.c', | 43 'libxslt/attributes.c', |
| 45 'libxslt/attributes.h', | 44 'libxslt/attributes.h', |
| 46 'libxslt/attrvt.c', | 45 'libxslt/attrvt.c', |
| 47 'libxslt/documents.c', | 46 'libxslt/documents.c', |
| 48 'libxslt/documents.h', | 47 'libxslt/documents.h', |
| 49 'libxslt/extensions.c', | 48 'libxslt/extensions.c', |
| 50 'libxslt/extensions.h', | 49 'libxslt/extensions.h', |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 ], | 114 ], |
| 116 }, | 115 }, |
| 117 ], | 116 ], |
| 118 } | 117 } |
| 119 | 118 |
| 120 # Local Variables: | 119 # Local Variables: |
| 121 # tab-width:2 | 120 # tab-width:2 |
| 122 # indent-tabs-mode:nil | 121 # indent-tabs-mode:nil |
| 123 # End: | 122 # End: |
| 124 # vim: set expandtab tabstop=2 shiftwidth=2: | 123 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |