Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(126)

Side by Side Diff: libvpx.gyp

Issue 320923003: libvpx: Change generated offsets to work with Webview (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 'include_dirs': [ 'include' ], 388 'include_dirs': [ 'include' ],
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)',
399 'include_dirs': [ 398 'include_dirs': [
400 'source/config/<(OS_CATEGORY)/<(target_arch_full)', 399 'source/config/<(OS_CATEGORY)/<(target_arch_full)',
401 'source/config', 400 'source/config',
402 '<(libvpx_source)', 401 '<(libvpx_source)',
403 ], 402 ],
404 'conditions': [ 403 'conditions': [
405 ['asan==1', { 404 ['asan==1', {
406 'cflags!': [ '-fsanitize=address' ], 405 'cflags!': [ '-fsanitize=address' ],
407 'xcode_settings': { 'OTHER_CFLAGS!': [ '-fsanitize=address' ] }, 406 'xcode_settings': { 'OTHER_CFLAGS!': [ '-fsanitize=address' ] },
408 'ldflags!': [ '-fsanitize=address' ], 407 'ldflags!': [ '-fsanitize=address' ],
409 }], 408 }],
410 ['OS=="win"', { 409 ['OS=="win"', {
411 'msvs_settings': { 410 'msvs_settings': {
412 'VCCLCompilerTool': { 411 'VCCLCompilerTool': {
413 # Clang uses -fdata-sections when function level linking is 412 # Clang uses -fdata-sections when function level linking is
414 # enabled, but libvpx_obj_int_extract expects all data to 413 # enabled, but libvpx_obj_int_extract expects all data to
415 # reside in the same section on Windows. 414 # reside in the same section on Windows.
416 'EnableFunctionLevelLinking': 'false', 415 'EnableFunctionLevelLinking': 'false',
417 }, 416 },
418 }, 417 },
419 }], 418 }],
420 ['android_webview_build==1', { 419 ['android_webview_build==0', {
421 'product_dir' : '', 420 'product_dir': '<(shared_generated_dir)',
422 }], 421 }],
423 ], 422 ],
424 'sources': [ 423 'sources': [
425 '<(libvpx_source)/vp8/encoder/vp8_asm_enc_offsets.c', 424 '<(libvpx_source)/vp8/encoder/vp8_asm_enc_offsets.c',
426 ], 425 ],
427 }, 426 },
428 { 427 {
429 # A library that contains assembly offsets needed. 428 # A library that contains assembly offsets needed.
430 # TODO(fgalligan): Merge libvpx_asm_offsets_vpx_scale into 429 # TODO(fgalligan): Merge libvpx_asm_offsets_vpx_scale into
431 # libvpx_asm_offsets. 430 # libvpx_asm_offsets.
432 'target_name': 'libvpx_asm_offsets_vpx_scale', 431 'target_name': 'libvpx_asm_offsets_vpx_scale',
433 'type': 'static_library', 432 'type': 'static_library',
434 'android_unmangled_name': 1, 433 'android_unmangled_name': 1,
435 'hard_dependency': 1, 434 'hard_dependency': 1,
436 'product_dir': '<(shared_generated_dir)',
437 'include_dirs': [ 435 'include_dirs': [
438 'source/config/<(OS_CATEGORY)/<(target_arch_full)', 436 'source/config/<(OS_CATEGORY)/<(target_arch_full)',
439 'source/config', 437 'source/config',
440 '<(libvpx_source)', 438 '<(libvpx_source)',
441 ], 439 ],
442 'conditions': [ 440 'conditions': [
443 ['asan==1', { 441 ['asan==1', {
444 'cflags!': [ '-faddress-sanitizer', '-fsanitize=address', ], 442 'cflags!': [ '-faddress-sanitizer', '-fsanitize=address', ],
445 'xcode_settings': { 443 'xcode_settings': {
446 'OTHER_CFLAGS!': [ '-faddress-sanitizer','-fsanitize=address' ], 444 'OTHER_CFLAGS!': [ '-faddress-sanitizer','-fsanitize=address' ],
447 }, 445 },
448 'ldflags!': [ '-faddress-sanitizer', '-fsanitize=address', ], 446 'ldflags!': [ '-faddress-sanitizer', '-fsanitize=address', ],
449 }], 447 }],
450 ['android_webview_build==1', { 448 ['android_webview_build==0', {
451 'product_dir' : '', 449 'product_dir': '<(shared_generated_dir)',
452 }], 450 }],
453 ], 451 ],
454 'sources': [ 452 'sources': [
455 '<(libvpx_source)/vpx_scale/vpx_scale_asm_offsets.c', 453 '<(libvpx_source)/vpx_scale/vpx_scale_asm_offsets.c',
456 ], 454 ],
457 }, 455 },
458 { 456 {
459 # A target that takes assembly offsets library and generate the 457 # A target that takes assembly offsets library and generate the
460 # corresponding assembly files. 458 # corresponding assembly files.
461 # This target is a hard dependency because the generated .asm files 459 # This target is a hard dependency because the generated .asm files
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 # Need this otherwise gyp won't run the rule on them. 590 # Need this otherwise gyp won't run the rule on them.
593 'sources': [ 591 'sources': [
594 '<(INTERMEDIATE_DIR)/vpx_scale_asm_offsets.o', 592 '<(INTERMEDIATE_DIR)/vpx_scale_asm_offsets.o',
595 ], 593 ],
596 }], 594 }],
597 ], 595 ],
598 'includes': ['obj_int_extract.gypi'], 596 'includes': ['obj_int_extract.gypi'],
599 }, 597 },
600 ], 598 ],
601 } 599 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698