| 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 { | 5 { |
| 6 'targets': [ | 6 'targets': [ |
| 7 { | 7 { |
| 8 'target_name': 'skia', | 8 'target_name': 'skia', |
| 9 'type': '<(component)', | 9 'type': '<(component)', |
| 10 'variables': { | 10 'variables': { |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 'include_dirs': [ | 267 'include_dirs': [ |
| 268 '../third_party/skia/include/gpu', | 268 '../third_party/skia/include/gpu', |
| 269 '../third_party/skia/include/gpu/gl', | 269 '../third_party/skia/include/gpu/gl', |
| 270 '../third_party/skia/src/gpu', | 270 '../third_party/skia/src/gpu', |
| 271 ], | 271 ], |
| 272 }, { # skia_support_gpu == 0 | 272 }, { # skia_support_gpu == 0 |
| 273 'defines': [ | 273 'defines': [ |
| 274 'SK_SUPPORT_GPU=0', | 274 'SK_SUPPORT_GPU=0', |
| 275 ], | 275 ], |
| 276 }], | 276 }], |
| 277 ['order_profiling != 0', { | |
| 278 'target_conditions' : [ | |
| 279 ['_toolset=="target"', { | |
| 280 'cflags!': [ '-finstrument-functions' ], | |
| 281 }], | |
| 282 ], | |
| 283 }], | |
| 284 #Settings for text blitting, chosen to approximate the system browser. | 277 #Settings for text blitting, chosen to approximate the system browser. |
| 285 [ 'OS == "linux"', { | 278 [ 'OS == "linux"', { |
| 286 'defines': [ | 279 'defines': [ |
| 287 'SK_GAMMA_EXPONENT=1.2', | 280 'SK_GAMMA_EXPONENT=1.2', |
| 288 'SK_GAMMA_CONTRAST=0.2', | 281 'SK_GAMMA_CONTRAST=0.2', |
| 289 ], | 282 ], |
| 290 }], | 283 }], |
| 291 ['OS == "android" or OS == "win"', { | 284 ['OS == "android" or OS == "win"', { |
| 292 'defines': [ | 285 'defines': [ |
| 293 'SK_GAMMA_SRGB', | 286 'SK_GAMMA_SRGB', |
| (...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 644 '..', | 637 '..', |
| 645 'config', | 638 'config', |
| 646 '../third_party/skia/include/config', | 639 '../third_party/skia/include/config', |
| 647 '../third_party/skia/include/core', | 640 '../third_party/skia/include/core', |
| 648 '../third_party/skia/include/effects', | 641 '../third_party/skia/include/effects', |
| 649 '../third_party/skia/include/images', | 642 '../third_party/skia/include/images', |
| 650 '../third_party/skia/include/utils', | 643 '../third_party/skia/include/utils', |
| 651 '../third_party/skia/src/core', | 644 '../third_party/skia/src/core', |
| 652 ], | 645 ], |
| 653 'conditions': [ | 646 'conditions': [ |
| 654 ['order_profiling != 0', { | |
| 655 'target_conditions' : [ | |
| 656 ['_toolset=="target"', { | |
| 657 'cflags!': [ '-finstrument-functions' ], | |
| 658 }], | |
| 659 ], | |
| 660 }], | |
| 661 [ 'os_posix == 1 and OS != "mac" and OS != "android" and target_arch !=
"arm"', { | 647 [ 'os_posix == 1 and OS != "mac" and OS != "android" and target_arch !=
"arm"', { |
| 662 'cflags': [ | 648 'cflags': [ |
| 663 '-msse2', | 649 '-msse2', |
| 664 ], | 650 ], |
| 665 }], | 651 }], |
| 666 [ 'OS == "android"', { | 652 [ 'OS == "android"', { |
| 667 'defines': [ | 653 'defines': [ |
| 668 'SK_BUILD_FOR_ANDROID_NDK', | 654 'SK_BUILD_FOR_ANDROID_NDK', |
| 669 ], | 655 ], |
| 670 }], | 656 }], |
| 671 [ 'target_arch != "arm"', { | 657 [ 'target_arch != "arm"', { |
| 672 'sources': [ | 658 'sources': [ |
| 673 '../third_party/skia/src/opts/SkBitmapProcState_opts_SSE2.cpp', | 659 '../third_party/skia/src/opts/SkBitmapProcState_opts_SSE2.cpp', |
| 674 '../third_party/skia/src/opts/SkBlitRect_opts_SSE2.cpp', | 660 '../third_party/skia/src/opts/SkBlitRect_opts_SSE2.cpp', |
| 675 '../third_party/skia/src/opts/SkBlitRow_opts_SSE2.cpp', | 661 '../third_party/skia/src/opts/SkBlitRow_opts_SSE2.cpp', |
| 676 '../third_party/skia/src/opts/SkUtils_opts_SSE2.cpp', | 662 '../third_party/skia/src/opts/SkUtils_opts_SSE2.cpp', |
| 677 ], | 663 ], |
| 678 'conditions': [ | 664 'conditions': [ |
| 679 # x86 Android doesn't support SSSE3 instructions. | 665 # x86 Android doesn't support SSSE3 instructions. |
| 680 [ 'OS != "android"', { | 666 [ 'OS != "android"', { |
| 681 'dependencies': [ | 667 'dependencies': [ |
| 682 'skia_opts_ssse3', | 668 'skia_opts_ssse3', |
| 683 ], | 669 ], |
| 684 }], | 670 }], |
| 685 ], | 671 ], |
| 686 }, | 672 }, |
| 687 { # arm | 673 { # arm |
| 688 'conditions': [ | 674 'conditions': [ |
| 689 ['order_profiling != 0', { | |
| 690 'target_conditions' : [ | |
| 691 ['_toolset=="target"', { | |
| 692 'cflags!': [ '-finstrument-functions' ], | |
| 693 }], | |
| 694 ], | |
| 695 }], | |
| 696 [ 'armv7 == 1', { | 675 [ 'armv7 == 1', { |
| 697 'defines': [ | 676 'defines': [ |
| 698 '__ARM_ARCH__=7', | 677 '__ARM_ARCH__=7', |
| 699 ], | 678 ], |
| 700 }], | 679 }], |
| 701 [ 'armv7 == 1 and arm_neon == 1', { | 680 [ 'armv7 == 1 and arm_neon == 1', { |
| 702 'defines': [ | 681 'defines': [ |
| 703 '__ARM_HAVE_NEON', | 682 '__ARM_HAVE_NEON', |
| 704 ], | 683 ], |
| 705 'cflags': [ | 684 'cflags': [ |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 770 '../third_party/skia/include/config', | 749 '../third_party/skia/include/config', |
| 771 '../third_party/skia/include/core', | 750 '../third_party/skia/include/core', |
| 772 '../third_party/skia/src/core', | 751 '../third_party/skia/src/core', |
| 773 ], | 752 ], |
| 774 'conditions': [ | 753 'conditions': [ |
| 775 [ 'OS in ["linux", "freebsd", "openbsd", "solaris"]', { | 754 [ 'OS in ["linux", "freebsd", "openbsd", "solaris"]', { |
| 776 'cflags': [ | 755 'cflags': [ |
| 777 '-mssse3', | 756 '-mssse3', |
| 778 ], | 757 ], |
| 779 }], | 758 }], |
| 780 ['order_profiling != 0', { | |
| 781 'target_conditions' : [ | |
| 782 ['_toolset=="target"', { | |
| 783 'cflags!': [ '-finstrument-functions' ], | |
| 784 }], | |
| 785 ], | |
| 786 }], | |
| 787 [ 'OS == "mac"', { | 759 [ 'OS == "mac"', { |
| 788 'xcode_settings': { | 760 'xcode_settings': { |
| 789 'GCC_ENABLE_SUPPLEMENTAL_SSE3_INSTRUCTIONS': 'YES', | 761 'GCC_ENABLE_SUPPLEMENTAL_SSE3_INSTRUCTIONS': 'YES', |
| 790 }, | 762 }, |
| 791 }], | 763 }], |
| 792 [ 'OS == "win"', { | 764 [ 'OS == "win"', { |
| 793 'include_dirs': [ | 765 'include_dirs': [ |
| 794 'config/win', | 766 'config/win', |
| 795 ], | 767 ], |
| 796 'direct_dependent_settings': { | 768 'direct_dependent_settings': { |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 845 'sources': [ | 817 'sources': [ |
| 846 '../third_party/skia/src/opts/SkBitmapProcState_opts_none.cpp', | 818 '../third_party/skia/src/opts/SkBitmapProcState_opts_none.cpp', |
| 847 '../third_party/skia/src/opts/SkBlitRow_opts_none.cpp', | 819 '../third_party/skia/src/opts/SkBlitRow_opts_none.cpp', |
| 848 '../third_party/skia/src/opts/SkUtils_opts_none.cpp', | 820 '../third_party/skia/src/opts/SkUtils_opts_none.cpp', |
| 849 ], | 821 ], |
| 850 }, | 822 }, |
| 851 ], | 823 ], |
| 852 }], | 824 }], |
| 853 ], | 825 ], |
| 854 } | 826 } |
| OLD | NEW |