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 'target_defaults': { | 6 'target_defaults': { |
7 'defines': [ | 7 'defines': [ |
8 '_LIB', | 8 '_LIB', |
9 'XML_STATIC', # Compile for static linkage. | 9 'XML_STATIC', # Compile for static linkage. |
10 ], | 10 ], |
11 'include_dirs': [ | 11 'include_dirs': [ |
12 'files/lib', | 12 'files/lib', |
13 ], | 13 ], |
14 'dependencies': [ | 14 'dependencies': [ |
15 ] | 15 ] |
16 }, | 16 }, |
17 'conditions': [ | 17 'conditions': [ |
18 ['OS=="linux"', { | 18 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { |
19 # On Linux, we implicitly already depend on expat via fontconfig; | 19 # On Linux, we implicitly already depend on expat via fontconfig; |
20 # let's not pull it in twice. | 20 # let's not pull it in twice. |
21 'targets': [ | 21 'targets': [ |
22 { | 22 { |
23 'target_name': 'expat', | 23 'target_name': 'expat', |
24 'type': 'settings', | 24 'type': 'settings', |
25 'link_settings': { | 25 'link_settings': { |
26 'libraries': [ | 26 'libraries': [ |
27 '-lexpat', | 27 '-lexpat', |
28 ], | 28 ], |
(...skipping 23 matching lines...) Expand all Loading... |
52 'defines': [ | 52 'defines': [ |
53 'XML_STATIC', # Tell dependants to expect static linkage. | 53 'XML_STATIC', # Tell dependants to expect static linkage. |
54 ], | 54 ], |
55 }, | 55 }, |
56 'conditions': [ | 56 'conditions': [ |
57 ['OS=="win"', { | 57 ['OS=="win"', { |
58 'defines': [ | 58 'defines': [ |
59 'COMPILED_FROM_DSP', | 59 'COMPILED_FROM_DSP', |
60 ], | 60 ], |
61 }], | 61 }], |
62 ['OS=="mac"', { | 62 ['OS=="mac" or OS=="freebsd" or OS=="openbsd"', { |
63 'defines': [ | 63 'defines': [ |
64 'HAVE_EXPAT_CONFIG_H', | 64 'HAVE_EXPAT_CONFIG_H', |
65 ], | 65 ], |
66 }], | 66 }], |
67 ], | 67 ], |
68 }, | 68 }, |
69 ], | 69 ], |
70 }], | 70 }], |
71 ], | 71 ], |
72 } | 72 } |
73 | 73 |
74 # Local Variables: | 74 # Local Variables: |
75 # tab-width:2 | 75 # tab-width:2 |
76 # indent-tabs-mode:nil | 76 # indent-tabs-mode:nil |
77 # End: | 77 # End: |
78 # vim: set expandtab tabstop=2 shiftwidth=2: | 78 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |