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 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
461 ], | 461 ], |
462 'variables' : { | 462 'variables' : { |
463 'unpack_lib' : '', | 463 'unpack_lib' : '', |
464 'output_format':'', | 464 'output_format':'', |
465 'output_dir': '<(shared_generated_dir)', | 465 'output_dir': '<(shared_generated_dir)', |
466 'conditions' : [ | 466 'conditions' : [ |
467 ['android_webview_build==1', { | 467 ['android_webview_build==1', { |
468 # pass the empty string for 3rd and 4th arguments of | 468 # pass the empty string for 3rd and 4th arguments of |
469 # intermediates-dir-for macro. | 469 # intermediates-dir-for macro. |
470 'unpack_lib' : '$(abspath $(call intermediates-dir-for,STATIC_LIBRAR
IES,libvpx_asm_offsets_vp8,,,$(gyp_var_prefix)))/libvpx_asm_offsets_vp8.a', | 470 'unpack_lib' : '$(abspath $(call intermediates-dir-for,STATIC_LIBRAR
IES,libvpx_asm_offsets_vp8,,,$(gyp_var_prefix)))/libvpx_asm_offsets_vp8.a', |
471 }, { | 471 },], |
| 472 ['OS=="mac"', { |
| 473 'unpack_lib' : '<(PRODUCT_DIR)/libvpx_asm_offsets_vp8.a', |
| 474 },], |
| 475 ['(OS!="win" and OS!="mac")', { |
| 476 # <(LIB_DIR) not defined for "win". |
472 'unpack_lib' : '<(LIB_DIR)/third_party/libvpx/libvpx_asm_offsets_vp8
.a', | 477 'unpack_lib' : '<(LIB_DIR)/third_party/libvpx/libvpx_asm_offsets_vp8
.a', |
473 },], | 478 },], |
474 ['(target_arch=="arm" or target_arch=="armv7")', { | 479 ['(target_arch=="arm" or target_arch=="armv7")', { |
475 'output_format': 'gas', | 480 'output_format': 'gas', |
476 }, { | 481 }, { |
477 'output_format': 'rvds', | 482 'output_format': 'rvds', |
478 }], | 483 }], |
479 ], | 484 ], |
480 }, | 485 }, |
481 'conditions': [ | 486 'conditions': [ |
482 ['OS=="win"', { | 487 ['OS=="win"', { |
483 'variables': { | 488 'variables': { |
484 'ninja_obj_dir': '<(PRODUCT_DIR)/obj/third_party/libvpx/<(libvpx_sou
rce)/vp8', | 489 'ninja_obj_dir': '<(PRODUCT_DIR)/obj/third_party/libvpx/<(libvpx_sou
rce)/vp8', |
485 }, | 490 }, |
486 'actions': [ | 491 'actions': [ |
487 { | 492 { |
488 'action_name': 'copy_enc_offsets_obj', | 493 'action_name': 'copy_enc_offsets_obj', |
489 'inputs': [ | 494 'inputs': [ |
490 'copy_obj.py', | 495 'copy_obj.py', |
491 '<(ninja_obj_dir)/encoder/libvpx_asm_offsets_vp8.vp8_asm_enc_off
sets.obj', | 496 '<(ninja_obj_dir)/encoder/libvpx_asm_offsets_vp8.vp8_asm_enc_off
sets.obj', |
492 ], | 497 ], |
493 'outputs': [ '<(INTERMEDIATE_DIR)/vp8_asm_enc_offsets.obj' ], | 498 'outputs': [ '<(INTERMEDIATE_DIR)/vp8_asm_enc_offsets.obj' ], |
494 'action': [ | 499 'action': [ |
495 'python', | 500 'python', |
496 '<(DEPTH)/third_party/libvpx/copy_obj.py', | 501 '<(DEPTH)/third_party/libvpx/copy_obj.py', |
497 '-d', '<@(_outputs)', | 502 '-d', '<@(_outputs)', |
498 '-s', '<(ninja_obj_dir)/encoder/libvpx_asm_offsets_vp8.vp8_asm_e
nc_offsets.obj', | 503 '-s', '<(ninja_obj_dir)/encoder/libvpx_asm_offsets_vp8.vp8_asm_e
nc_offsets.obj', |
499 ], | 504 ], |
500 'process_output_as_sources': 1, | 505 'process_output_as_sources': 1, |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
534 ], | 539 ], |
535 'variables' : { | 540 'variables' : { |
536 'unpack_lib' : '', | 541 'unpack_lib' : '', |
537 'output_format':'', | 542 'output_format':'', |
538 'output_dir': '<(shared_generated_dir)', | 543 'output_dir': '<(shared_generated_dir)', |
539 'conditions' : [ | 544 'conditions' : [ |
540 ['android_webview_build==1', { | 545 ['android_webview_build==1', { |
541 # pass the empty string for 3rd and 4th arguments of | 546 # pass the empty string for 3rd and 4th arguments of |
542 # intermediates-dir-for macro. | 547 # intermediates-dir-for macro. |
543 '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', | 548 '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', |
544 }, { | 549 },], |
| 550 ['OS!="win"', { |
545 'unpack_lib' : '<(LIB_DIR)/third_party/libvpx/libvpx_asm_offsets_vpx
_scale.a', | 551 'unpack_lib' : '<(LIB_DIR)/third_party/libvpx/libvpx_asm_offsets_vpx
_scale.a', |
546 },], | 552 },], |
547 ['(target_arch=="arm" or target_arch=="armv7")', { | 553 ['(target_arch=="arm" or target_arch=="armv7")', { |
548 'output_format': 'gas', | 554 'output_format': 'gas', |
549 }, { | 555 }, { |
550 'output_format': 'rvds', | 556 'output_format': 'rvds', |
551 }], | 557 }], |
552 ], | 558 ], |
553 }, | 559 }, |
554 'conditions': [ | 560 'conditions': [ |
555 ['OS=="win"', { | 561 ['OS=="win"', { |
556 'variables': { | 562 'variables': { |
557 'ninja_obj_dir': '<(PRODUCT_DIR)/obj/third_party/libvpx/<(libvpx_sou
rce)/vpx_scale', | 563 'ninja_obj_dir': '<(PRODUCT_DIR)/obj/third_party/libvpx/<(libvpx_sou
rce)/vpx_scale', |
558 }, | 564 }, |
559 'actions': [ | 565 'actions': [ |
560 { | 566 { |
561 'action_name': 'copy_enc_offsets_obj', | 567 'action_name': 'copy_enc_offsets_obj', |
562 'inputs': [ | 568 'inputs': [ |
563 'copy_obj.py', | 569 'copy_obj.py', |
564 '<(ninja_obj_dir)/encoder/libvpx_asm_offsets_vpx_scale.vpx_scale
_asm_offsets.obj', | 570 '<(ninja_obj_dir)/encoder/libvpx_asm_offsets_vpx_scale.vpx_scale
_asm_offsets.obj', |
565 ], | 571 ], |
566 'outputs': [ '<(INTERMEDIATE_DIR)/vpx_scale_asm_offsets.obj' ], | 572 'outputs': [ '<(INTERMEDIATE_DIR)/vpx_scale_asm_offsets.obj' ], |
567 'action': [ | 573 'action': [ |
568 'python', | 574 'python', |
569 '<(DEPTH)/third_party/libvpx/copy_obj.py', | 575 '<(DEPTH)/third_party/libvpx/copy_obj.py', |
570 '-d', '<@(_outputs)', | 576 '-d', '<@(_outputs)', |
571 '-s', '<(ninja_obj_dir)/encoder/libvpx_asm_offsets_vpx_scale.vpx
_scale_asm_offsets.obj', | 577 '-s', '<(ninja_obj_dir)/encoder/libvpx_asm_offsets_vpx_scale.vpx
_scale_asm_offsets.obj', |
572 ], | 578 ], |
573 'process_output_as_sources': 1, | 579 'process_output_as_sources': 1, |
(...skipping 14 matching lines...) Expand all Loading... |
588 # Need this otherwise gyp won't run the rule on them. | 594 # Need this otherwise gyp won't run the rule on them. |
589 'sources': [ | 595 'sources': [ |
590 '<(INTERMEDIATE_DIR)/vpx_scale_asm_offsets.o', | 596 '<(INTERMEDIATE_DIR)/vpx_scale_asm_offsets.o', |
591 ], | 597 ], |
592 }], | 598 }], |
593 ], | 599 ], |
594 'includes': ['obj_int_extract.gypi'], | 600 'includes': ['obj_int_extract.gypi'], |
595 }, | 601 }, |
596 ], | 602 ], |
597 } | 603 } |
OLD | NEW |