Chromium Code Reviews| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 46 }, | 46 }, |
| 47 'target_defaults': { | 47 'target_defaults': { |
| 48 'target_conditions': [ | 48 'target_conditions': [ |
| 49 ['<(libvpx_build_vp9)==0', { | 49 ['<(libvpx_build_vp9)==0', { |
| 50 'sources/': [ ['exclude', '(^|/)vp9/'], ], | 50 'sources/': [ ['exclude', '(^|/)vp9/'], ], |
| 51 }], | 51 }], |
| 52 ], | 52 ], |
| 53 'variables': { | 53 'variables': { |
| 54 'conditions': [ | 54 'conditions': [ |
| 55 ['OS=="win" and buildtype=="Official"', { | 55 ['OS=="win" and buildtype=="Official"', { |
| 56 # Do not set to 'size', as it results in an error on win64. | 56 # Do not set to 'size', as it results in an error on win64. |
| 57 'optimize' :'speed', | 57 'optimize' :'speed', |
| 58 }], | 58 }], |
| 59 ], | 59 ], |
| 60 }, | 60 }, |
| 61 }, | 61 }, |
| 62 'conditions': [ | 62 'conditions': [ |
| 63 ['target_arch=="ia32"', { | 63 ['target_arch=="ia32"', { |
| 64 'includes': ['libvpx_srcs_x86_intrinsics.gypi', ], | 64 'includes': ['libvpx_srcs_x86_intrinsics.gypi', ], |
| 65 }], | 65 }], |
| 66 ['target_arch=="x64" and msan==0', { | 66 ['target_arch=="x64" and msan==0', { |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 277 }, | 277 }, |
| 278 'ads2gas_script%': '<(ads2gas_script)', | 278 'ads2gas_script%': '<(ads2gas_script)', |
| 279 # Location of the assembly conversion script. | 279 # Location of the assembly conversion script. |
| 280 'ads2gas_script_path': '<(libvpx_source)/build/make/<(ads2gas_script )', | 280 'ads2gas_script_path': '<(libvpx_source)/build/make/<(ads2gas_script )', |
| 281 'ads2gas_script_include': '<(libvpx_source)/build/make/thumb.pm', | 281 'ads2gas_script_include': '<(libvpx_source)/build/make/thumb.pm', |
| 282 }, | 282 }, |
| 283 # We need to explicitly tell the assembler to look for | 283 # We need to explicitly tell the assembler to look for |
| 284 # .include directive files from the place where they're | 284 # .include directive files from the place where they're |
| 285 # generated to. | 285 # generated to. |
| 286 'cflags': [ | 286 'cflags': [ |
| 287 '-Wa,-I,<!(pwd)/source/config/<(OS_CATEGORY)/<(target_arch_full)', | |
| 288 '-Wa,-I,<!(pwd)/source/config', | |
| 289 '-Wa,-I,<(shared_generated_dir)', | 287 '-Wa,-I,<(shared_generated_dir)', |
| 290 ], | 288 ], |
| 291 'xcode_settings': { | 289 'xcode_settings': { |
| 292 'OTHER_CFLAGS': [ | 290 'OTHER_CFLAGS': [ |
| 293 '-I<!(pwd)/source/config/<(OS_CATEGORY)/<(target_arch_full)', | 291 '-I<!(pwd)/source/config/<(OS_CATEGORY)/<(target_arch_full)', |
| 294 '-I<!(pwd)/source/config', | 292 '-I<!(pwd)/source/config', |
| 295 '-I<(shared_generated_dir)', | 293 '-I<(shared_generated_dir)', |
| 296 ], | 294 ], |
| 297 }, | 295 }, |
| 298 'include_dirs': [ | 296 'include_dirs': [ |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 346 ], | 344 ], |
| 347 }], | 345 }], |
| 348 ['OS == "ios"', { | 346 ['OS == "ios"', { |
| 349 'xcode_settings': { | 347 'xcode_settings': { |
| 350 'OTHER_CFLAGS!': [ | 348 'OTHER_CFLAGS!': [ |
| 351 # Breaks at least boolhuff_armv5te:token_high_bit_not_set_ev. | 349 # Breaks at least boolhuff_armv5te:token_high_bit_not_set_ev. |
| 352 '-fstack-protector-all', # Implies -fstack-protector | 350 '-fstack-protector-all', # Implies -fstack-protector |
| 353 ], | 351 ], |
| 354 }, | 352 }, |
| 355 }], | 353 }], |
| 354 # .include directive files from the place where they're | |
| 355 # generated to, but they aren't used in android webview and | |
| 356 # generate the absolute path which isn't allowed in Android make | |
| 357 # file. | |
| 358 ['android_webview_build!=1', { | |
| 359 'cflags': [ | |
|
Johann
2014/05/16 04:15:58
would prefer to keep the chunks that modify cflags
michaelbai
2014/05/16 18:09:00
xcode_settings has same setting in line 291, and
Johann
2014/05/16 18:25:31
All the more reason to keep these modification clo
michaelbai
2014/05/16 19:57:31
Put them together
On 2014/05/16 18:25:31, Johann
Torne
2014/05/19 09:02:09
-Wa is the gcc option for passing arguments to the
| |
| 360 '-Wa,-I,<!(pwd)/source/config/<(OS_CATEGORY)/<(target_arch_full) ', | |
| 361 '-Wa,-I,<!(pwd)/source/config', | |
| 362 ], | |
| 363 }], | |
| 356 ], | 364 ], |
| 357 }, | 365 }, |
| 358 ], | 366 ], |
| 359 }], | 367 }], |
| 360 ], | 368 ], |
| 361 'targets': [ | 369 'targets': [ |
| 362 { | 370 { |
| 363 # A tool that runs on host to extract integers from object file. | 371 # A tool that runs on host to extract integers from object file. |
| 364 'target_name': 'libvpx_obj_int_extract', | 372 'target_name': 'libvpx_obj_int_extract', |
| 365 'type': 'executable', | 373 'type': 'executable', |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 450 'libvpx_obj_int_extract#host', | 458 'libvpx_obj_int_extract#host', |
| 451 ], | 459 ], |
| 452 'variables' : { | 460 'variables' : { |
| 453 'lib_intermediate_name' : '', | 461 'lib_intermediate_name' : '', |
| 454 'output_format':'', | 462 'output_format':'', |
| 455 'output_dir': '<(shared_generated_dir)', | 463 'output_dir': '<(shared_generated_dir)', |
| 456 'conditions' : [ | 464 'conditions' : [ |
| 457 ['android_webview_build==1', { | 465 ['android_webview_build==1', { |
| 458 # pass the empty string for 3rd and 4th arguments of | 466 # pass the empty string for 3rd and 4th arguments of |
| 459 # intermediates-dir-for macro. | 467 # intermediates-dir-for macro. |
| 460 'lib_intermediate_name' : '$(realpath $(call intermediates-dir-for, STATIC_LIBRARIES, libvpx_asm_offsets_vp8,,, $(GYP_VAR_PREFIX)))/libvpx_asm_offse ts_vp8.a', | 468 'lib_intermediate_name' : '$(abspath $(call intermediates-dir-for,ST ATIC_LIBRARIES,libvpx_asm_offsets_vp8,,,$(gyp_var_prefix)))/libvpx_asm_offsets_v p8.a', |
| 461 }], | 469 }], |
| 462 ['(target_arch=="arm" or target_arch=="armv7")', { | 470 ['(target_arch=="arm" or target_arch=="armv7")', { |
| 463 'output_format': 'gas', | 471 'output_format': 'gas', |
| 464 }, { | 472 }, { |
| 465 'output_format': 'rvds', | 473 'output_format': 'rvds', |
| 466 }], | 474 }], |
| 467 ], | 475 ], |
| 468 }, | 476 }, |
| 469 'conditions': [ | 477 'conditions': [ |
| 470 ['OS=="win"', { | 478 ['OS=="win"', { |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 523 'libvpx_obj_int_extract#host', | 531 'libvpx_obj_int_extract#host', |
| 524 ], | 532 ], |
| 525 'variables' : { | 533 'variables' : { |
| 526 'lib_intermediate_name' : '', | 534 'lib_intermediate_name' : '', |
| 527 'output_format':'', | 535 'output_format':'', |
| 528 'output_dir': '<(shared_generated_dir)', | 536 'output_dir': '<(shared_generated_dir)', |
| 529 'conditions' : [ | 537 'conditions' : [ |
| 530 ['android_webview_build==1', { | 538 ['android_webview_build==1', { |
| 531 # pass the empty string for 3rd and 4th arguments of | 539 # pass the empty string for 3rd and 4th arguments of |
| 532 # intermediates-dir-for macro. | 540 # intermediates-dir-for macro. |
| 533 'lib_intermediate_name' : '<(android_src)/$(call intermediates-dir-f or, STATIC_LIBRARIES, libvpx_asm_offsets_vpx_scale,,, $(GYP_VAR_PREFIX))/libvpx_ asm_offsets_vpx_scale.a', | 541 'lib_intermediate_name' : '$(abspath $(call intermediates-dir-for,ST ATIC_LIBRARIES,libvpx_asm_offsets_vpx_scale,,,$(gyp_var_prefix)))/libvpx_asm_off sets_vpx_scale.a', |
| 534 }], | 542 }], |
| 535 ['(target_arch=="arm" or target_arch=="armv7")', { | 543 ['(target_arch=="arm" or target_arch=="armv7")', { |
| 536 'output_format': 'gas', | 544 'output_format': 'gas', |
| 537 }, { | 545 }, { |
| 538 'output_format': 'rvds', | 546 'output_format': 'rvds', |
| 539 }], | 547 }], |
| 540 ], | 548 ], |
| 541 }, | 549 }, |
| 542 'conditions': [ | 550 'conditions': [ |
| 543 ['OS=="win"', { | 551 ['OS=="win"', { |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 578 # Need this otherwise gyp won't run the rule on them. | 586 # Need this otherwise gyp won't run the rule on them. |
| 579 'sources': [ | 587 'sources': [ |
| 580 '<(INTERMEDIATE_DIR)/vpx_scale_asm_offsets.o', | 588 '<(INTERMEDIATE_DIR)/vpx_scale_asm_offsets.o', |
| 581 ], | 589 ], |
| 582 }], | 590 }], |
| 583 ], | 591 ], |
| 584 'includes': ['obj_int_extract.gypi'], | 592 'includes': ['obj_int_extract.gypi'], |
| 585 }, | 593 }, |
| 586 ], | 594 ], |
| 587 } | 595 } |
| OLD | NEW |