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