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
3 # found in the LICENSE file.
6 # Default value for all libraries.
7 'custom_configure_flags': '',
8 'custom_c_compiler_flags': '',
9 'custom_cxx_compiler_flags': '',
10 'custom_linker_flags': '',
11 'run_before_build': '',
14 'verbose_libraries_build%': 0,
18 'sanitizer_type': 'asan',
21 'sanitizer_type': 'msan',
23 ['verbose_libraries_build==1', {
24 'verbose_libraries_build_flag': '--verbose',
26 'verbose_libraries_build_flag': '',
31 'target_name': 'instrumented_libraries',
34 'prune_self_dependency': 1,
37 '<(_sanitizer_type)-libcairo2',
38 '<(_sanitizer_type)-libexpat1',
39 '<(_sanitizer_type)-libffi6',
40 '<(_sanitizer_type)-libgcrypt11',
41 '<(_sanitizer_type)-libgpg-error0',
42 '<(_sanitizer_type)-libnspr4',
43 '<(_sanitizer_type)-libp11-kit0',
44 '<(_sanitizer_type)-libpcre3',
45 '<(_sanitizer_type)-libpng12-0',
46 '<(_sanitizer_type)-libx11-6',
47 '<(_sanitizer_type)-libxau6',
48 '<(_sanitizer_type)-libxcb1',
49 '<(_sanitizer_type)-libxcomposite1',
50 '<(_sanitizer_type)-libxcursor1',
51 '<(_sanitizer_type)-libxdamage1',
52 '<(_sanitizer_type)-libxdmcp6',
53 '<(_sanitizer_type)-libxext6',
54 '<(_sanitizer_type)-libxfixes3',
55 '<(_sanitizer_type)-libxi6',
56 '<(_sanitizer_type)-libxinerama1',
57 '<(_sanitizer_type)-libxrandr2',
58 '<(_sanitizer_type)-libxrender1',
59 '<(_sanitizer_type)-libxss1',
60 '<(_sanitizer_type)-libxtst6',
61 '<(_sanitizer_type)-zlib1g',
62 '<(_sanitizer_type)-libglib2.0-0',
63 '<(_sanitizer_type)-libdbus-1-3',
64 '<(_sanitizer_type)-libdbus-glib-1-2',
65 '<(_sanitizer_type)-nss',
66 '<(_sanitizer_type)-libfontconfig1',
67 '<(_sanitizer_type)-pulseaudio',
68 '<(_sanitizer_type)-libasound2',
69 '<(_sanitizer_type)-libcups2',
74 '<(_sanitizer_type)-libpixman-1-0',
80 'action_name': 'fix_rpaths',
85 '<(PRODUCT_DIR)/instrumented_libraries/<(_sanitizer_type)/rpaths.fixed.txt',
88 '<(DEPTH)/third_party/instrumented_libraries/fix_rpaths.sh',
89 '<(PRODUCT_DIR)/instrumented_libraries/<(_sanitizer_type)'
95 'library_name': 'freetype',
97 'custom_configure_flags': '',
98 'run_before_build': 'freetype.sh',
99 'includes': ['standard_instrumented_library_target.gypi'],
102 'library_name': 'libcairo2',
104 'custom_configure_flags': '--disable-gtk-doc',
105 'includes': ['standard_instrumented_library_target.gypi'],
108 'library_name': 'libdbus-1-3',
110 '<(_sanitizer_type)-libglib2.0-0',
112 'includes': ['standard_instrumented_library_target.gypi'],
115 'library_name': 'libdbus-glib-1-2',
117 '<(_sanitizer_type)-libglib2.0-0',
119 'includes': ['standard_instrumented_library_target.gypi'],
122 'library_name': 'libexpat1',
124 'includes': ['standard_instrumented_library_target.gypi'],
127 'library_name': 'libffi6',
129 'includes': ['standard_instrumented_library_target.gypi'],
132 'library_name': 'libfontconfig1',
134 '<(_sanitizer_type)-freetype',
136 'custom_configure_flags': '--disable-docs',
137 'run_before_build': 'libfontconfig.sh',
138 'includes': ['standard_instrumented_library_target.gypi'],
141 'library_name': 'libgcrypt11',
143 'custom_linker_flags': '-Wl,-z,muldefs',
144 'includes': ['standard_instrumented_library_target.gypi'],
147 'library_name': 'libglib2.0-0',
149 'custom_configure_flags': [
151 '--disable-gtk-doc-html',
152 '--disable-gtk-doc-pdf',
154 'includes': ['standard_instrumented_library_target.gypi'],
157 'library_name': 'libgpg-error0',
159 'includes': ['standard_instrumented_library_target.gypi'],
162 'library_name': 'libnspr4',
164 'custom_configure_flags': '--enable-64bit',
165 'run_before_build': 'libnspr4.sh',
166 'includes': ['standard_instrumented_library_target.gypi'],
169 'library_name': 'libp11-kit0',
171 'includes': ['standard_instrumented_library_target.gypi'],
174 'library_name': 'libpcre3',
176 'custom_configure_flags': [
178 '--enable-unicode-properties',
180 'includes': ['standard_instrumented_library_target.gypi'],
183 'library_name': 'libpixman-1-0',
185 '<(_sanitizer_type)-libglib2.0-0',
187 'includes': ['standard_instrumented_library_target.gypi'],
190 'library_name': 'libpng12-0',
192 'includes': ['standard_instrumented_library_target.gypi'],
195 'library_name': 'libx11-6',
197 'custom_configure_flags': '--disable-specs',
198 'includes': ['standard_instrumented_library_target.gypi'],
201 'library_name': 'libxau6',
203 'includes': ['standard_instrumented_library_target.gypi'],
206 'library_name': 'libxcb1',
208 'custom_configure_flags': '--disable-build-docs',
209 'includes': ['standard_instrumented_library_target.gypi'],
212 'library_name': 'libxcomposite1',
214 'includes': ['standard_instrumented_library_target.gypi'],
217 'library_name': 'libxcursor1',
219 'includes': ['standard_instrumented_library_target.gypi'],
222 'library_name': 'libxdamage1',
224 'includes': ['standard_instrumented_library_target.gypi'],
227 'library_name': 'libxdmcp6',
229 'custom_configure_flags': '--disable-docs',
230 'includes': ['standard_instrumented_library_target.gypi'],
233 'library_name': 'libxext6',
235 'custom_configure_flags': '--disable-specs',
236 'includes': ['standard_instrumented_library_target.gypi'],
239 'library_name': 'libxfixes3',
241 'includes': ['standard_instrumented_library_target.gypi'],
244 'library_name': 'libxi6',
246 'custom_configure_flags': [
250 'includes': ['standard_instrumented_library_target.gypi'],
253 'library_name': 'libxinerama1',
255 'includes': ['standard_instrumented_library_target.gypi'],
258 'library_name': 'libxrandr2',
260 'includes': ['standard_instrumented_library_target.gypi'],
263 'library_name': 'libxrender1',
265 'includes': ['standard_instrumented_library_target.gypi'],
268 'library_name': 'libxss1',
270 'includes': ['standard_instrumented_library_target.gypi'],
273 'library_name': 'libxtst6',
275 'custom_configure_flags': '--disable-specs',
276 'includes': ['standard_instrumented_library_target.gypi'],
279 'library_name': 'zlib1g',
281 'includes': ['standard_instrumented_library_target.gypi'],
284 'library_name': 'nss',
286 '<(_sanitizer_type)-libnspr4',
288 'run_before_build': 'nss.sh',
289 'includes': ['standard_instrumented_library_target.gypi'],
292 'library_name': 'pulseaudio',
294 'run_before_build': 'pulseaudio.sh',
295 'custom_configure_flags': '--with-udev-rules-dir=<(INTERMEDIATE_DIR)/udev/rules.d',
296 'includes': ['standard_instrumented_library_target.gypi'],
299 'library_name': 'libasound2',
301 'run_before_build': 'libasound2.sh',
302 'includes': ['standard_instrumented_library_target.gypi'],
305 'library_name': 'libcups2',
307 'run_before_build': 'libcups2.sh',
308 'custom_configure_flags': [
309 # Do not touch system-wide directories.
317 'includes': ['standard_instrumented_library_target.gypi'],