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 ], |
(...skipping 15 matching lines...) Expand all Loading... |
26 'libraries': [ | 26 'libraries': [ |
27 '-lexpat', | 27 '-lexpat', |
28 ], | 28 ], |
29 }, | 29 }, |
30 }, | 30 }, |
31 ], | 31 ], |
32 }, { # OS != linux | 32 }, { # OS != linux |
33 'targets': [ | 33 'targets': [ |
34 { | 34 { |
35 'target_name': 'expat', | 35 'target_name': 'expat', |
36 'type': '<(library)', | 36 'type': 'static_library', |
37 'sources': [ | 37 'sources': [ |
38 'files/lib/expat.h', | 38 'files/lib/expat.h', |
39 'files/lib/xmlparse.c', | 39 'files/lib/xmlparse.c', |
40 'files/lib/xmlrole.c', | 40 'files/lib/xmlrole.c', |
41 'files/lib/xmltok.c', | 41 'files/lib/xmltok.c', |
42 ], | 42 ], |
43 | 43 |
44 # Prefer adding a dependency to expat and relying on the following | 44 # Prefer adding a dependency to expat and relying on the following |
45 # direct_dependent_settings rule over manually adding the include | 45 # direct_dependent_settings rule over manually adding the include |
46 # path. This is because you'll want any translation units that | 46 # path. This is because you'll want any translation units that |
(...skipping 22 matching lines...) Expand all Loading... |
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 |