OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 # Default value for all libraries. | 6 # Default value for all libraries. |
7 'custom_configure_flags': '', | 7 'custom_configure_flags': '', |
8 'custom_linker_flags': '', | 8 'custom_linker_flags': '', |
| 9 |
| 10 # Some librraies should not be built before others, so these lists define |
| 11 # the order to build them all. |
| 12 # The problem is that if you configure libraries to be installed to |
| 13 # the directory where some other libraries are installed, it could break |
| 14 # the build. For example, zlib1g should not be installed before other |
| 15 # libraries. |
| 16 'first_order_libraries': [ |
| 17 '<(_sanitizer_type)-libcairo2', |
| 18 '<(_sanitizer_type)-libexpat1', |
| 19 '<(_sanitizer_type)-libffi6', |
| 20 '<(_sanitizer_type)-libgcrypt11', |
| 21 '<(_sanitizer_type)-libgpg-error0', |
| 22 '<(_sanitizer_type)-libp11-kit0', |
| 23 '<(_sanitizer_type)-libpcre3', |
| 24 '<(_sanitizer_type)-libpixman-1-0', |
| 25 '<(_sanitizer_type)-libpng12-0', |
| 26 '<(_sanitizer_type)-libx11-6', |
| 27 '<(_sanitizer_type)-libxau6', |
| 28 '<(_sanitizer_type)-libxcb1', |
| 29 '<(_sanitizer_type)-libxcomposite1', |
| 30 '<(_sanitizer_type)-libxcursor1', |
| 31 '<(_sanitizer_type)-libxdamage1', |
| 32 '<(_sanitizer_type)-libxdmcp6', |
| 33 '<(_sanitizer_type)-libxext6', |
| 34 '<(_sanitizer_type)-libxfixes3', |
| 35 '<(_sanitizer_type)-libxi6', |
| 36 '<(_sanitizer_type)-libxinerama1', |
| 37 '<(_sanitizer_type)-libxrandr2', |
| 38 '<(_sanitizer_type)-libxrender1', |
| 39 '<(_sanitizer_type)-libxss1', |
| 40 '<(_sanitizer_type)-libxtst6', |
| 41 ], |
| 42 'second_order_libraries': [ |
| 43 '<(_sanitizer_type)-zlib1g', |
| 44 ], |
9 | 45 |
10 'variables': { | 46 'variables': { |
11 'verbose_libraries_build%': 0, | 47 'verbose_libraries_build%': 0, |
12 }, | 48 }, |
13 'conditions': [ | 49 'conditions': [ |
14 ['asan==1', { | 50 ['asan==1', { |
15 'sanitizer_type': 'asan', | 51 'sanitizer_type': 'asan', |
| 52 'first_order_libraries': [ |
| 53 '<(_sanitizer_type)-libfontconfig1', |
| 54 '<(_sanitizer_type)-libglib2.0-0', |
| 55 ], |
16 }], | 56 }], |
17 ['msan==1', { | 57 ['msan==1', { |
18 'sanitizer_type': 'msan', | 58 'sanitizer_type': 'msan', |
19 }], | 59 }], |
20 ['verbose_libraries_build==1', { | 60 ['verbose_libraries_build==1', { |
21 'verbose_libraries_build_flag': '--verbose', | 61 'verbose_libraries_build_flag': '--verbose', |
22 }, { | 62 }, { |
23 'verbose_libraries_build_flag': '', | 63 'verbose_libraries_build_flag': '', |
24 }], | 64 }], |
25 ], | 65 ], |
26 'targets': [ | 66 'targets': [ |
27 { | 67 { |
28 'target_name': 'instrumented_libraries', | 68 'target_name': 'instrumented_libraries', |
29 'type': 'none', | 69 'type': 'none', |
30 'variables': { | 70 'variables': { |
31 'prune_self_dependency': 1, | 71 'prune_self_dependency': 1, |
32 }, | 72 }, |
33 'dependencies': [ | 73 'dependencies=': [ |
34 '<(_sanitizer_type)-libpng12-0', | 74 '<@(_first_order_libraries)', |
35 '<(_sanitizer_type)-libxau6', | 75 '<@(_second_order_libraries)', |
36 '<(_sanitizer_type)-libxdmcp6', | |
37 '<(_sanitizer_type)-libx11-6', | |
38 '<(_sanitizer_type)-libxcb1', | |
39 '<(_sanitizer_type)-libxext6', | |
40 '<(_sanitizer_type)-libxi6', | |
41 '<(_sanitizer_type)-libxrandr2', | |
42 '<(_sanitizer_type)-libxrender1', | |
43 '<(_sanitizer_type)-libxtst6', | |
44 '<(_sanitizer_type)-libpixman-1-0', | |
45 '<(_sanitizer_type)-libp11-kit0', | |
46 '<(_sanitizer_type)-libgpg-error0', | |
47 '<(_sanitizer_type)-libexpat1', | |
48 '<(_sanitizer_type)-libffi6', | |
49 '<(_sanitizer_type)-libcairo2', | |
50 '<(_sanitizer_type)-libpcre3', | |
51 ], | |
52 'conditions': [ | |
53 ['asan==1', { | |
54 'dependencies': [ | |
55 '<(_sanitizer_type)-libfontconfig1', | |
56 '<(_sanitizer_type)-libglib2.0-0', | |
57 ], | |
58 }], | |
59 ], | 76 ], |
60 'actions': [ | 77 'actions': [ |
61 { | 78 { |
62 'action_name': 'fix_rpaths', | 79 'action_name': 'fix_rpaths', |
63 'inputs': [ | 80 'inputs': [ |
64 'fix_rpaths.sh', | 81 'fix_rpaths.sh', |
65 ], | 82 ], |
66 'outputs': [ | 83 'outputs': [ |
67 '<(PRODUCT_DIR)/instrumented_libraries/<(_sanitizer_type)/rpaths.fix
ed.txt', | 84 '<(PRODUCT_DIR)/instrumented_libraries/<(_sanitizer_type)/rpaths.fix
ed.txt', |
68 ], | 85 ], |
69 'action': [ | 86 'action': [ |
70 '<(DEPTH)/third_party/instrumented_libraries/fix_rpaths.sh', | 87 '<(DEPTH)/third_party/instrumented_libraries/fix_rpaths.sh', |
71 '<(PRODUCT_DIR)/instrumented_libraries/<(_sanitizer_type)' | 88 '<(PRODUCT_DIR)/instrumented_libraries/<(_sanitizer_type)' |
72 ], | 89 ], |
73 }, | 90 }, |
74 ], | 91 ], |
75 }, | 92 }, |
76 { | 93 { |
77 'library_name': 'libpng12-0', | 94 'library_name': 'libcairo2', |
78 'dependencies=': [], | 95 'dependencies=': [], |
79 'includes': ['standard_instrumented_library_target.gypi'], | 96 'custom_configure_flags': '--disable-gtk-doc', |
80 }, | |
81 { | |
82 'library_name': 'libpixman-1-0', | |
83 'dependencies=': [], | |
84 'includes': ['standard_instrumented_library_target.gypi'], | |
85 }, | |
86 { | |
87 'library_name': 'libp11-kit0', | |
88 'dependencies=': [], | |
89 'includes': ['standard_instrumented_library_target.gypi'], | |
90 }, | |
91 { | |
92 'library_name': 'libgpg-error0', | |
93 'dependencies=': [], | |
94 'includes': ['standard_instrumented_library_target.gypi'], | 97 'includes': ['standard_instrumented_library_target.gypi'], |
95 }, | 98 }, |
96 { | 99 { |
97 'library_name': 'libexpat1', | 100 'library_name': 'libexpat1', |
98 'dependencies=': [], | 101 'dependencies=': [], |
99 'includes': ['standard_instrumented_library_target.gypi'], | 102 'includes': ['standard_instrumented_library_target.gypi'], |
100 }, | 103 }, |
101 { | 104 { |
102 'library_name': 'libffi6', | 105 'library_name': 'libffi6', |
103 'dependencies=': [], | 106 'dependencies=': [], |
104 'includes': ['standard_instrumented_library_target.gypi'], | 107 'includes': ['standard_instrumented_library_target.gypi'], |
105 }, | 108 }, |
106 { | 109 { |
107 'library_name': 'libfontconfig1', | 110 'library_name': 'libfontconfig1', |
108 'dependencies=': [], | 111 'dependencies=': [], |
109 'custom_configure_flags': '--disable-docs', | 112 'custom_configure_flags': '--disable-docs', |
110 'includes': ['standard_instrumented_library_target.gypi'], | 113 'includes': ['standard_instrumented_library_target.gypi'], |
111 }, | 114 }, |
112 { | 115 { |
113 'library_name': 'libcairo2', | 116 'library_name': 'libgcrypt11', |
114 'dependencies=': [], | 117 'dependencies=': [], |
115 'custom_configure_flags': '--disable-gtk-doc', | 118 'custom_linker_flags': '-Wl,-z,muldefs', |
116 'includes': ['standard_instrumented_library_target.gypi'], | 119 'includes': ['standard_instrumented_library_target.gypi'], |
117 }, | 120 }, |
118 { | 121 { |
| 122 'library_name': 'libglib2.0-0', |
| 123 'dependencies=': [], |
| 124 'custom_configure_flags': [ |
| 125 '--disable-gtk-doc', |
| 126 '--disable-gtk-doc-html', |
| 127 '--disable-gtk-doc-pdf', |
| 128 ], |
| 129 'includes': ['standard_instrumented_library_target.gypi'], |
| 130 }, |
| 131 { |
| 132 'library_name': 'libgpg-error0', |
| 133 'dependencies=': [], |
| 134 'includes': ['standard_instrumented_library_target.gypi'], |
| 135 }, |
| 136 { |
| 137 'library_name': 'libp11-kit0', |
| 138 'dependencies=': [], |
| 139 'includes': ['standard_instrumented_library_target.gypi'], |
| 140 }, |
| 141 { |
119 'library_name': 'libpcre3', | 142 'library_name': 'libpcre3', |
120 'dependencies=': [], | 143 'dependencies=': [], |
121 'custom_configure_flags': [ | 144 'custom_configure_flags': [ |
122 '--enable-utf8', | 145 '--enable-utf8', |
123 '--enable-unicode-properties', | 146 '--enable-unicode-properties', |
124 ], | 147 ], |
125 'includes': ['standard_instrumented_library_target.gypi'], | 148 'includes': ['standard_instrumented_library_target.gypi'], |
126 }, | 149 }, |
127 { | 150 { |
128 'library_name': 'libxau6', | 151 'library_name': 'libpixman-1-0', |
129 'dependencies=': [], | 152 'dependencies=': [], |
130 'includes': ['standard_instrumented_library_target.gypi'], | 153 'includes': ['standard_instrumented_library_target.gypi'], |
131 }, | 154 }, |
132 { | 155 { |
133 'library_name': 'libglib2.0-0', | 156 'library_name': 'libpng12-0', |
134 'dependencies=': [], | 157 'dependencies=': [], |
135 'custom_configure_flags': [ | |
136 '--disable-gtk-doc', | |
137 '--disable-gtk-doc-html', | |
138 '--disable-gtk-doc-pdf', | |
139 ], | |
140 'includes': ['standard_instrumented_library_target.gypi'], | |
141 }, | |
142 { | |
143 'library_name': 'libxdmcp6', | |
144 'dependencies=': [], | |
145 'custom_configure_flags': '--disable-docs', | |
146 'includes': ['standard_instrumented_library_target.gypi'], | 158 'includes': ['standard_instrumented_library_target.gypi'], |
147 }, | 159 }, |
148 { | 160 { |
149 'library_name': 'libx11-6', | 161 'library_name': 'libx11-6', |
150 'dependencies=': [], | 162 'dependencies=': [], |
151 'custom_configure_flags': '--disable-specs', | 163 'custom_configure_flags': '--disable-specs', |
152 'includes': ['standard_instrumented_library_target.gypi'], | 164 'includes': ['standard_instrumented_library_target.gypi'], |
153 }, | 165 }, |
154 { | 166 { |
| 167 'library_name': 'libxau6', |
| 168 'dependencies=': [], |
| 169 'includes': ['standard_instrumented_library_target.gypi'], |
| 170 }, |
| 171 { |
155 'library_name': 'libxcb1', | 172 'library_name': 'libxcb1', |
156 'dependencies=': [], | 173 'dependencies=': [], |
157 'custom_configure_flags': '--disable-build-docs', | 174 'custom_configure_flags': '--disable-build-docs', |
158 'includes': ['standard_instrumented_library_target.gypi'], | 175 'includes': ['standard_instrumented_library_target.gypi'], |
159 }, | 176 }, |
160 { | 177 { |
| 178 'library_name': 'libxcomposite1', |
| 179 'dependencies=': [], |
| 180 'includes': ['standard_instrumented_library_target.gypi'], |
| 181 }, |
| 182 { |
| 183 'library_name': 'libxcursor1', |
| 184 'dependencies=': [], |
| 185 'includes': ['standard_instrumented_library_target.gypi'], |
| 186 }, |
| 187 { |
| 188 'library_name': 'libxdamage1', |
| 189 'dependencies=': [], |
| 190 'includes': ['standard_instrumented_library_target.gypi'], |
| 191 }, |
| 192 { |
| 193 'library_name': 'libxdmcp6', |
| 194 'dependencies=': [], |
| 195 'custom_configure_flags': '--disable-docs', |
| 196 'includes': ['standard_instrumented_library_target.gypi'], |
| 197 }, |
| 198 { |
161 'library_name': 'libxext6', | 199 'library_name': 'libxext6', |
162 'dependencies=': [], | 200 'dependencies=': [], |
163 'custom_configure_flags': '--disable-specs', | 201 'custom_configure_flags': '--disable-specs', |
164 'includes': ['standard_instrumented_library_target.gypi'], | 202 'includes': ['standard_instrumented_library_target.gypi'], |
165 }, | 203 }, |
166 { | 204 { |
| 205 'library_name': 'libxfixes3', |
| 206 'dependencies=': [], |
| 207 'includes': ['standard_instrumented_library_target.gypi'], |
| 208 }, |
| 209 { |
167 'library_name': 'libxi6', | 210 'library_name': 'libxi6', |
168 'dependencies=': [], | 211 'dependencies=': [], |
169 'custom_configure_flags': [ | 212 'custom_configure_flags': [ |
170 '--disable-specs', | 213 '--disable-specs', |
171 '--disable-docs', | 214 '--disable-docs', |
172 ], | 215 ], |
173 'includes': ['standard_instrumented_library_target.gypi'], | 216 'includes': ['standard_instrumented_library_target.gypi'], |
174 }, | 217 }, |
175 { | 218 { |
| 219 'library_name': 'libxinerama1', |
| 220 'dependencies=': [], |
| 221 'includes': ['standard_instrumented_library_target.gypi'], |
| 222 }, |
| 223 { |
176 'library_name': 'libxrandr2', | 224 'library_name': 'libxrandr2', |
177 'dependencies=': [], | 225 'dependencies=': [], |
178 'includes': ['standard_instrumented_library_target.gypi'], | 226 'includes': ['standard_instrumented_library_target.gypi'], |
179 }, | 227 }, |
180 { | 228 { |
181 'library_name': 'libxrender1', | 229 'library_name': 'libxrender1', |
182 'dependencies=': [], | 230 'dependencies=': [], |
183 'includes': ['standard_instrumented_library_target.gypi'], | 231 'includes': ['standard_instrumented_library_target.gypi'], |
184 }, | 232 }, |
185 { | 233 { |
| 234 'library_name': 'libxss1', |
| 235 'dependencies=': [], |
| 236 'includes': ['standard_instrumented_library_target.gypi'], |
| 237 }, |
| 238 { |
186 'library_name': 'libxtst6', | 239 'library_name': 'libxtst6', |
187 'dependencies=': [], | 240 'dependencies=': [], |
188 'custom_configure_flags': '--disable-specs', | 241 'custom_configure_flags': '--disable-specs', |
189 'includes': ['standard_instrumented_library_target.gypi'], | 242 'includes': ['standard_instrumented_library_target.gypi'], |
190 }, | 243 }, |
| 244 { |
| 245 'library_name': 'zlib1g', |
| 246 'dependencies=': [ |
| 247 '<@(_first_order_libraries)', |
| 248 ], |
| 249 'includes': ['standard_instrumented_library_target.gypi'], |
| 250 }, |
191 ], | 251 ], |
192 } | 252 } |
OLD | NEW |