Reland r247589: <webview>: Fix text selection features in mac.
[chromium-blink-merge.git] / third_party / instrumented_libraries / instrumented_libraries.gyp
blob9b0f6b46c1eb789cc4ca2e3c166ec25678be68c9
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': '',
13   'variables': {
14     'verbose_libraries_build%': 0,
15   },
16   'conditions': [
17     ['asan==1', {
18       'sanitizer_type': 'asan',
19     }],
20     ['msan==1', {
21       'sanitizer_type': 'msan',
22     }],
23     ['verbose_libraries_build==1', {
24       'verbose_libraries_build_flag': '--verbose',
25     }, {
26       'verbose_libraries_build_flag': '',
27     }],
28   ],
29   'targets': [
30     {
31       'target_name': 'instrumented_libraries',
32       'type': 'none',
33       'variables': {
34         'prune_self_dependency': 1,
35       },
36       'dependencies': [
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',
70       ],
71       'conditions': [
72         ['asan==1', {
73           'dependencies': [
74             '<(_sanitizer_type)-libpixman-1-0',
75           ],
76         }],
77       ],
78       'actions': [
79         {
80           'action_name': 'fix_rpaths',
81           'inputs': [
82             'fix_rpaths.sh',
83           ],
84           'outputs': [
85             '<(PRODUCT_DIR)/instrumented_libraries/<(_sanitizer_type)/rpaths.fixed.txt',
86           ],
87           'action': [
88             '<(DEPTH)/third_party/instrumented_libraries/fix_rpaths.sh',
89             '<(PRODUCT_DIR)/instrumented_libraries/<(_sanitizer_type)'
90           ],
91         },
92       ],
93     },
94     {
95       'library_name': 'freetype',
96       'dependencies=': [],
97       'custom_configure_flags': '',
98       'run_before_build': 'freetype.sh',
99       'includes': ['standard_instrumented_library_target.gypi'],
100     },
101     {
102       'library_name': 'libcairo2',
103       'dependencies=': [],
104       'custom_configure_flags': '--disable-gtk-doc',
105       'includes': ['standard_instrumented_library_target.gypi'],
106     },
107     {
108       'library_name': 'libdbus-1-3',
109       'dependencies=': [
110         '<(_sanitizer_type)-libglib2.0-0',
111       ],
112       'includes': ['standard_instrumented_library_target.gypi'],
113     },
114     {
115       'library_name': 'libdbus-glib-1-2',
116       'dependencies=': [
117         '<(_sanitizer_type)-libglib2.0-0',
118       ],
119       'includes': ['standard_instrumented_library_target.gypi'],
120     },
121     {
122       'library_name': 'libexpat1',
123       'dependencies=': [],
124       'includes': ['standard_instrumented_library_target.gypi'],
125     },
126     {
127       'library_name': 'libffi6',
128       'dependencies=': [],
129       'includes': ['standard_instrumented_library_target.gypi'],
130     },
131     {
132       'library_name': 'libfontconfig1',
133       'dependencies=': [
134         '<(_sanitizer_type)-freetype',
135       ],
136       'custom_configure_flags': '--disable-docs',
137       'run_before_build': 'libfontconfig.sh',
138       'includes': ['standard_instrumented_library_target.gypi'],
139     },
140     {
141       'library_name': 'libgcrypt11',
142       'dependencies=': [],
143       'custom_linker_flags': '-Wl,-z,muldefs',
144       'includes': ['standard_instrumented_library_target.gypi'],
145     },
146     {
147       'library_name': 'libglib2.0-0',
148       'dependencies=': [],
149       'custom_configure_flags': [
150         '--disable-gtk-doc',
151         '--disable-gtk-doc-html',
152         '--disable-gtk-doc-pdf',
153       ],
154       'includes': ['standard_instrumented_library_target.gypi'],
155     },
156     {
157       'library_name': 'libgpg-error0',
158       'dependencies=': [],
159       'includes': ['standard_instrumented_library_target.gypi'],
160     },
161     {
162       'library_name': 'libnspr4',
163       'dependencies=': [],
164       'custom_configure_flags': '--enable-64bit',
165       'run_before_build': 'libnspr4.sh',
166       'includes': ['standard_instrumented_library_target.gypi'],
167     },
168     {
169       'library_name': 'libp11-kit0',
170       'dependencies=': [],
171       'includes': ['standard_instrumented_library_target.gypi'],
172     },
173     {
174       'library_name': 'libpcre3',
175       'dependencies=': [],
176       'custom_configure_flags': [
177         '--enable-utf8',
178         '--enable-unicode-properties',
179       ],
180       'includes': ['standard_instrumented_library_target.gypi'],
181     },
182     {
183       'library_name': 'libpixman-1-0',
184       'dependencies=': [
185         '<(_sanitizer_type)-libglib2.0-0',
186       ],
187       'includes': ['standard_instrumented_library_target.gypi'],
188     },
189     {
190       'library_name': 'libpng12-0',
191       'dependencies=': [],
192       'includes': ['standard_instrumented_library_target.gypi'],
193     },
194     {
195       'library_name': 'libx11-6',
196       'dependencies=': [],
197       'custom_configure_flags': '--disable-specs',
198       'includes': ['standard_instrumented_library_target.gypi'],
199     },
200     {
201       'library_name': 'libxau6',
202       'dependencies=': [],
203       'includes': ['standard_instrumented_library_target.gypi'],
204     },
205     {
206       'library_name': 'libxcb1',
207       'dependencies=': [],
208       'custom_configure_flags': '--disable-build-docs',
209       'includes': ['standard_instrumented_library_target.gypi'],
210     },
211     {
212       'library_name': 'libxcomposite1',
213       'dependencies=': [],
214       'includes': ['standard_instrumented_library_target.gypi'],
215     },
216     {
217       'library_name': 'libxcursor1',
218       'dependencies=': [],
219       'includes': ['standard_instrumented_library_target.gypi'],
220     },
221     {
222       'library_name': 'libxdamage1',
223       'dependencies=': [],
224       'includes': ['standard_instrumented_library_target.gypi'],
225     },
226     {
227       'library_name': 'libxdmcp6',
228       'dependencies=': [],
229       'custom_configure_flags': '--disable-docs',
230       'includes': ['standard_instrumented_library_target.gypi'],
231     },
232     {
233       'library_name': 'libxext6',
234       'dependencies=': [],
235       'custom_configure_flags': '--disable-specs',
236       'includes': ['standard_instrumented_library_target.gypi'],
237     },
238     {
239       'library_name': 'libxfixes3',
240       'dependencies=': [],
241       'includes': ['standard_instrumented_library_target.gypi'],
242     },
243     {
244       'library_name': 'libxi6',
245       'dependencies=': [],
246       'custom_configure_flags': [
247         '--disable-specs',
248         '--disable-docs',
249       ],
250       'includes': ['standard_instrumented_library_target.gypi'],
251     },
252     {
253       'library_name': 'libxinerama1',
254       'dependencies=': [],
255       'includes': ['standard_instrumented_library_target.gypi'],
256     },
257     {
258       'library_name': 'libxrandr2',
259       'dependencies=': [],
260       'includes': ['standard_instrumented_library_target.gypi'],
261     },
262     {
263       'library_name': 'libxrender1',
264       'dependencies=': [],
265       'includes': ['standard_instrumented_library_target.gypi'],
266     },
267     {
268       'library_name': 'libxss1',
269       'dependencies=': [],
270       'includes': ['standard_instrumented_library_target.gypi'],
271     },
272     {
273       'library_name': 'libxtst6',
274       'dependencies=': [],
275       'custom_configure_flags': '--disable-specs',
276       'includes': ['standard_instrumented_library_target.gypi'],
277     },
278     {
279       'library_name': 'zlib1g',
280       'dependencies=': [],
281       'includes': ['standard_instrumented_library_target.gypi'],
282     },
283     {
284       'library_name': 'nss',
285       'dependencies=': [
286         '<(_sanitizer_type)-libnspr4',
287       ],
288       'run_before_build': 'nss.sh',
289       'includes': ['standard_instrumented_library_target.gypi'],
290     },
291     {
292       'library_name': 'pulseaudio',
293       'dependencies=': [],
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'],
297     },
298     {
299       'library_name': 'libasound2',
300       'dependencies=': [],
301       'run_before_build': 'libasound2.sh',
302       'includes': ['standard_instrumented_library_target.gypi'],
303     },
304     {
305       'library_name': 'libcups2',
306       'dependencies=': [],
307       'run_before_build': 'libcups2.sh',
308       'custom_configure_flags': [
309         # Do not touch system-wide directories.
310         '--with-rcdir=no',
311         '--with-xinetd=no',
312         '--with-dbusdir=no',
313         '--with-menudir=no',
314         '--with-icondir=no',
315         '--with-docdir=no'
316       ],
317       'includes': ['standard_instrumented_library_target.gypi'],
318     },
319   ],