ozone: evdev: Sync caps lock LED state to evdev
[chromium-blink-merge.git] / third_party / instrumented_libraries / instrumented_libraries.gyp
blob105e9b841e22da98897e71a40c048ed8bd609c4d
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   'variables': {
7     'verbose_libraries_build%': 0,
8     'instrumented_libraries_jobs%': 1,
9   },
11   'ubuntu_release': '<!(lsb_release -cs)',
13   'conditions': [
14     ['asan==1', {
15       'sanitizer_type': 'asan',
16     }],
17     ['msan==1', {
18       'sanitizer_type': 'msan',
19     }],
20     ['tsan==1', {
21       'sanitizer_type': 'tsan',
22     }],
23     ['use_goma==1', {
24       'cc': '<(gomadir)/gomacc <!(cd <(DEPTH) && pwd -P)/<(make_clang_dir)/bin/clang',
25       'cxx': '<(gomadir)/gomacc <!(cd <(DEPTH) && pwd -P)/<(make_clang_dir)/bin/clang++',
26     }, {
27       'cc': '<!(cd <(DEPTH) && pwd -P)/<(make_clang_dir)/bin/clang',
28       'cxx': '<!(cd <(DEPTH) && pwd -P)/<(make_clang_dir)/bin/clang++',
29     }],
30   ],
32   'target_defaults': {
33     'build_method': 'destdir',
34     # Every package must have --disable-static in configure flags to avoid
35     # building unnecessary static libs. Ideally we should add it here.
36     # Unfortunately, zlib1g doesn't support that flag and for some reason it
37     # can't be removed with a GYP exclusion list. So instead we add that flag
38     # manually to every package but zlib1g.
39     'extra_configure_flags': [],
40     'jobs': '<(instrumented_libraries_jobs)',
41     'package_cflags': [
42       '-O2',
43       '-gline-tables-only',
44       '-fPIC',
45       '-w',
46       '-U_FORITFY_SOURCE',
47       '-fno-omit-frame-pointer'
48     ],
49     'package_ldflags': [
50       '-Wl,-z,origin',
51       # We set RPATH=XORIGIN when building the package and replace it with
52       # $ORIGIN later. The reason is that this flag goes through configure/make
53       # differently for different packages. Because of this, we can't escape the
54       # $ character in a way that would work for every package.
55       '-Wl,-R,XORIGIN/.'
56     ],
57     'patch': '',
58     'run_before_build': '',
59     'asan_blacklist': '',
60     'msan_blacklist': '',
61     'tsan_blacklist': '',
63     'conditions': [
64       ['asan==1', {
65         'package_cflags': ['-fsanitize=address'],
66         'package_ldflags': ['-fsanitize=address'],
67       }],
68       ['msan==1', {
69         'package_cflags': [
70           '-fsanitize=memory',
71           '-fsanitize-memory-track-origins=<(msan_track_origins)'
72         ],
73         'package_ldflags': ['-fsanitize=memory'],
74       }],
75       ['tsan==1', {
76         'package_cflags': ['-fsanitize=thread'],
77         'package_ldflags': ['-fsanitize=thread'],
78       }],
79     ],
80   },
82   'targets': [
83     {
84       'target_name': 'instrumented_libraries',
85       'type': 'none',
86       'variables': {
87         'prune_self_dependency': 1,
88         # Don't add this target to the dependencies of targets with type=none.
89         'link_dependency': 1,
90       },
91       # NOTE: Please keep install-build-deps.sh in sync with this list.
92       'dependencies': [
93         '<(_sanitizer_type)-freetype',
94         '<(_sanitizer_type)-libcairo2',
95         '<(_sanitizer_type)-libexpat1',
96         '<(_sanitizer_type)-libffi6',
97         '<(_sanitizer_type)-libgcrypt11',
98         '<(_sanitizer_type)-libgpg-error0',
99         '<(_sanitizer_type)-libnspr4',
100         '<(_sanitizer_type)-libp11-kit0',
101         '<(_sanitizer_type)-libpcre3',
102         '<(_sanitizer_type)-libpng12-0',
103         '<(_sanitizer_type)-libx11-6',
104         '<(_sanitizer_type)-libxau6',
105         '<(_sanitizer_type)-libxcb1',
106         '<(_sanitizer_type)-libxcomposite1',
107         '<(_sanitizer_type)-libxcursor1',
108         '<(_sanitizer_type)-libxdamage1',
109         '<(_sanitizer_type)-libxdmcp6',
110         '<(_sanitizer_type)-libxext6',
111         '<(_sanitizer_type)-libxfixes3',
112         '<(_sanitizer_type)-libxi6',
113         '<(_sanitizer_type)-libxinerama1',
114         '<(_sanitizer_type)-libxrandr2',
115         '<(_sanitizer_type)-libxrender1',
116         '<(_sanitizer_type)-libxss1',
117         '<(_sanitizer_type)-libxtst6',
118         '<(_sanitizer_type)-zlib1g',
119         '<(_sanitizer_type)-libglib2.0-0',
120         '<(_sanitizer_type)-libdbus-1-3',
121         '<(_sanitizer_type)-libdbus-glib-1-2',
122         '<(_sanitizer_type)-nss',
123         '<(_sanitizer_type)-libfontconfig1',
124         '<(_sanitizer_type)-pulseaudio',
125         '<(_sanitizer_type)-libasound2',
126         '<(_sanitizer_type)-pango1.0',
127         '<(_sanitizer_type)-libcap2',
128         '<(_sanitizer_type)-udev',
129         '<(_sanitizer_type)-libgnome-keyring0',
130         '<(_sanitizer_type)-libgtk2.0-0',
131         '<(_sanitizer_type)-libgdk-pixbuf2.0-0',
132         '<(_sanitizer_type)-libpci3',
133         '<(_sanitizer_type)-libdbusmenu-glib4',
134         '<(_sanitizer_type)-libgconf-2-4',
135         '<(_sanitizer_type)-libappindicator1',
136         '<(_sanitizer_type)-libdbusmenu',
137         '<(_sanitizer_type)-atk1.0',
138         '<(_sanitizer_type)-libunity9',
139         '<(_sanitizer_type)-dee',
140         '<(_sanitizer_type)-libpixman-1-0',
141       ],
142       'conditions': [
143         ['"<(_ubuntu_release)"=="precise"', {
144           'dependencies': [
145             '<(_sanitizer_type)-libtasn1-3',
146           ],
147         }, {
148           'dependencies': [
149             # Trusty and above.
150             '<(_sanitizer_type)-libtasn1-6',
151             '<(_sanitizer_type)-harfbuzz',
152             '<(_sanitizer_type)-libsecret',
153           ],
154         }],
155         ['msan==1', {
156           'dependencies': [
157             '<(_sanitizer_type)-libcups2',
158           ],
159         }],
160         ['tsan==1', {
161           'dependencies!': [
162             '<(_sanitizer_type)-libpng12-0',
163           ],
164         }],
165         ['chromeos==1', {
166           'dependencies': [
167             '<(_sanitizer_type)-brltty',
168             '<(_sanitizer_type)-libva1',
169           ],
170         }]
171       ],
172       'direct_dependent_settings': {
173         'target_conditions': [
174           ['_toolset=="target"', {
175             'ldflags': [
176               # Add RPATH to result binary to make it linking instrumented libraries ($ORIGIN means relative RPATH)
177               '-Wl,-R,\$$ORIGIN/instrumented_libraries/<(_sanitizer_type)/lib/',
178               '-Wl,-z,origin',
179             ],
180           }],
181         ],
182       },
183     },
184     {
185       'package_name': 'freetype',
186       'dependencies=': [],
187       'extra_configure_flags': ['--disable-static'],
188       'run_before_build': 'scripts/freetype.sh',
189       'includes': ['standard_instrumented_package_target.gypi'],
190     },
191     {
192       'package_name': 'libcairo2',
193       'dependencies=': [],
194       'extra_configure_flags': [
195           '--disable-gtk-doc',
196           '--disable-static',
197       ],
198       'includes': ['standard_instrumented_package_target.gypi'],
199     },
200     {
201       'package_name': 'libdbus-1-3',
202       'dependencies=': [],
203       'extra_configure_flags': ['--disable-static'],
204       'includes': ['standard_instrumented_package_target.gypi'],
205     },
206     {
207       'package_name': 'libdbus-glib-1-2',
208       'dependencies=': [],
209       'extra_configure_flags': [
210           # Use system dbus-binding-tool. The just-built one is instrumented but
211           # doesn't have the correct RPATH, and will crash.
212           '--with-dbus-binding-tool=dbus-binding-tool',
213           '--disable-static',
214       ],
215       'includes': ['standard_instrumented_package_target.gypi'],
216     },
217     {
218       'package_name': 'libexpat1',
219       'dependencies=': [],
220       'extra_configure_flags': ['--disable-static'],
221       'includes': ['standard_instrumented_package_target.gypi'],
222     },
223     {
224       'package_name': 'libffi6',
225       'dependencies=': [],
226       'extra_configure_flags': ['--disable-static'],
227       'includes': ['standard_instrumented_package_target.gypi'],
228     },
229     {
230       'package_name': 'libfontconfig1',
231       'dependencies=': [],
232       'extra_configure_flags': [
233         '--disable-docs',
234         '--sysconfdir=/etc/',
235         '--disable-static',
236         # From debian/rules.
237         '--with-add-fonts=/usr/X11R6/lib/X11/fonts,/usr/local/share/fonts',
238       ],
239       'conditions': [
240         ['"<(_ubuntu_release)"=="precise"', {
241           'patch': 'patches/libfontconfig.precise.diff',
242         }, {
243           'patch': 'patches/libfontconfig.trusty.diff',
244         }],
245       ],
246       'includes': ['standard_instrumented_package_target.gypi'],
247     },
248     {
249       'package_name': 'libgcrypt11',
250       'dependencies=': [],
251       'package_ldflags': ['-Wl,-z,muldefs'],
252       'extra_configure_flags': [
253         # From debian/rules.
254         '--enable-noexecstack',
255         '--enable-ld-version-script',
256         '--disable-static',
257         # http://crbug.com/344505
258         '--disable-asm'
259       ],
260       'includes': ['standard_instrumented_package_target.gypi'],
261     },
262     {
263       'package_name': 'libglib2.0-0',
264       'dependencies=': [],
265       'extra_configure_flags': [
266         '--disable-gtk-doc',
267         '--disable-gtk-doc-html',
268         '--disable-gtk-doc-pdf',
269         '--disable-static',
270       ],
271       'asan_blacklist': 'blacklists/asan/libglib2.0-0.txt',
272       'msan_blacklist': 'blacklists/msan/libglib2.0-0.txt',
273       'run_before_build': 'scripts/autogen.sh',
274       'includes': ['standard_instrumented_package_target.gypi'],
275     },
276     {
277       'package_name': 'libgpg-error0',
278       'dependencies=': [],
279       'extra_configure_flags': ['--disable-static'],
280       'includes': ['standard_instrumented_package_target.gypi'],
281     },
282     {
283       'package_name': 'libnspr4',
284       'dependencies=': [],
285       'extra_configure_flags': [
286         '--enable-64bit',
287         '--disable-static',
288         # TSan reports data races on debug variables.
289         '--disable-debug',
290       ],
291       'run_before_build': 'scripts/libnspr4.sh',
292       'includes': ['standard_instrumented_package_target.gypi'],
293     },
294     {
295       'package_name': 'libp11-kit0',
296       'dependencies=': [],
297       'extra_configure_flags': ['--disable-static'],
298       # Required on Trusty due to autoconf version mismatch.
299       'run_before_build': 'scripts/autoreconf.sh',
300       'includes': ['standard_instrumented_package_target.gypi'],
301     },
302     {
303       'package_name': 'libpcre3',
304       'dependencies=': [],
305       'extra_configure_flags': [
306         '--enable-utf8',
307         '--enable-unicode-properties',
308         '--disable-static',
309       ],
310       'includes': ['standard_instrumented_package_target.gypi'],
311     },
312     {
313       'package_name': 'libpixman-1-0',
314       'dependencies=': [],
315       'extra_configure_flags': [
316         '--disable-static',
317         # From debian/rules.
318         '--disable-gtk',
319         '--disable-silent-rules',
320         # Avoid a clang issue. http://crbug.com/449183
321         '--disable-mmx',
322       ],
323       'patch': 'patches/libpixman-1-0.diff',
324       'includes': ['standard_instrumented_package_target.gypi'],
325     },
326     {
327       'package_name': 'libpng12-0',
328       'dependencies=': [],
329       'extra_configure_flags': ['--disable-static'],
330       'includes': ['standard_instrumented_package_target.gypi'],
331     },
332     {
333       'package_name': 'libx11-6',
334       'dependencies=': [],
335       'extra_configure_flags': [
336           '--disable-specs',
337           '--disable-static',
338       ],
339       'msan_blacklist': 'blacklists/msan/libx11-6.txt',
340       # Required on Trusty due to autoconf version mismatch.
341       'run_before_build': 'scripts/autoreconf.sh',
342       'includes': ['standard_instrumented_package_target.gypi'],
343     },
344     {
345       'package_name': 'libxau6',
346       'dependencies=': [],
347       'extra_configure_flags': ['--disable-static'],
348       'includes': ['standard_instrumented_package_target.gypi'],
349     },
350     {
351       'package_name': 'libxcb1',
352       'dependencies=': [],
353       'extra_configure_flags': [
354           '--disable-build-docs',
355           '--disable-static',
356       ],
357       'conditions': [
358         ['"<(_ubuntu_release)"=="precise"', {
359           # Backport fix for https://bugs.freedesktop.org/show_bug.cgi?id=54671
360           'patch': 'patches/libxcb1.precise.diff',
361         }],
362       ],
363       # Required on Trusty due to autoconf version mismatch.
364       'run_before_build': 'scripts/autoreconf.sh',
365       'includes': ['standard_instrumented_package_target.gypi'],
366     },
367     {
368       'package_name': 'libxcomposite1',
369       'dependencies=': [],
370       'extra_configure_flags': ['--disable-static'],
371       'includes': ['standard_instrumented_package_target.gypi'],
372     },
373     {
374       'package_name': 'libxcursor1',
375       'dependencies=': [],
376       'extra_configure_flags': ['--disable-static'],
377       'includes': ['standard_instrumented_package_target.gypi'],
378     },
379     {
380       'package_name': 'libxdamage1',
381       'dependencies=': [],
382       'extra_configure_flags': ['--disable-static'],
383       'includes': ['standard_instrumented_package_target.gypi'],
384     },
385     {
386       'package_name': 'libxdmcp6',
387       'dependencies=': [],
388       'extra_configure_flags': [
389           '--disable-docs',
390           '--disable-static',
391       ],
392       'includes': ['standard_instrumented_package_target.gypi'],
393     },
394     {
395       'package_name': 'libxext6',
396       'dependencies=': [],
397       'extra_configure_flags': [
398           '--disable-specs',
399           '--disable-static',
400       ],
401       'includes': ['standard_instrumented_package_target.gypi'],
402     },
403     {
404       'package_name': 'libxfixes3',
405       'dependencies=': [],
406       'extra_configure_flags': ['--disable-static'],
407       'includes': ['standard_instrumented_package_target.gypi'],
408     },
409     {
410       'package_name': 'libxi6',
411       'dependencies=': [],
412       'extra_configure_flags': [
413         '--disable-specs',
414         '--disable-docs',
415         '--disable-static',
416       ],
417       'includes': ['standard_instrumented_package_target.gypi'],
418     },
419     {
420       'package_name': 'libxinerama1',
421       'dependencies=': [],
422       'extra_configure_flags': ['--disable-static'],
423       'includes': ['standard_instrumented_package_target.gypi'],
424     },
425     {
426       'package_name': 'libxrandr2',
427       'dependencies=': [],
428       'extra_configure_flags': ['--disable-static'],
429       'includes': ['standard_instrumented_package_target.gypi'],
430     },
431     {
432       'package_name': 'libxrender1',
433       'dependencies=': [],
434       'extra_configure_flags': ['--disable-static'],
435       'includes': ['standard_instrumented_package_target.gypi'],
436     },
437     {
438       'package_name': 'libxss1',
439       'dependencies=': [],
440       'extra_configure_flags': ['--disable-static'],
441       'includes': ['standard_instrumented_package_target.gypi'],
442     },
443     {
444       'package_name': 'libxtst6',
445       'dependencies=': [],
446       'extra_configure_flags': [
447           '--disable-specs',
448           '--disable-static',
449       ],
450       'includes': ['standard_instrumented_package_target.gypi'],
451     },
452     {
453       'package_name': 'zlib1g',
454       'dependencies=': [],
455       # --disable-static is not supported
456       'patch': 'patches/zlib1g.diff',
457       'includes': ['standard_instrumented_package_target.gypi'],
458     },
459     {
460       'package_name': 'nss',
461       'dependencies=': [
462         # TODO(earthdok): get rid of this dependency
463         '<(_sanitizer_type)-libnspr4',
464       ],
465       'patch': 'patches/nss.diff',
466       'build_method': 'custom_nss',
467       'includes': ['standard_instrumented_package_target.gypi'],
468     },
469     {
470       'package_name': 'pulseaudio',
471       'dependencies=': [],
472       'conditions': [
473         ['"<(_ubuntu_release)"=="precise"', {
474           'patch': 'patches/pulseaudio.precise.diff',
475           'jobs': 1,
476         }, {
477           # New location of libpulsecommon.
478           'package_ldflags': [ '-Wl,-R,XORIGIN/pulseaudio/.' ],
479         }],
480       ],
481       'extra_configure_flags': [
482           '--disable-static',
483           # From debian/rules.
484           '--enable-x11',
485           '--disable-hal-compat',
486           # Disable some ARM-related code that fails compilation. No idea why
487           # this even impacts x86-64 builds.
488           '--disable-neon-opt'
489       ],
490       'run_before_build': 'scripts/pulseaudio.sh',
491       'includes': ['standard_instrumented_package_target.gypi'],
492     },
493     {
494       'package_name': 'libasound2',
495       'dependencies=': [],
496       'extra_configure_flags': ['--disable-static'],
497       'run_before_build': 'scripts/libasound2.sh',
498       'includes': ['standard_instrumented_package_target.gypi'],
499     },
500     {
501       'package_name': 'libcups2',
502       'dependencies=': [],
503       'patch': 'patches/libcups2.diff',
504       'jobs': 1,
505       'extra_configure_flags': [
506         '--disable-static',
507         # All from debian/rules.
508         '--localedir=/usr/share/cups/locale',
509         '--enable-slp',
510         '--enable-libpaper',
511         '--enable-ssl',
512         '--enable-gnutls',
513         '--disable-openssl',
514         '--enable-threads',
515         '--enable-debug',
516         '--enable-dbus',
517         '--with-dbusdir=/etc/dbus-1',
518         '--enable-gssapi',
519         '--enable-avahi',
520         '--with-pdftops=/usr/bin/gs',
521         '--disable-launchd',
522         '--with-cups-group=lp',
523         '--with-system-groups=lpadmin',
524         '--with-printcap=/var/run/cups/printcap',
525         '--with-log-file-perm=0640',
526         '--with-local_protocols="CUPS dnssd"',
527         '--with-remote_protocols="CUPS dnssd"',
528         '--enable-libusb',
529       ],
530       'includes': ['standard_instrumented_package_target.gypi'],
531     },
532     {
533       'package_name': 'pango1.0',
534       'dependencies=': [],
535       'extra_configure_flags': [
536         '--disable-static',
537         # Avoid https://bugs.gentoo.org/show_bug.cgi?id=425620
538         '--enable-introspection=no',
539         # Pango is normally used with dynamically loaded modules. However,
540         # ensuring pango is able to find instrumented versions of those modules
541         # is a huge pain in the neck. Let's link them statically instead, and
542         # hope for the best.
543         '--with-included-modules=yes'
544       ],
545       'includes': ['standard_instrumented_package_target.gypi'],
546     },
547     {
548       'package_name': 'libcap2',
549       'dependencies=': [],
550       'extra_configure_flags': ['--disable-static'],
551       'build_method': 'custom_libcap',
552       'includes': ['standard_instrumented_package_target.gypi'],
553     },
554     {
555       'package_name': 'udev',
556       'dependencies=': [],
557       'extra_configure_flags': [
558           '--disable-static',
559           # Without this flag there's a linking step that doesn't honor LDFLAGS
560           # and fails.
561           # TODO(earthdok): find a better fix.
562           '--disable-gudev'
563       ],
564       'run_before_build': 'scripts/udev.sh',
565       'includes': ['standard_instrumented_package_target.gypi'],
566     },
567     {
568       'package_name': 'libtasn1-3',
569       'dependencies=': [],
570       'extra_configure_flags': [
571           '--disable-static',
572           # From debian/rules.
573           '--enable-ld-version-script',
574       ],
575       'includes': ['standard_instrumented_package_target.gypi'],
576     },
577     {
578       'package_name': 'libtasn1-6',
579       'dependencies=': [],
580       'extra_configure_flags': [
581           '--disable-static',
582           # From debian/rules.
583           '--enable-ld-version-script',
584       ],
585       'includes': ['standard_instrumented_package_target.gypi'],
586     },
587     {
588       'package_name': 'libgnome-keyring0',
589       'extra_configure_flags': [
590           '--disable-static',
591           '--enable-tests=no',
592           # Make the build less problematic.
593           '--disable-introspection',
594       ],
595       'package_ldflags': ['-Wl,--as-needed'],
596       'dependencies=': [],
597       'includes': ['standard_instrumented_package_target.gypi'],
598     },
599     {
600       'package_name': 'libgtk2.0-0',
601       'package_cflags': ['-Wno-return-type'],
602       'extra_configure_flags': [
603           '--disable-static',
604           # From debian/rules.
605           '--prefix=/usr',
606           '--sysconfdir=/etc',
607           '--enable-test-print-backend',
608           '--enable-introspection=no',
609           '--with-xinput=yes',
610       ],
611       'dependencies=': [],
612       'conditions': [
613         ['"<(_ubuntu_release)"=="precise"', {
614           'patch': 'patches/libgtk2.0-0.precise.diff',
615         }, {
616           'patch': 'patches/libgtk2.0-0.trusty.diff',
617         }],
618       ],
619       'run_before_build': 'scripts/libgtk2.0-0.sh',
620       'includes': ['standard_instrumented_package_target.gypi'],
621     },
622     {
623       'package_name': 'libgdk-pixbuf2.0-0',
624       'extra_configure_flags': [
625           '--disable-static',
626           # From debian/rules.
627           '--with-libjasper',
628           '--with-x11',
629           # Make the build less problematic.
630           '--disable-introspection',
631           # Do not use loadable modules. Same as with Pango, there's no easy way
632           # to make gdk-pixbuf pick instrumented versions over system-installed
633           # ones.
634           '--disable-modules',
635       ],
636       'dependencies=': [],
637       'run_before_build': 'scripts/libgdk-pixbuf2.0-0.sh',
638       'includes': ['standard_instrumented_package_target.gypi'],
639     },
640     {
641       'package_name': 'libpci3',
642       'dependencies=': [],
643       'extra_configure_flags': ['--disable-static'],
644       'build_method': 'custom_libpci3',
645       'jobs': 1,
646       'includes': ['standard_instrumented_package_target.gypi'],
647     },
648     {
649       'package_name': 'libdbusmenu-glib4',
650       'extra_configure_flags': [
651           '--disable-static',
652           # From debian/rules.
653           '--disable-scrollkeeper',
654           '--enable-gtk-doc',
655           # --enable-introspection introduces a build step that attempts to run
656           # a just-built binary and crashes. Vala requires introspection.
657           # TODO(earthdok): find a better fix.
658           '--disable-introspection',
659           '--disable-vala',
660       ],
661       'dependencies=': [],
662       'run_before_build': 'scripts/autogen.sh',
663       'includes': ['standard_instrumented_package_target.gypi'],
664     },
665     {
666       'package_name': 'libgconf-2-4',
667       'extra_configure_flags': [
668           '--disable-static',
669           # From debian/rules. (Even though --with-gtk=3.0 doesn't make sense.)
670           '--with-gtk=3.0',
671           '--disable-orbit',
672           # See above.
673           '--disable-introspection',
674       ],
675       'dependencies=': [],
676       'includes': ['standard_instrumented_package_target.gypi'],
677     },
678     {
679       'package_name': 'libappindicator1',
680       'extra_configure_flags': [
681           '--disable-static',
682           # See above.
683           '--disable-introspection',
684       ],
685       'dependencies=': [],
686       'jobs': 1,
687       'run_before_build': 'scripts/autogen.sh',
688       'includes': ['standard_instrumented_package_target.gypi'],
689     },
690     {
691       'package_name': 'libdbusmenu',
692       'extra_configure_flags': [
693           '--disable-static',
694           # From debian/rules.
695           '--disable-scrollkeeper',
696           '--with-gtk=2',
697           # See above.
698           '--disable-introspection',
699           '--disable-vala',
700       ],
701       'dependencies=': [],
702       'run_before_build': 'scripts/autogen.sh',
703       'includes': ['standard_instrumented_package_target.gypi'],
704     },
705     {
706       'package_name': 'atk1.0',
707       'extra_configure_flags': [
708           '--disable-static',
709           # See above.
710           '--disable-introspection',
711       ],
712       'dependencies=': [],
713       'includes': ['standard_instrumented_package_target.gypi'],
714     },
715     {
716       'package_name': 'libunity9',
717       'dependencies=': [],
718       'extra_configure_flags': ['--disable-static'],
719       'run_before_build': 'scripts/autogen.sh',
720       'includes': ['standard_instrumented_package_target.gypi'],
721     },
722     {
723       'package_name': 'dee',
724       'extra_configure_flags': [
725           '--disable-static',
726           # See above.
727           '--disable-introspection',
728       ],
729       'dependencies=': [],
730       'run_before_build': 'scripts/autogen.sh',
731       'includes': ['standard_instrumented_package_target.gypi'],
732     },
733     {
734       'package_name': 'harfbuzz',
735       'package_cflags': ['-Wno-c++11-narrowing'],
736       'extra_configure_flags': [
737           '--disable-static',
738           # From debian/rules.
739           '--with-graphite2=yes',
740           '--with-gobject',
741           # See above.
742           '--disable-introspection',
743       ],
744       'dependencies=': [],
745       'includes': ['standard_instrumented_package_target.gypi'],
746     },
747     {
748       'package_name': 'brltty',
749       'extra_configure_flags': [
750           '--disable-static',
751           # From debian/rules.
752           '--without-viavoice',
753           '--without-theta',
754           '--without-swift',
755           '--bindir=/sbin',
756           '--with-curses=ncursesw',
757           '--disable-stripping',
758           # We don't need any of those.
759           '--disable-java-bindings',
760           '--disable-lisp-bindings',
761           '--disable-ocaml-bindings',
762           '--disable-python-bindings',
763           '--disable-tcl-bindings'
764       ],
765       'dependencies=': [],
766       'includes': ['standard_instrumented_package_target.gypi'],
767     },
768     {
769       'package_name': 'libva1',
770       'dependencies=': [],
771       'extra_configure_flags': ['--disable-static'],
772       # Backport a use-after-free fix:
773       # http://cgit.freedesktop.org/libva/diff/va/va.c?h=staging&id=d4988142a3f2256e38c5c5cdcdfc1b4f5f3c1ea9
774       'patch': 'patches/libva1.diff',
775       'run_before_build': 'scripts/libva1.sh',
776       'includes': ['standard_instrumented_package_target.gypi'],
777     },
778     {
779       'package_name': 'libsecret',
780       'dependencies=': [],
781       'extra_configure_flags': [
782           '--disable-static',
783           # See above.
784           '--disable-introspection',
785       ],
786       'run_before_build': 'scripts/autoreconf.sh',
787       'includes': ['standard_instrumented_package_target.gypi'],
788     },
789   ],