OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 'variables': { | 5 'variables': { |
6 'libvpx_build_vp9%': 1, | 6 'libvpx_build_vp9%': 1, |
7 'libvpx_source%': 'source/libvpx', | 7 'libvpx_source%': 'source/libvpx', |
8 'conditions': [ | 8 'conditions': [ |
9 ['os_posix==1', { | 9 ['os_posix==1', { |
10 'asm_obj_extension': 'o', | 10 'asm_obj_extension': 'o', |
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 }], | 389 }], |
390 ], | 390 ], |
391 }, | 391 }, |
392 { | 392 { |
393 # A library that contains assembly offsets needed. | 393 # A library that contains assembly offsets needed. |
394 'target_name': 'libvpx_asm_offsets_vp8', | 394 'target_name': 'libvpx_asm_offsets_vp8', |
395 'type': 'static_library', | 395 'type': 'static_library', |
396 'android_unmangled_name': 1, | 396 'android_unmangled_name': 1, |
397 'hard_dependency': 1, | 397 'hard_dependency': 1, |
398 'product_dir': '<(shared_generated_dir)', | 398 'product_dir': '<(shared_generated_dir)', |
399 'conditions' : [ | |
400 ['android_webview_build==1', { | |
401 'product_dir' : '', | |
402 }], | |
403 ], | |
404 'include_dirs': [ | 399 'include_dirs': [ |
405 'source/config/<(OS_CATEGORY)/<(target_arch_full)', | 400 'source/config/<(OS_CATEGORY)/<(target_arch_full)', |
406 'source/config', | 401 'source/config', |
407 '<(libvpx_source)', | 402 '<(libvpx_source)', |
408 ], | 403 ], |
409 'conditions': [ | 404 'conditions': [ |
410 ['asan==1', { | 405 ['asan==1', { |
411 'cflags!': [ '-fsanitize=address' ], | 406 'cflags!': [ '-fsanitize=address' ], |
412 'xcode_settings': { 'OTHER_CFLAGS!': [ '-fsanitize=address' ] }, | 407 'xcode_settings': { 'OTHER_CFLAGS!': [ '-fsanitize=address' ] }, |
413 'ldflags!': [ '-fsanitize=address' ], | 408 'ldflags!': [ '-fsanitize=address' ], |
414 }], | 409 }], |
415 ['OS=="win"', { | 410 ['OS=="win"', { |
416 'msvs_settings': { | 411 'msvs_settings': { |
417 'VCCLCompilerTool': { | 412 'VCCLCompilerTool': { |
418 # Clang uses -fdata-sections when function level linking is | 413 # Clang uses -fdata-sections when function level linking is |
419 # enabled, but libvpx_obj_int_extract expects all data to | 414 # enabled, but libvpx_obj_int_extract expects all data to |
420 # reside in the same section on Windows. | 415 # reside in the same section on Windows. |
421 'EnableFunctionLevelLinking': 'false', | 416 'EnableFunctionLevelLinking': 'false', |
422 }, | 417 }, |
423 }, | 418 }, |
424 }], | 419 }], |
| 420 ['android_webview_build==1', { |
| 421 'product_dir' : '', |
| 422 }], |
425 ], | 423 ], |
426 'sources': [ | 424 'sources': [ |
427 '<(libvpx_source)/vp8/encoder/vp8_asm_enc_offsets.c', | 425 '<(libvpx_source)/vp8/encoder/vp8_asm_enc_offsets.c', |
428 ], | 426 ], |
429 }, | 427 }, |
430 { | 428 { |
431 # A library that contains assembly offsets needed. | 429 # A library that contains assembly offsets needed. |
432 # TODO(fgalligan): Merge libvpx_asm_offsets_vpx_scale into | 430 # TODO(fgalligan): Merge libvpx_asm_offsets_vpx_scale into |
433 # libvpx_asm_offsets. | 431 # libvpx_asm_offsets. |
434 'target_name': 'libvpx_asm_offsets_vpx_scale', | 432 'target_name': 'libvpx_asm_offsets_vpx_scale', |
435 'type': 'static_library', | 433 'type': 'static_library', |
436 'android_unmangled_name': 1, | 434 'android_unmangled_name': 1, |
437 'hard_dependency': 1, | 435 'hard_dependency': 1, |
438 'product_dir': '<(shared_generated_dir)', | 436 'product_dir': '<(shared_generated_dir)', |
439 'conditions' : [ | |
440 ['android_webview_build==1', { | |
441 'product_dir' : '', | |
442 }], | |
443 ], | |
444 'include_dirs': [ | 437 'include_dirs': [ |
445 'source/config/<(OS_CATEGORY)/<(target_arch_full)', | 438 'source/config/<(OS_CATEGORY)/<(target_arch_full)', |
446 'source/config', | 439 'source/config', |
447 '<(libvpx_source)', | 440 '<(libvpx_source)', |
448 ], | 441 ], |
449 'conditions': [ | 442 'conditions': [ |
450 ['asan==1', { | 443 ['asan==1', { |
451 'cflags!': [ '-faddress-sanitizer', '-fsanitize=address', ], | 444 'cflags!': [ '-faddress-sanitizer', '-fsanitize=address', ], |
452 'xcode_settings': { | 445 'xcode_settings': { |
453 'OTHER_CFLAGS!': [ '-faddress-sanitizer','-fsanitize=address' ], | 446 'OTHER_CFLAGS!': [ '-faddress-sanitizer','-fsanitize=address' ], |
454 }, | 447 }, |
455 'ldflags!': [ '-faddress-sanitizer', '-fsanitize=address', ], | 448 'ldflags!': [ '-faddress-sanitizer', '-fsanitize=address', ], |
456 }], | 449 }], |
| 450 ['android_webview_build==1', { |
| 451 'product_dir' : '', |
| 452 }], |
457 ], | 453 ], |
458 'sources': [ | 454 'sources': [ |
459 '<(libvpx_source)/vpx_scale/vpx_scale_asm_offsets.c', | 455 '<(libvpx_source)/vpx_scale/vpx_scale_asm_offsets.c', |
460 ], | 456 ], |
461 }, | 457 }, |
462 { | 458 { |
463 # A target that takes assembly offsets library and generate the | 459 # A target that takes assembly offsets library and generate the |
464 # corresponding assembly files. | 460 # corresponding assembly files. |
465 # This target is a hard dependency because the generated .asm files | 461 # This target is a hard dependency because the generated .asm files |
466 # are needed all assembly optimized files in libvpx. | 462 # are needed all assembly optimized files in libvpx. |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
596 # Need this otherwise gyp won't run the rule on them. | 592 # Need this otherwise gyp won't run the rule on them. |
597 'sources': [ | 593 'sources': [ |
598 '<(INTERMEDIATE_DIR)/vpx_scale_asm_offsets.o', | 594 '<(INTERMEDIATE_DIR)/vpx_scale_asm_offsets.o', |
599 ], | 595 ], |
600 }], | 596 }], |
601 ], | 597 ], |
602 'includes': ['obj_int_extract.gypi'], | 598 'includes': ['obj_int_extract.gypi'], |
603 }, | 599 }, |
604 ], | 600 ], |
605 } | 601 } |
OLD | NEW |