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