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

Side by Side Diff: skia/skia.gyp

Issue 10806077: Upstream the rest of skia diff (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address the comments Created 8 years, 5 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 | « skia/ext/platform_device.h ('k') | 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 { 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 796 matching lines...) Expand 10 before | Expand all | Expand 10 after
807 '../third_party/skia/src/sfnt', 807 '../third_party/skia/src/sfnt',
808 '../third_party/skia/src/utils', 808 '../third_party/skia/src/utils',
809 ], 809 ],
810 'msvs_disabled_warnings': [4244, 4267, 4341, 4345, 4390, 4554, 4800], 810 'msvs_disabled_warnings': [4244, 4267, 4341, 4345, 4390, 4554, 4800],
811 'defines': [ 811 'defines': [
812 'SK_BUILD_NO_IMAGE_ENCODE', 812 'SK_BUILD_NO_IMAGE_ENCODE',
813 'GR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"', 813 'GR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"',
814 'GR_STATIC_RECT_VB=1', 814 'GR_STATIC_RECT_VB=1',
815 'GR_AGGRESSIVE_SHADER_OPTS=1', 815 'GR_AGGRESSIVE_SHADER_OPTS=1',
816 'SK_DISABLE_FAST_AA_STROKE_RECT', 816 'SK_DISABLE_FAST_AA_STROKE_RECT',
817 'SK_DEFAULT_FONT_CACHE_LIMIT=(20*1024*1024)',
818 'SK_DEFERRED_CANVAS_USES_GPIPE=1', 817 'SK_DEFERRED_CANVAS_USES_GPIPE=1',
819 818
820 # temporary for landing Skia rev 3077 with minimal layout test breakage 819 # temporary for landing Skia rev 3077 with minimal layout test breakage
821 'SK_SIMPLE_TWOCOLOR_VERTICAL_GRADIENTS', 820 'SK_SIMPLE_TWOCOLOR_VERTICAL_GRADIENTS',
822 821
823 # skia uses static initializers to initialize the serialization logic 822 # skia uses static initializers to initialize the serialization logic
824 # of its "pictures" library. This is currently not used in chrome; if 823 # of its "pictures" library. This is currently not used in chrome; if
825 # it ever gets used the processes that use it need to call 824 # it ever gets used the processes that use it need to call
826 # SkGraphics::Init(). 825 # SkGraphics::Init().
827 'SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=0', 826 'SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=0',
828 827
829 # Temporarily disable the Skia fix in 828 # Temporarily disable the Skia fix in
830 # http://code.google.com/p/skia/source/detail?r=3037 ; enabling that 829 # http://code.google.com/p/skia/source/detail?r=3037 ; enabling that
831 # fix will require substantial rebaselining. 830 # fix will require substantial rebaselining.
832 'SK_DRAW_POS_TEXT_IGNORE_SUBPIXEL_LEFT_ALIGN_FIX', 831 'SK_DRAW_POS_TEXT_IGNORE_SUBPIXEL_LEFT_ALIGN_FIX',
833 832
834 # Temporarily ignore fix to antialias coverage, until we can rebaseline» 833 # Temporarily ignore fix to antialias coverage, until we can rebaseline
835 'SK_USE_LEGACY_AA_COVERAGE', 834 'SK_USE_LEGACY_AA_COVERAGE',
836 ], 835 ],
837 'sources!': [ 836 'sources!': [
838 '../third_party/skia/include/core/SkTypes.h', 837 '../third_party/skia/include/core/SkTypes.h',
839 ], 838 ],
840 'conditions': [ 839 'conditions': [
841 ['order_profiling != 0', { 840 ['order_profiling != 0', {
842 'target_conditions' : [ 841 'target_conditions' : [
843 ['_toolset=="target"', { 842 ['_toolset=="target"', {
844 'cflags!': [ '-finstrument-functions' ], 843 'cflags!': [ '-finstrument-functions' ],
845 }], 844 }],
846 ], 845 ],
847 }], 846 }],
848 # For POSIX platforms, prefer the Mutex implementation provided by Skia 847 # For POSIX platforms, prefer the Mutex implementation provided by Skia
849 # since it does not generate static initializers. 848 # since it does not generate static initializers.
850 [ 'OS == "android" or OS == "linux" or OS == "mac"', { 849 [ 'OS == "android" or OS == "linux" or OS == "mac"', {
851 'defines+': [ 850 'defines+': [
852 'SK_USE_POSIX_THREADS', 851 'SK_USE_POSIX_THREADS',
853 ], 852 ],
854 'sources!': [ 853 'sources!': [
855 'ext/SkThread_chrome.cc', 854 'ext/SkThread_chrome.cc',
856 ], 855 ],
857 }], 856 }],
858 [ 'OS != "android"', { 857 [ 'OS != "android"', {
859 'sources/': [ 858 'sources/': [
860 ['exclude', '_android\\.(cc|cpp)$'], 859 ['exclude', '_android\\.(cc|cpp)$'],
860 # Below files are only used by Android
861 ['exclude', '../third_party/skia/src/ports/SkFontHost_gamma\\.cpp$'] ,
861 ], 862 ],
862 'sources!': [ 863 'defines': [
863 # Below files are only used by Android 864 'SK_DEFAULT_FONT_CACHE_LIMIT=(20*1024*1024)',
864 '../third_party/skia/src/ports/SkFontHost_gamma.cpp',
865 ], 865 ],
866 }], 866 }],
867 [ 'OS != "mac"', { 867 [ 'OS != "mac"', {
868 'sources/': [ 868 'sources/': [
869 ['exclude', '_mac\\.(cc|cpp|mm?)$'], 869 ['exclude', '_mac\\.(cc|cpp|mm?)$'],
870 ['exclude', '/mac/'] 870 ['exclude', '/mac/']
871 ], 871 ],
872 }], 872 }],
873 [ 'OS != "win"', { 873 [ 'OS != "win"', {
874 'sources/': [ ['exclude', '_win\\.(cc|cpp)$'] ], 874 'sources/': [ ['exclude', '_win\\.(cc|cpp)$'] ],
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
909 ], 909 ],
910 }], 910 }],
911 [ 'use_glib == 0 and OS != "android"', { 911 [ 'use_glib == 0 and OS != "android"', {
912 'sources/': [ ['exclude', '_linux\\.(cc|cpp)$'] ], 912 'sources/': [ ['exclude', '_linux\\.(cc|cpp)$'] ],
913 'sources!': [ 913 'sources!': [
914 '../third_party/skia/src/ports/SkFontHost_FreeType.cpp', 914 '../third_party/skia/src/ports/SkFontHost_FreeType.cpp',
915 '../third_party/skia/src/ports/SkFontHost_TryeType_Tables.cpp', 915 '../third_party/skia/src/ports/SkFontHost_TryeType_Tables.cpp',
916 '../third_party/skia/src/ports/SkFontHost_gamma_none.cpp', 916 '../third_party/skia/src/ports/SkFontHost_gamma_none.cpp',
917 ], 917 ],
918 }], 918 }],
919 [ 'OS == "android"', {
920 'sources/': [
921 ['exclude', '_linux\\.(cc|cpp)$'],
922 ['include', 'ext/platform_device_linux\\.cc$'],
923 ['include', 'ext/platform_canvas_linux\\.cc$'],
924 ],
925 }],
926 [ 'use_aura == 1 and use_canvas_skia == 1', { 919 [ 'use_aura == 1 and use_canvas_skia == 1', {
927 'sources/': [ 920 'sources/': [
928 ['exclude', 'ext/platform_canvas_mac\\.cc$'], 921 ['exclude', 'ext/platform_canvas_mac\\.cc$'],
929 ['exclude', 'ext/platform_canvas_linux\\.cc$'], 922 ['exclude', 'ext/platform_canvas_linux\\.cc$'],
930 ['exclude', 'ext/platform_canvas_win\\.cc$'], 923 ['exclude', 'ext/platform_canvas_win\\.cc$'],
931 ], 924 ],
932 }, { # use_aura == 0 and use_canvas_skia == 1 925 }, { # use_aura == 0 and use_canvas_skia == 1
933 'sources/': [ ['exclude', 'ext/platform_canvas_skia\\.cc$'] ], 926 'sources/': [ ['exclude', 'ext/platform_canvas_skia\\.cc$'] ],
934 }], 927 }],
935 [ 'toolkit_uses_gtk == 1', { 928 [ 'toolkit_uses_gtk == 1', {
936 'dependencies': [ 929 'dependencies': [
937 '../build/linux/system.gyp:gdk', 930 '../build/linux/system.gyp:gdk',
938 ], 931 ],
939 }, { # toolkit_uses_gtk == 0 932 }, { # toolkit_uses_gtk == 0
940 'sources/': [ ['exclude', '_gtk\\.(cc|cpp)$'] ], 933 'sources/': [ ['exclude', '_gtk\\.(cc|cpp)$'] ],
941 }], 934 }],
942 [ 'OS == "android"', { 935 [ 'OS == "android"', {
943 'defines': [ 936 'sources/': [
944 'SK_BUILD_FOR_ANDROID_NDK', 937 ['exclude', '_linux\\.(cc|cpp)$'],
945 ], 938 ],
946 'conditions': [ 939 'conditions': [
947 [ '_toolset == "target"', { 940 [ '_toolset == "target"', {
948 'defines': [ 941 'defines': [
949 'HAVE_PTHREADS', 942 'HAVE_PTHREADS',
950 'OS_ANDROID', 943 'OS_ANDROID',
944 'SK_BUILD_FOR_ANDROID_NDK',
945 # Android devices are typically more memory constrained, so
946 # use a smaller glyph cache.
947 'SK_DEFAULT_FONT_CACHE_LIMIT=(8*1024*1024)',
951 'USE_CHROMIUM_SKIA', 948 'USE_CHROMIUM_SKIA',
952 ], 949 ],
953 'dependencies': [ 950 'dependencies': [
951 '../third_party/expat/expat.gyp:expat',
954 '../third_party/freetype/freetype.gyp:ft2', 952 '../third_party/freetype/freetype.gyp:ft2',
955 '../third_party/harfbuzz/harfbuzz.gyp:harfbuzz', 953 '../third_party/harfbuzz/harfbuzz.gyp:harfbuzz',
956 '../third_party/expat/expat.gyp:expat',
957 'skia_opts' 954 'skia_opts'
958 ], 955 ],
959 'dependencies!': [ 956 'dependencies!': [
960 # Android doesn't use Skia's PDF generation, which is what uses 957 # Android doesn't use Skia's PDF generation, which is what uses
961 # sfntly. 958 # sfntly.
962 '../third_party/sfntly/sfntly.gyp:sfntly', 959 '../third_party/sfntly/sfntly.gyp:sfntly',
963 ], 960 ],
964 # This exports a hard dependency because it needs to run its 961 # This exports a hard dependency because it needs to run its
965 # symlink action in order to expose the skia header files. 962 # symlink action in order to expose the skia header files.
966 'hard_dependency': 1, 963 'hard_dependency': 1,
967 'include_dirs': [ 964 'include_dirs': [
968 '../third_party/expat/files/lib', 965 '../third_party/expat/files/lib',
969 ], 966 ],
967 'sources/': [
968 ['include', 'ext/platform_device_linux\\.cc$'],
969 ['include', 'ext/platform_canvas_linux\\.cc$'],
970 ],
970 'sources!': [ 971 'sources!': [
971 'ext/vector_platform_device_skia.cc', 972 'ext/vector_platform_device_skia.cc',
972 '../third_party/skia/src/pdf/SkPDFFont.cpp', 973 '../third_party/skia/src/pdf/SkPDFFont.cpp',
973 '../third_party/skia/src/ports/SkFontHost_gamma_none.cpp', 974 '../third_party/skia/src/ports/SkFontHost_gamma_none.cpp',
974 ], 975 ],
975 'export_dependent_settings': [ 976 'export_dependent_settings': [
976 '../third_party/harfbuzz/harfbuzz.gyp:harfbuzz', 977 '../third_party/harfbuzz/harfbuzz.gyp:harfbuzz',
977 ], 978 ],
978 }], 979 }],
979 [ '_toolset == "target" and android_build_type == 0', { 980 [ '_toolset == "target" and android_build_type == 0', {
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
1082 'SK_BUILD_NO_IMAGE_ENCODE', 1083 'SK_BUILD_NO_IMAGE_ENCODE',
1083 'GR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"', 1084 'GR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"',
1084 'GR_AGGRESSIVE_SHADER_OPTS=1', 1085 'GR_AGGRESSIVE_SHADER_OPTS=1',
1085 ], 1086 ],
1086 'conditions': [ 1087 'conditions': [
1087 ['OS=="android"', { 1088 ['OS=="android"', {
1088 'dependencies!': [ 1089 'dependencies!': [
1089 'skia_opts', 1090 'skia_opts',
1090 '../third_party/zlib/zlib.gyp:zlib', 1091 '../third_party/zlib/zlib.gyp:zlib',
1091 ], 1092 ],
1093 'defines': [
1094 # Don't use non-NDK available stuff.
1095 'SK_BUILD_FOR_ANDROID_NDK',
1096 ],
1092 'conditions': [ 1097 'conditions': [
1093 ['use_system_skia==1', {
1094 'defines': [
1095 'SK_RELEASE', # Assume platform has a release build.
1096 ],
1097 'include_dirs!': [
1098 'config', # Avoid including Chromium skia config.
1099 ],
1100 'libraries': [
1101 '-lskia',
1102 ],
1103 }, { # !use_system_skia
1104 'defines': [
1105 # Don't use non-NDK available stuff.
1106 'SK_BUILD_FOR_ANDROID_NDK',
1107 ],
1108 }],
1109 [ '_toolset == "target" and android_build_type == 0', { 1098 [ '_toolset == "target" and android_build_type == 0', {
1110 'defines': [ 1099 'defines': [
1111 'HAVE_ENDIAN_H', 1100 'HAVE_ENDIAN_H',
1112 ], 1101 ],
1113 }], 1102 }],
1114 ], 1103 ],
1115 }], 1104 }],
1116 ['OS=="mac"', { 1105 ['OS=="mac"', {
1117 'include_dirs': [ 1106 'include_dirs': [
1118 '../third_party/skia/include/utils/mac', 1107 '../third_party/skia/include/utils/mac',
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
1315 ], 1304 ],
1316 'include_dirs': [ 1305 'include_dirs': [
1317 '..', 1306 '..',
1318 ], 1307 ],
1319 'sources': [ 1308 'sources': [
1320 'ext/image_operations_bench.cc', 1309 'ext/image_operations_bench.cc',
1321 ], 1310 ],
1322 }, 1311 },
1323 ], 1312 ],
1324 } 1313 }
OLDNEW
« no previous file with comments | « skia/ext/platform_device.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698