| 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_posix == 1 and OS != "mac"', { | 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_posix == 1 and OS != "mac" and use_system_libxml', { | 24 ['os_posix == 1 and OS != "mac" and use_system_libxml', { |
| 25 'type': 'settings', | 25 'type': 'none', |
| 26 'direct_dependent_settings': { | 26 'direct_dependent_settings': { |
| 27 'cflags': [ | 27 'cflags': [ |
| 28 '<!@(pkg-config --cflags libxslt)', | 28 '<!@(pkg-config --cflags libxslt)', |
| 29 ], | 29 ], |
| 30 }, | 30 }, |
| 31 'link_settings': { | 31 'link_settings': { |
| 32 'ldflags': [ | 32 'ldflags': [ |
| 33 '<!@(pkg-config --libs-only-L --libs-only-other libxslt)', | 33 '<!@(pkg-config --libs-only-L --libs-only-other libxslt)', |
| 34 ], | 34 ], |
| 35 'libraries': [ | 35 'libraries': [ |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 ], | 107 ], |
| 108 }, | 108 }, |
| 109 'conditions': [ | 109 'conditions': [ |
| 110 ['OS!="win"', {'product_name': 'xslt'}], | 110 ['OS!="win"', {'product_name': 'xslt'}], |
| 111 ], | 111 ], |
| 112 }], | 112 }], |
| 113 ], | 113 ], |
| 114 }, | 114 }, |
| 115 ], | 115 ], |
| 116 } | 116 } |
| OLD | NEW |