Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(498)

Side by Side Diff: third_party/instrumented_libraries/instrumented_libraries.gyp

Issue 361473002: Instrumented libraries: improve handling of custom patches. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use -i to pass filename to patch Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 'variables': { 6 'variables': {
7 'verbose_libraries_build%': 0, 7 'verbose_libraries_build%': 0,
8 'instrumented_libraries_jobs%': 1, 8 'instrumented_libraries_jobs%': 1,
9 }, 9 },
10 10
(...skipping 28 matching lines...) Expand all
39 '-U_FORITFY_SOURCE' 39 '-U_FORITFY_SOURCE'
40 ], 40 ],
41 'package_ldflags': [ 41 'package_ldflags': [
42 '-Wl,-z,origin', 42 '-Wl,-z,origin',
43 # We set RPATH=XORIGIN when building the package and replace it with 43 # We set RPATH=XORIGIN when building the package and replace it with
44 # $ORIGIN later. The reason is that this flag goes through configure/make 44 # $ORIGIN later. The reason is that this flag goes through configure/make
45 # differently for different packages. Because of this, we can't escape the 45 # differently for different packages. Because of this, we can't escape the
46 # $ character in a way that would work for every package. 46 # $ character in a way that would work for every package.
47 '-Wl,-R,XORIGIN/.' 47 '-Wl,-R,XORIGIN/.'
48 ], 48 ],
49 'patch': '',
49 'run_before_build': '', 50 'run_before_build': '',
50 51
51 'conditions': [ 52 'conditions': [
52 ['asan==1', { 53 ['asan==1', {
53 'sanitizer_blacklist': '', 54 'sanitizer_blacklist': '',
54 'package_cflags': ['-fsanitize=address'], 55 'package_cflags': ['-fsanitize=address'],
55 'package_ldflags': ['-fsanitize=address'], 56 'package_ldflags': ['-fsanitize=address'],
56 }], 57 }],
57 ['msan==1', { 58 ['msan==1', {
58 'sanitizer_blacklist': '<(msan_blacklist)', 59 'sanitizer_blacklist': '<(msan_blacklist)',
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 '-Wl,-R,\$$ORIGIN/instrumented_libraries/<(_sanitizer_type)/lib/:\ $$ORIGIN/instrumented_libraries/<(_sanitizer_type)/usr/lib/x86_64-linux-gnu/', 170 '-Wl,-R,\$$ORIGIN/instrumented_libraries/<(_sanitizer_type)/lib/:\ $$ORIGIN/instrumented_libraries/<(_sanitizer_type)/usr/lib/x86_64-linux-gnu/',
170 '-Wl,-z,origin', 171 '-Wl,-z,origin',
171 ], 172 ],
172 }], 173 }],
173 ], 174 ],
174 }, 175 },
175 }, 176 },
176 { 177 {
177 'package_name': 'freetype', 178 'package_name': 'freetype',
178 'dependencies=': [], 179 'dependencies=': [],
179 'run_before_build': 'freetype.sh', 180 'run_before_build': 'scripts/freetype.sh',
180 'includes': ['standard_instrumented_package_target.gypi'], 181 'includes': ['standard_instrumented_package_target.gypi'],
181 }, 182 },
182 { 183 {
183 'package_name': 'libcairo2', 184 'package_name': 'libcairo2',
184 'dependencies=': [], 185 'dependencies=': [],
185 'extra_configure_flags': ['--disable-gtk-doc'], 186 'extra_configure_flags': ['--disable-gtk-doc'],
186 'includes': ['standard_instrumented_package_target.gypi'], 187 'includes': ['standard_instrumented_package_target.gypi'],
187 }, 188 },
188 { 189 {
189 'package_name': 'libdbus-1-3', 190 'package_name': 'libdbus-1-3',
(...skipping 26 matching lines...) Expand all
216 'package_name': 'libfontconfig1', 217 'package_name': 'libfontconfig1',
217 'dependencies=': [ 218 'dependencies=': [
218 '<(_sanitizer_type)-freetype', 219 '<(_sanitizer_type)-freetype',
219 ], 220 ],
220 'extra_configure_flags': [ 221 'extra_configure_flags': [
221 '--disable-docs', 222 '--disable-docs',
222 '--sysconfdir=/etc/', 223 '--sysconfdir=/etc/',
223 # From debian/rules. 224 # From debian/rules.
224 '--with-add-fonts=/usr/X11R6/lib/X11/fonts,/usr/local/share/fonts', 225 '--with-add-fonts=/usr/X11R6/lib/X11/fonts,/usr/local/share/fonts',
225 ], 226 ],
226 'run_before_build': 'libfontconfig.sh', 227 'patch': 'patches/libfontconfig.diff',
227 'includes': ['standard_instrumented_package_target.gypi'], 228 'includes': ['standard_instrumented_package_target.gypi'],
228 }, 229 },
229 { 230 {
230 'package_name': 'libgcrypt11', 231 'package_name': 'libgcrypt11',
231 'dependencies=': [], 232 'dependencies=': [],
232 'package_ldflags': ['-Wl,-z,muldefs'], 233 'package_ldflags': ['-Wl,-z,muldefs'],
233 'includes': ['standard_instrumented_package_target.gypi'], 234 'includes': ['standard_instrumented_package_target.gypi'],
234 }, 235 },
235 { 236 {
236 'package_name': 'libglib2.0-0', 237 'package_name': 'libglib2.0-0',
(...skipping 11 matching lines...) Expand all
248 'includes': ['standard_instrumented_package_target.gypi'], 249 'includes': ['standard_instrumented_package_target.gypi'],
249 }, 250 },
250 { 251 {
251 'package_name': 'libnspr4', 252 'package_name': 'libnspr4',
252 'dependencies=': [], 253 'dependencies=': [],
253 'extra_configure_flags': [ 254 'extra_configure_flags': [
254 '--enable-64bit', 255 '--enable-64bit',
255 # TSan reports data races on debug variables. 256 # TSan reports data races on debug variables.
256 '--disable-debug', 257 '--disable-debug',
257 ], 258 ],
258 'run_before_build': 'libnspr4.sh', 259 'run_before_build': 'scripts/libnspr4.sh',
259 'includes': ['standard_instrumented_package_target.gypi'], 260 'includes': ['standard_instrumented_package_target.gypi'],
260 }, 261 },
261 { 262 {
262 'package_name': 'libp11-kit0', 263 'package_name': 'libp11-kit0',
263 'dependencies=': [], 264 'dependencies=': [],
264 'includes': ['standard_instrumented_package_target.gypi'], 265 'includes': ['standard_instrumented_package_target.gypi'],
265 }, 266 },
266 { 267 {
267 'package_name': 'libpcre3', 268 'package_name': 'libpcre3',
268 'dependencies=': [], 269 'dependencies=': [],
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 }, 365 },
365 { 366 {
366 'package_name': 'libxtst6', 367 'package_name': 'libxtst6',
367 'dependencies=': [], 368 'dependencies=': [],
368 'extra_configure_flags': ['--disable-specs'], 369 'extra_configure_flags': ['--disable-specs'],
369 'includes': ['standard_instrumented_package_target.gypi'], 370 'includes': ['standard_instrumented_package_target.gypi'],
370 }, 371 },
371 { 372 {
372 'package_name': 'zlib1g', 373 'package_name': 'zlib1g',
373 'dependencies=': [], 374 'dependencies=': [],
374 'run_before_build': 'zlib1g.sh', 375 'patch': 'patches/zlib1g.diff',
375 'includes': ['standard_instrumented_package_target.gypi'], 376 'includes': ['standard_instrumented_package_target.gypi'],
376 }, 377 },
377 { 378 {
378 'package_name': 'nss', 379 'package_name': 'nss',
379 'dependencies=': [ 380 'dependencies=': [
380 '<(_sanitizer_type)-libnspr4', 381 '<(_sanitizer_type)-libnspr4',
381 ], 382 ],
382 'run_before_build': 'nss.sh', 383 'patch': 'patches/nss.diff',
383 'build_method': 'custom_nss', 384 'build_method': 'custom_nss',
384 'includes': ['standard_instrumented_package_target.gypi'], 385 'includes': ['standard_instrumented_package_target.gypi'],
385 }, 386 },
386 { 387 {
387 'package_name': 'pulseaudio', 388 'package_name': 'pulseaudio',
388 'dependencies=': [ 389 'dependencies=': [
389 '<(_sanitizer_type)-libdbus-1-3', 390 '<(_sanitizer_type)-libdbus-1-3',
390 ], 391 ],
391 'run_before_build': 'pulseaudio.sh', 392 'patch': 'patches/pulseaudio.diff',
393 'run_before_build': 'scripts/pulseaudio.sh',
392 'jobs': 1, 394 'jobs': 1,
393 'includes': ['standard_instrumented_package_target.gypi'], 395 'includes': ['standard_instrumented_package_target.gypi'],
394 }, 396 },
395 { 397 {
396 'package_name': 'libasound2', 398 'package_name': 'libasound2',
397 'dependencies=': [], 399 'dependencies=': [],
398 'run_before_build': 'libasound2.sh', 400 'run_before_build': 'scripts/libasound2.sh',
399 'includes': ['standard_instrumented_package_target.gypi'], 401 'includes': ['standard_instrumented_package_target.gypi'],
400 }, 402 },
401 { 403 {
402 'package_name': 'libcups2', 404 'package_name': 'libcups2',
403 'dependencies=': [], 405 'dependencies=': [],
404 'run_before_build': 'libcups2.sh', 406 'patch': 'patches/libcups2.diff',
405 'jobs': 1, 407 'jobs': 1,
406 'extra_configure_flags': [ 408 'extra_configure_flags': [
407 # All from debian/rules. 409 # All from debian/rules.
408 '--localedir=/usr/share/cups/locale', 410 '--localedir=/usr/share/cups/locale',
409 '--enable-slp', 411 '--enable-slp',
410 '--enable-libpaper', 412 '--enable-libpaper',
411 '--enable-ssl', 413 '--enable-ssl',
412 '--enable-gnutls', 414 '--enable-gnutls',
413 '--disable-openssl', 415 '--disable-openssl',
414 '--enable-threads', 416 '--enable-threads',
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 'package_cflags': ['-Wno-return-type'], 482 'package_cflags': ['-Wno-return-type'],
481 'extra_configure_flags': [ 483 'extra_configure_flags': [
482 # From debian/rules. 484 # From debian/rules.
483 '--prefix=/usr', 485 '--prefix=/usr',
484 '--sysconfdir=/etc', 486 '--sysconfdir=/etc',
485 '--enable-test-print-backend', 487 '--enable-test-print-backend',
486 '--enable-introspection=no', 488 '--enable-introspection=no',
487 '--with-xinput=yes', 489 '--with-xinput=yes',
488 ], 490 ],
489 'dependencies=': [], 491 'dependencies=': [],
490 'run_before_build': 'libgtk2.0-0.sh', 492 'patch': 'patches/libgtk2.0-0.diff',
493 'run_before_build': 'scripts/libgtk2.0-0.sh',
491 'includes': ['standard_instrumented_package_target.gypi'], 494 'includes': ['standard_instrumented_package_target.gypi'],
492 }, 495 },
493 { 496 {
494 'package_name': 'libgdk-pixbuf2.0-0', 497 'package_name': 'libgdk-pixbuf2.0-0',
495 'extra_configure_flags': [ 498 'extra_configure_flags': [
496 # From debian/rules. 499 # From debian/rules.
497 '--with-libjasper', 500 '--with-libjasper',
498 '--with-x11', 501 '--with-x11',
499 # Make the build less problematic. 502 # Make the build less problematic.
500 '--disable-introspection', 503 '--disable-introspection',
501 ], 504 ],
502 'dependencies=': [], 505 'dependencies=': [],
503 'run_before_build': 'libgdk-pixbuf2.0-0.sh', 506 'patch': 'patches/libgdk-pixbuf2.0-0.diff',
507 'run_before_build': 'scripts/libgdk-pixbuf2.0-0.sh',
504 'includes': ['standard_instrumented_package_target.gypi'], 508 'includes': ['standard_instrumented_package_target.gypi'],
505 }, 509 },
506 { 510 {
507 'package_name': 'libpci3', 511 'package_name': 'libpci3',
508 'dependencies=': [], 512 'dependencies=': [],
509 'build_method': 'custom_libpci3', 513 'build_method': 'custom_libpci3',
510 'jobs': 1, 514 'jobs': 1,
511 'includes': ['standard_instrumented_package_target.gypi'], 515 'includes': ['standard_instrumented_package_target.gypi'],
512 }, 516 },
513 { 517 {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 'includes': ['standard_instrumented_package_target.gypi'], 550 'includes': ['standard_instrumented_package_target.gypi'],
547 }, 551 },
548 { 552 {
549 'package_name': 'libappindicator1', 553 'package_name': 'libappindicator1',
550 'extra_configure_flags': [ 554 'extra_configure_flags': [
551 # See above. 555 # See above.
552 '--disable-introspection', 556 '--disable-introspection',
553 ], 557 ],
554 'dependencies=': [], 558 'dependencies=': [],
555 'build_method': 'custom_libappindicator1', 559 'build_method': 'custom_libappindicator1',
560 'jobs': 1,
556 'includes': ['standard_instrumented_package_target.gypi'], 561 'includes': ['standard_instrumented_package_target.gypi'],
557 }, 562 },
558 { 563 {
559 'package_name': 'libdbusmenu', 564 'package_name': 'libdbusmenu',
560 'extra_configure_flags': [ 565 'extra_configure_flags': [
561 # From debian/rules. 566 # From debian/rules.
562 '--disable-scrollkeeper', 567 '--disable-scrollkeeper',
563 '--with-gtk=2', 568 '--with-gtk=2',
564 # See above. 569 # See above.
565 '--disable-introspection', 570 '--disable-introspection',
(...skipping 20 matching lines...) Expand all
586 'package_name': 'dee', 591 'package_name': 'dee',
587 'extra_configure_flags': [ 592 'extra_configure_flags': [
588 # See above. 593 # See above.
589 '--disable-introspection', 594 '--disable-introspection',
590 ], 595 ],
591 'dependencies=': [], 596 'dependencies=': [],
592 'includes': ['standard_instrumented_package_target.gypi'], 597 'includes': ['standard_instrumented_package_target.gypi'],
593 }, 598 },
594 ], 599 ],
595 } 600 }
OLDNEW
« no previous file with comments | « third_party/instrumented_libraries/freetype.sh ('k') | third_party/instrumented_libraries/libasound2.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698