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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 }, { | 273 }, { |
274 'ads2gas_script%': 'ads2gas.pl', | 274 'ads2gas_script%': 'ads2gas.pl', |
275 }], | 275 }], |
276 ], | 276 ], |
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 | |
284 # .include directive files from the place where they're | |
285 # generated to. | |
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)', | |
290 ], | |
291 'xcode_settings': { | 283 'xcode_settings': { |
292 'OTHER_CFLAGS': [ | 284 'OTHER_CFLAGS': [ |
293 '-I<!(pwd)/source/config/<(OS_CATEGORY)/<(target_arch_full)', | 285 '-I<!(pwd)/source/config/<(OS_CATEGORY)/<(target_arch_full)', |
294 '-I<!(pwd)/source/config', | 286 '-I<!(pwd)/source/config', |
295 '-I<(shared_generated_dir)', | 287 '-I<(shared_generated_dir)', |
296 ], | 288 ], |
297 }, | 289 }, |
298 'include_dirs': [ | 290 'include_dirs': [ |
299 'source/config/<(OS_CATEGORY)/<(target_arch_full)', | 291 'source/config/<(OS_CATEGORY)/<(target_arch_full)', |
300 'source/config', | 292 'source/config', |
301 '<(libvpx_source)', | 293 '<(libvpx_source)', |
302 ], | 294 ], |
303 'direct_dependent_settings': { | 295 'direct_dependent_settings': { |
304 'include_dirs': [ | 296 'include_dirs': [ |
305 '<(libvpx_source)', | 297 '<(libvpx_source)', |
306 ], | 298 ], |
307 }, | 299 }, |
| 300 # We need to explicitly tell the assembler to look for |
| 301 # .include directive files from the place where they're |
| 302 # generated to. |
| 303 'cflags': [ |
| 304 '-Wa,-I,<(shared_generated_dir)', |
| 305 ], |
308 'conditions': [ | 306 'conditions': [ |
| 307 # For Android WebView, the following pathc are not required and not |
| 308 # allowed, because they generate the absolute path. |
| 309 ['android_webview_build!=1', { |
| 310 'cflags': [ |
| 311 '-Wa,-I,<!(pwd)/source/config/<(OS_CATEGORY)/<(target_arch_full)
', |
| 312 '-Wa,-I,<!(pwd)/source/config', |
| 313 ], |
| 314 }], |
309 # Libvpx optimizations for ARMv6 or ARMv7 without NEON. | 315 # Libvpx optimizations for ARMv6 or ARMv7 without NEON. |
310 ['arm_neon==0', { | 316 ['arm_neon==0', { |
311 'conditions': [ | 317 'conditions': [ |
312 ['OS=="android"', { | 318 ['OS=="android"', { |
313 'includes': [ | 319 'includes': [ |
314 'libvpx_srcs_arm_neon_cpu_detect.gypi', | 320 'libvpx_srcs_arm_neon_cpu_detect.gypi', |
315 ], | 321 ], |
316 'dependencies': [ | 322 'dependencies': [ |
317 'libvpx_intrinsics_neon', | 323 'libvpx_intrinsics_neon', |
318 ], | 324 ], |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
450 'libvpx_obj_int_extract#host', | 456 'libvpx_obj_int_extract#host', |
451 ], | 457 ], |
452 'variables' : { | 458 'variables' : { |
453 'lib_intermediate_name' : '', | 459 'lib_intermediate_name' : '', |
454 'output_format':'', | 460 'output_format':'', |
455 'output_dir': '<(shared_generated_dir)', | 461 'output_dir': '<(shared_generated_dir)', |
456 'conditions' : [ | 462 'conditions' : [ |
457 ['android_webview_build==1', { | 463 ['android_webview_build==1', { |
458 # pass the empty string for 3rd and 4th arguments of | 464 # pass the empty string for 3rd and 4th arguments of |
459 # intermediates-dir-for macro. | 465 # 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', | 466 '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 }], | 467 }], |
462 ['(target_arch=="arm" or target_arch=="armv7")', { | 468 ['(target_arch=="arm" or target_arch=="armv7")', { |
463 'output_format': 'gas', | 469 'output_format': 'gas', |
464 }, { | 470 }, { |
465 'output_format': 'rvds', | 471 'output_format': 'rvds', |
466 }], | 472 }], |
467 ], | 473 ], |
468 }, | 474 }, |
469 'conditions': [ | 475 'conditions': [ |
470 ['OS=="win"', { | 476 ['OS=="win"', { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
523 'libvpx_obj_int_extract#host', | 529 'libvpx_obj_int_extract#host', |
524 ], | 530 ], |
525 'variables' : { | 531 'variables' : { |
526 'lib_intermediate_name' : '', | 532 'lib_intermediate_name' : '', |
527 'output_format':'', | 533 'output_format':'', |
528 'output_dir': '<(shared_generated_dir)', | 534 'output_dir': '<(shared_generated_dir)', |
529 'conditions' : [ | 535 'conditions' : [ |
530 ['android_webview_build==1', { | 536 ['android_webview_build==1', { |
531 # pass the empty string for 3rd and 4th arguments of | 537 # pass the empty string for 3rd and 4th arguments of |
532 # intermediates-dir-for macro. | 538 # 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', | 539 '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 }], | 540 }], |
535 ['(target_arch=="arm" or target_arch=="armv7")', { | 541 ['(target_arch=="arm" or target_arch=="armv7")', { |
536 'output_format': 'gas', | 542 'output_format': 'gas', |
537 }, { | 543 }, { |
538 'output_format': 'rvds', | 544 'output_format': 'rvds', |
539 }], | 545 }], |
540 ], | 546 ], |
541 }, | 547 }, |
542 'conditions': [ | 548 'conditions': [ |
543 ['OS=="win"', { | 549 ['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. | 584 # Need this otherwise gyp won't run the rule on them. |
579 'sources': [ | 585 'sources': [ |
580 '<(INTERMEDIATE_DIR)/vpx_scale_asm_offsets.o', | 586 '<(INTERMEDIATE_DIR)/vpx_scale_asm_offsets.o', |
581 ], | 587 ], |
582 }], | 588 }], |
583 ], | 589 ], |
584 'includes': ['obj_int_extract.gypi'], | 590 'includes': ['obj_int_extract.gypi'], |
585 }, | 591 }, |
586 ], | 592 ], |
587 } | 593 } |
OLD | NEW |