| 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 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 459 # This target is a hard dependency because the generated .asm files | 459 # This target is a hard dependency because the generated .asm files |
| 460 # are needed all assembly optimized files in libvpx. | 460 # are needed all assembly optimized files in libvpx. |
| 461 'target_name': 'gen_asm_offsets_vp8', | 461 'target_name': 'gen_asm_offsets_vp8', |
| 462 'type': 'none', | 462 'type': 'none', |
| 463 'hard_dependency': 1, | 463 'hard_dependency': 1, |
| 464 'dependencies': [ | 464 'dependencies': [ |
| 465 'libvpx_asm_offsets_vp8', | 465 'libvpx_asm_offsets_vp8', |
| 466 'libvpx_obj_int_extract#host', | 466 'libvpx_obj_int_extract#host', |
| 467 ], | 467 ], |
| 468 'variables' : { | 468 'variables' : { |
| 469 # unpack_lib is used as an input to unpack_lib_posix.gypi. |
| 469 'unpack_lib' : '<(shared_generated_dir)/libvpx_asm_offsets_vp8.a', | 470 'unpack_lib' : '<(shared_generated_dir)/libvpx_asm_offsets_vp8.a', |
| 471 'unpack_lib_search_path' : '<(unpack_lib)', |
| 470 'output_format':'', | 472 'output_format':'', |
| 471 'output_dir': '<(shared_generated_dir)', | 473 'output_dir': '<(shared_generated_dir)', |
| 472 'conditions' : [ | 474 'conditions' : [ |
| 473 ['android_webview_build==1', { | 475 ['android_webview_build==1', { |
| 474 # pass the empty string for 3rd and 4th arguments of | 476 # pass the empty string for 3rd and 4th arguments of |
| 475 # intermediates-dir-for macro. | 477 # intermediates-dir-for macro. |
| 476 'unpack_lib' : '$(abspath $(call intermediates-dir-for,STATIC_LIBRAR
IES,libvpx_asm_offsets_vp8,,,$(gyp_var_prefix)))/libvpx_asm_offsets_vp8.a', | 478 'unpack_lib' : '$(call intermediates-dir-for,STATIC_LIBRARIES,libvpx
_asm_offsets_vp8,,,$(gyp_var_prefix))/libvpx_asm_offsets_vp8.a', |
| 479 'unpack_lib_search_path' : '$(abspath <(unpack_lib))', |
| 477 }], | 480 }], |
| 478 ['(target_arch=="arm" or target_arch=="armv7")', { | 481 ['(target_arch=="arm" or target_arch=="armv7")', { |
| 479 'output_format': 'gas', | 482 'output_format': 'gas', |
| 480 }, { | 483 }, { |
| 481 'output_format': 'rvds', | 484 'output_format': 'rvds', |
| 482 }], | 485 }], |
| 483 ], | 486 ], |
| 484 }, | 487 }, |
| 485 'conditions': [ | 488 'conditions': [ |
| 486 ['OS=="win"', { | 489 ['OS=="win"', { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 503 ], | 506 ], |
| 504 'process_output_as_sources': 1, | 507 'process_output_as_sources': 1, |
| 505 }, | 508 }, |
| 506 ], | 509 ], |
| 507 'sources': [ | 510 'sources': [ |
| 508 '<(INTERMEDIATE_DIR)/vp8_asm_enc_offsets.obj', | 511 '<(INTERMEDIATE_DIR)/vp8_asm_enc_offsets.obj', |
| 509 ], | 512 ], |
| 510 }, { | 513 }, { |
| 511 'variables': { | 514 'variables': { |
| 512 'unpack_lib_search_path_list': [ | 515 'unpack_lib_search_path_list': [ |
| 513 '-a', '<(unpack_lib)', | 516 '-a', '<(unpack_lib_search_path)', |
| 514 ], | 517 ], |
| 515 'object_file_output_dir':'<(INTERMEDIATE_DIR)', | 518 'object_file_output_dir':'<(INTERMEDIATE_DIR)', |
| 516 'object_file_to_extract':'vp8_asm_enc_offsets.o' | 519 'object_file_to_extract':'vp8_asm_enc_offsets.o' |
| 517 }, | 520 }, |
| 518 'includes': ['unpack_lib_posix.gypi'], | 521 'includes': ['unpack_lib_posix.gypi'], |
| 519 # Need this otherwise gyp won't run the rule on them. | 522 # Need this otherwise gyp won't run the rule on them. |
| 520 'sources': [ | 523 'sources': [ |
| 521 '<(INTERMEDIATE_DIR)/vp8_asm_enc_offsets.o', | 524 '<(INTERMEDIATE_DIR)/vp8_asm_enc_offsets.o', |
| 522 ], | 525 ], |
| 523 }], | 526 }], |
| 524 ], | 527 ], |
| 525 'includes': ['obj_int_extract.gypi'], | 528 'includes': ['obj_int_extract.gypi'], |
| 526 }, | 529 }, |
| 527 { | 530 { |
| 528 # A target that takes assembly offsets library and generate the | 531 # A target that takes assembly offsets library and generate the |
| 529 # corresponding assembly files. | 532 # corresponding assembly files. |
| 530 # This target is a hard dependency because the generated .asm files | 533 # This target is a hard dependency because the generated .asm files |
| 531 # are needed all assembly optimized files in libvpx. | 534 # are needed all assembly optimized files in libvpx. |
| 532 'target_name': 'gen_asm_offsets_vpx_scale', | 535 'target_name': 'gen_asm_offsets_vpx_scale', |
| 533 'type': 'none', | 536 'type': 'none', |
| 534 'hard_dependency': 1, | 537 'hard_dependency': 1, |
| 535 'dependencies': [ | 538 'dependencies': [ |
| 536 'libvpx_asm_offsets_vpx_scale', | 539 'libvpx_asm_offsets_vpx_scale', |
| 537 'libvpx_obj_int_extract#host', | 540 'libvpx_obj_int_extract#host', |
| 538 ], | 541 ], |
| 539 'variables' : { | 542 'variables' : { |
| 540 'unpack_lib' : '<(shared_generated_dir)/libvpx_asm_offsets_vpx_scale.a', | 543 'unpack_lib' : '<(shared_generated_dir)/libvpx_asm_offsets_vpx_scale.a', |
| 544 'unpack_lib_search_path' : '<(unpack_lib)', |
| 541 'output_format':'', | 545 'output_format':'', |
| 542 'output_dir': '<(shared_generated_dir)', | 546 'output_dir': '<(shared_generated_dir)', |
| 543 'conditions' : [ | 547 'conditions' : [ |
| 544 ['android_webview_build==1', { | 548 ['android_webview_build==1', { |
| 545 # pass the empty string for 3rd and 4th arguments of | 549 # pass the empty string for 3rd and 4th arguments of |
| 546 # intermediates-dir-for macro. | 550 # intermediates-dir-for macro. |
| 547 'unpack_lib' : '$(abspath $(call intermediates-dir-for,STATIC_LIBRAR
IES,libvpx_asm_offsets_vpx_scale,,,$(gyp_var_prefix)))/libvpx_asm_offsets_vpx_sc
ale.a', | 551 'unpack_lib' : '$(call intermediates-dir-for,STATIC_LIBRARIES,libvpx
_asm_offsets_vpx_scale,,,$(gyp_var_prefix))/libvpx_asm_offsets_vpx_scale.a', |
| 552 'unpack_lib_search_path' : '$(abspath <(unpack_lib))', |
| 548 }], | 553 }], |
| 549 ['(target_arch=="arm" or target_arch=="armv7")', { | 554 ['(target_arch=="arm" or target_arch=="armv7")', { |
| 550 'output_format': 'gas', | 555 'output_format': 'gas', |
| 551 }, { | 556 }, { |
| 552 'output_format': 'rvds', | 557 'output_format': 'rvds', |
| 553 }], | 558 }], |
| 554 ], | 559 ], |
| 555 }, | 560 }, |
| 556 'conditions': [ | 561 'conditions': [ |
| 557 ['OS=="win"', { | 562 ['OS=="win"', { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 574 ], | 579 ], |
| 575 'process_output_as_sources': 1, | 580 'process_output_as_sources': 1, |
| 576 }, | 581 }, |
| 577 ], | 582 ], |
| 578 'sources': [ | 583 'sources': [ |
| 579 '<(INTERMEDIATE_DIR)/vpx_scale_asm_offsets.obj', | 584 '<(INTERMEDIATE_DIR)/vpx_scale_asm_offsets.obj', |
| 580 ], | 585 ], |
| 581 }, { | 586 }, { |
| 582 'variables': { | 587 'variables': { |
| 583 'unpack_lib_search_path_list': [ | 588 'unpack_lib_search_path_list': [ |
| 584 '-a', '<(unpack_lib)', | 589 '-a', '<(unpack_lib_search_path)', |
| 585 ], | 590 ], |
| 586 'object_file_output_dir':'<(INTERMEDIATE_DIR)', | 591 'object_file_output_dir':'<(INTERMEDIATE_DIR)', |
| 587 'object_file_to_extract':'vpx_scale_asm_offsets.o' | 592 'object_file_to_extract':'vpx_scale_asm_offsets.o' |
| 588 }, | 593 }, |
| 589 'includes': ['unpack_lib_posix.gypi'], | 594 'includes': ['unpack_lib_posix.gypi'], |
| 590 # Need this otherwise gyp won't run the rule on them. | 595 # Need this otherwise gyp won't run the rule on them. |
| 591 'sources': [ | 596 'sources': [ |
| 592 '<(INTERMEDIATE_DIR)/vpx_scale_asm_offsets.o', | 597 '<(INTERMEDIATE_DIR)/vpx_scale_asm_offsets.o', |
| 593 ], | 598 ], |
| 594 }], | 599 }], |
| 595 ], | 600 ], |
| 596 'includes': ['obj_int_extract.gypi'], | 601 'includes': ['obj_int_extract.gypi'], |
| 597 }, | 602 }, |
| 598 ], | 603 ], |
| 599 } | 604 } |
| OLD | NEW |