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
3 # found in the LICENSE file.
9 'type': '<(component)',
13 'skia_support_gpu': 0,
15 'skia_support_gpu': 1,
18 ['inside_chromium_build==0', {
19 'webkit_src_dir': '<(DEPTH)/../../..',
21 'webkit_src_dir': '<(DEPTH)/third_party/WebKit',
27 # These two set the paths so we can include skia/gyp/core.gypi
28 'skia_src_path': '../third_party/skia/src',
29 'skia_include_path': '../third_party/skia/include',
33 '../third_party/skia/gyp/core.gypi',
34 '../third_party/skia/gyp/effects.gypi',
38 # this should likely be moved into src/utils in skia
39 '../third_party/skia/src/core/SkFlate.cpp',
41 '../third_party/skia/src/images/bmpdecoderhelper.cpp',
42 '../third_party/skia/src/images/bmpdecoderhelper.h',
43 #'../third_party/skia/src/images/SkFDStream.cpp',
44 '../third_party/skia/src/images/SkImageDecoder.cpp',
45 '../third_party/skia/src/images/SkImageDecoder_Factory.cpp',
46 #'../third_party/skia/src/images/SkImageDecoder_fpdfemb.cpp',
47 #'../third_party/skia/src/images/SkImageDecoder_libbmp.cpp',
48 #'../third_party/skia/src/images/SkImageDecoder_libgif.cpp',
49 #'../third_party/skia/src/images/SkImageDecoder_libico.cpp',
50 #'../third_party/skia/src/images/SkImageDecoder_libjpeg.cpp',
51 #'../third_party/skia/src/images/SkImageDecoder_libpng.cpp',
52 #'../third_party/skia/src/images/SkImageDecoder_libpvjpeg.cpp',
53 #'../third_party/skia/src/images/SkImageDecoder_wbmp.cpp',
54 #'../third_party/skia/src/images/SkImageEncoder.cpp',
55 #'../third_party/skia/src/images/SkImageEncoder_Factory.cpp',
56 #'../third_party/skia/src/images/SkImageRef.cpp',
57 #'../third_party/skia/src/images/SkImageRefPool.cpp',
58 #'../third_party/skia/src/images/SkImageRefPool.h',
59 #'../third_party/skia/src/images/SkImageRef_GlobalPool.cpp',
60 #'../third_party/skia/src/images/SkMovie.cpp',
61 #'../third_party/skia/src/images/SkMovie_gif.cpp',
62 '../third_party/skia/src/images/SkScaledBitmapSampler.cpp',
63 '../third_party/skia/src/images/SkScaledBitmapSampler.h',
65 '../third_party/skia/src/opts/opts_check_SSE2.cpp',
67 '../third_party/skia/src/pdf/SkPDFCatalog.cpp',
68 '../third_party/skia/src/pdf/SkPDFCatalog.h',
69 '../third_party/skia/src/pdf/SkPDFDevice.cpp',
70 '../third_party/skia/src/pdf/SkPDFDocument.cpp',
71 '../third_party/skia/src/pdf/SkPDFFont.cpp',
72 '../third_party/skia/src/pdf/SkPDFFont.h',
73 '../third_party/skia/src/pdf/SkPDFFormXObject.cpp',
74 '../third_party/skia/src/pdf/SkPDFFormXObject.h',
75 '../third_party/skia/src/pdf/SkPDFGraphicState.cpp',
76 '../third_party/skia/src/pdf/SkPDFGraphicState.h',
77 '../third_party/skia/src/pdf/SkPDFImage.cpp',
78 '../third_party/skia/src/pdf/SkPDFImage.h',
79 '../third_party/skia/src/pdf/SkPDFPage.cpp',
80 '../third_party/skia/src/pdf/SkPDFPage.h',
81 '../third_party/skia/src/pdf/SkPDFShader.cpp',
82 '../third_party/skia/src/pdf/SkPDFShader.h',
83 '../third_party/skia/src/pdf/SkPDFStream.cpp',
84 '../third_party/skia/src/pdf/SkPDFStream.h',
85 '../third_party/skia/src/pdf/SkPDFTypes.cpp',
86 '../third_party/skia/src/pdf/SkPDFTypes.h',
87 '../third_party/skia/src/pdf/SkPDFUtils.cpp',
88 '../third_party/skia/src/pdf/SkPDFUtils.h',
90 '../third_party/skia/src/ports/FontHostConfiguration_android.cpp',
91 '../third_party/skia/src/ports/SkFontDescriptor.cpp',
92 '../third_party/skia/src/ports/SkFontDescriptor.h',
93 #'../third_party/skia/src/ports/SkFontHost_FONTPATH.cpp',
94 '../third_party/skia/src/ports/SkFontHost_FreeType.cpp',
95 '../third_party/skia/src/ports/SkFontHost_FreeType_common.cpp',
96 '../third_party/skia/src/ports/SkFontHost_FreeType_common.h',
97 '../third_party/skia/src/ports/SkFontHost_android.cpp',
98 #'../third_party/skia/src/ports/SkFontHost_ascender.cpp',
99 '../third_party/skia/src/ports/SkFontHost_tables.cpp',
100 #'../third_party/skia/src/ports/SkFontHost_linux.cpp',
101 '../third_party/skia/src/ports/SkFontHost_mac.cpp',
102 #'../third_party/skia/src/ports/SkFontHost_none.cpp',
103 '../third_party/skia/src/ports/SkFontHost_sandbox_none.cpp',
104 '../third_party/skia/src/ports/SkFontHost_win.cpp',
105 '../third_party/skia/src/ports/SkGlobalInitialization_chromium.cpp',
106 #'../third_party/skia/src/ports/SkImageDecoder_CG.cpp',
107 #'../third_party/skia/src/ports/SkImageDecoder_empty.cpp',
108 #'../third_party/skia/src/ports/SkImageRef_ashmem.cpp',
109 #'../third_party/skia/src/ports/SkImageRef_ashmem.h',
110 #'../third_party/skia/src/ports/SkOSEvent_android.cpp',
111 #'../third_party/skia/src/ports/SkOSEvent_dummy.cpp',
112 '../third_party/skia/src/ports/SkOSFile_stdio.cpp',
113 #'../third_party/skia/src/ports/SkThread_none.cpp',
114 '../third_party/skia/src/ports/SkThread_pthread.cpp',
115 '../third_party/skia/src/ports/SkThread_win.cpp',
116 '../third_party/skia/src/ports/SkTime_Unix.cpp',
117 #'../third_party/skia/src/ports/SkXMLParser_empty.cpp',
118 #'../third_party/skia/src/ports/SkXMLParser_expat.cpp',
119 #'../third_party/skia/src/ports/SkXMLParser_tinyxml.cpp',
120 #'../third_party/skia/src/ports/SkXMLPullParser_expat.cpp',
122 '../third_party/skia/src/sfnt/SkOTUtils.cpp',
123 '../third_party/skia/src/sfnt/SkOTUtils.h',
125 '../third_party/skia/include/utils/mac/SkCGUtils.h',
126 '../third_party/skia/include/utils/SkDeferredCanvas.h',
127 '../third_party/skia/include/utils/SkMatrix44.h',
128 '../third_party/skia/src/utils/mac/SkCreateCGImageRef.cpp',
129 '../third_party/skia/src/utils/SkBase64.cpp',
130 '../third_party/skia/src/utils/SkBase64.h',
131 '../third_party/skia/src/utils/SkBitSet.cpp',
132 '../third_party/skia/src/utils/SkBitSet.h',
133 '../third_party/skia/src/utils/SkDeferredCanvas.cpp',
134 '../third_party/skia/src/utils/SkMatrix44.cpp',
135 '../third_party/skia/src/utils/SkNullCanvas.cpp',
136 '../third_party/skia/include/utils/SkNWayCanvas.h',
137 '../third_party/skia/src/utils/SkNWayCanvas.cpp',
138 '../third_party/skia/src/utils/SkPictureUtils.cpp',
139 '../third_party/skia/include/pdf/SkPDFDevice.h',
140 '../third_party/skia/include/pdf/SkPDFDocument.h',
142 '../third_party/skia/include/ports/SkTypeface_win.h',
144 '../third_party/skia/include/images/SkImageDecoder.h',
145 '../third_party/skia/include/images/SkImageEncoder.h',
146 '../third_party/skia/include/images/SkImageRef.h',
147 '../third_party/skia/include/images/SkImageRef_GlobalPool.h',
148 '../third_party/skia/include/images/SkMovie.h',
149 '../third_party/skia/include/images/SkPageFlipper.h',
151 '../third_party/skia/include/utils/SkNullCanvas.h',
152 '../third_party/skia/include/utils/SkPictureUtils.h',
153 'ext/bitmap_platform_device.h',
154 'ext/bitmap_platform_device_android.cc',
155 'ext/bitmap_platform_device_android.h',
156 'ext/bitmap_platform_device_data.h',
157 'ext/bitmap_platform_device_linux.cc',
158 'ext/bitmap_platform_device_linux.h',
159 'ext/bitmap_platform_device_mac.cc',
160 'ext/bitmap_platform_device_mac.h',
161 'ext/bitmap_platform_device_win.cc',
162 'ext/bitmap_platform_device_win.h',
165 'ext/google_logging.cc',
166 'ext/image_operations.cc',
167 'ext/image_operations.h',
168 'ext/lazy_pixel_ref.cc',
169 'ext/lazy_pixel_ref.h',
170 'ext/SkThread_chrome.cc',
171 'ext/platform_canvas.cc',
172 'ext/platform_canvas.h',
173 'ext/platform_device.cc',
174 'ext/platform_device.h',
175 'ext/platform_device_linux.cc',
176 'ext/platform_device_mac.cc',
177 'ext/platform_device_win.cc',
179 'ext/SkMemory_new_handler.cpp',
180 'ext/skia_sandbox_support_win.h',
181 'ext/skia_sandbox_support_win.cc',
182 'ext/skia_trace_shim.h',
183 'ext/skia_utils_ios.mm',
184 'ext/skia_utils_ios.h',
185 'ext/skia_utils_mac.mm',
186 'ext/skia_utils_mac.h',
187 'ext/skia_utils_win.cc',
188 'ext/skia_utils_win.h',
189 'ext/vector_canvas.cc',
190 'ext/vector_canvas.h',
191 'ext/vector_platform_device_emf_win.cc',
192 'ext/vector_platform_device_emf_win.h',
193 'ext/vector_platform_device_skia.cc',
194 'ext/vector_platform_device_skia.h',
199 '../third_party/skia/include/config',
200 '../third_party/skia/include/core',
201 '../third_party/skia/include/effects',
202 '../third_party/skia/include/images',
203 '../third_party/skia/include/pdf',
204 '../third_party/skia/include/pipe',
205 '../third_party/skia/include/ports',
206 '../third_party/skia/include/utils',
207 '../third_party/skia/src/core',
208 '../third_party/skia/src/image',
209 '../third_party/skia/src/sfnt',
210 '../third_party/skia/src/utils',
212 'msvs_disabled_warnings': [4244, 4267, 4341, 4345, 4390, 4554, 4748, 4800],
215 #'SK_GAMMA_APPLY_TO_A8',
216 'SK_BUILD_NO_IMAGE_ENCODE',
217 'GR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"',
218 'GR_STATIC_RECT_VB=1',
219 'GR_AGGRESSIVE_SHADER_OPTS=1',
220 'SK_DEFERRED_CANVAS_USES_GPIPE=1',
221 'SK_ENABLE_INST_COUNT=0',
223 # this flag can be removed entirely once this has baked for a while
224 'SK_ALLOW_OVER_32K_BITMAPS',
226 # skia uses static initializers to initialize the serialization logic
227 # of its "pictures" library. This is currently not used in chrome; if
228 # it ever gets used the processes that use it need to call
229 # SkGraphics::Init().
230 'SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=0',
233 '../third_party/skia/include/core/SkTypes.h',
236 ['skia_support_gpu != 0', {
238 '../third_party/skia/gyp/gpu.gypi',
245 '../third_party/skia/include/gpu',
246 '../third_party/skia/include/gpu/gl',
247 '../third_party/skia/src/gpu',
249 }, { # skia_support_gpu == 0
254 ['release_valgrind_build == 1', {
256 'SK_DEBUG_PATH_REF=1',
258 'direct_dependent_settings': {
260 'SK_DEBUG_PATH_REF=1',
264 #Settings for text blitting, chosen to approximate the system browser.
267 'SK_GAMMA_EXPONENT=1.2',
268 'SK_GAMMA_CONTRAST=0.2',
271 ['OS == "android" or OS == "win"', {
274 'SK_GAMMA_CONTRAST=0.5',
280 'SK_GAMMA_CONTRAST=0.0',
284 # For POSIX platforms, prefer the Mutex implementation provided by Skia
285 # since it does not generate static initializers.
286 [ 'OS == "android" or OS == "linux" or OS == "mac" or OS == "ios"', {
288 'SK_USE_POSIX_THREADS',
290 'direct_dependent_settings': {
292 'SK_USE_POSIX_THREADS',
296 'ext/SkThread_chrome.cc',
299 [ 'OS != "android"', {
301 ['exclude', '_android\\.(cc|cpp)$'],
304 'SK_DEFAULT_FONT_CACHE_LIMIT=(20*1024*1024)',
309 ['exclude', '_ios\\.(cc|cpp|mm?)$'],
312 '<(webkit_src_dir)/Source/WebKit/chromium/skia_webkit.gyp:skia_webkit',
317 ['exclude', '_mac\\.(cc|cpp|mm?)$'],
322 'sources/': [ ['exclude', '_win\\.(cc|cpp)$'] ],
326 # Temporarily use SkPaint to keep a scale factor needed for correct
327 # font rendering in high DPI mode.
328 # See https://codereview.appspot.com/6495089/
329 'SK_SUPPORT_HINTING_SCALE_FACTOR',
337 [ 'armv7 == 1 and arm_neon == 1', {
342 [ 'target_arch == "arm" or target_arch == "mipsel"', {
344 '../third_party/skia/src/opts/opts_check_SSE2.cpp'
349 '../build/linux/system.gyp:fontconfig',
350 '../build/linux/system.gyp:freetype2',
351 '../build/linux/system.gyp:pangocairo',
352 '../third_party/icu/icu.gyp:icuuc',
356 '-Wno-unused-function',
359 'ext/SkFontHost_fontconfig.cpp',
360 'ext/SkFontHost_fontconfig_direct.cpp',
363 # 'SK_USE_COLOR_LUMINANCE',
366 [ 'use_glib == 0 and OS != "android"', {
367 'sources/': [ ['exclude', '_linux\\.(cc|cpp)$'] ],
369 '../third_party/skia/src/ports/SkFontHost_FreeType.cpp',
370 '../third_party/skia/src/ports/SkFontHost_FreeType_common.cpp',
373 [ 'toolkit_uses_gtk == 1', {
375 '../build/linux/system.gyp:gdk',
377 }, { # toolkit_uses_gtk == 0
378 'sources/': [ ['exclude', '_gtk\\.(cc|cpp)$'] ],
380 [ 'OS == "android"', {
382 ['exclude', '_linux\\.(cc|cpp)$'],
385 [ '_toolset == "target"', {
389 'SK_BUILD_FOR_ANDROID_NDK',
390 # Android devices are typically more memory constrained, so
391 # use a smaller glyph cache.
392 'SK_DEFAULT_FONT_CACHE_LIMIT=(8*1024*1024)',
396 '../third_party/expat/expat.gyp:expat',
397 '../third_party/freetype/freetype.gyp:ft2',
401 # Android doesn't use Skia's PDF generation, which is what uses
403 '../third_party/sfntly/sfntly.gyp:sfntly',
405 # This exports a hard dependency because it needs to run its
406 # symlink action in order to expose the skia header files.
407 'hard_dependency': 1,
409 '../third_party/expat/files/lib',
412 ['include', 'ext/platform_device_linux\\.cc$'],
413 ['exclude', '../third_party/skia/src/pdf/'],
416 'ext/vector_platform_device_skia.cc',
419 [ '_toolset == "target" and android_build_type == 0', {
424 [ '_toolset=="host" and host_os=="linux"', {
426 'ext/platform_device_linux.cc',
434 'SK_USE_MAC_CORE_TEXT',
437 '../third_party/skia/include/utils/ios',
438 '../third_party/skia/include/utils/mac',
442 '$(SDKROOT)/System/Library/Frameworks/ImageIO.framework',
450 '../third_party/sfntly/sfntly.gyp:sfntly',
453 # This file is used on both iOS and Mac, so it should be removed
454 # from the ios and mac conditions and moved into the main sources
456 '../third_party/skia/src/utils/mac/SkStream_mac.cpp',
459 ['exclude', '/pdf/'],
460 ['exclude', '^ext/vector_platform_device_skia\\.'],
461 ['exclude', 'opts_check_SSE2\\.cpp$'],
462 ['exclude', 'SkFontHost_tables\\.cpp$',],
470 '../third_party/skia/include/utils/mac',
474 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
478 '../third_party/skia/src/utils/mac/SkStream_mac.cpp',
481 # The mac's fonthost implements the table methods natively,
482 # so no need for these generic versions.
483 '../third_party/skia/src/ports/SkFontHost_tables.cpp',
488 ['exclude', '/pdf/'],
489 ['exclude', 'ext/vector_platform_device_skia\\.(cc|h)'],
494 'SK_USE_MAC_CORE_TEXT',
495 # 'SK_USE_COLOR_LUMINANCE',
502 '../third_party/skia/src/core/SkMMapStream.cpp',
503 '../third_party/skia/src/ports/SkFontHost_sandbox_none.cpp',
504 '../third_party/skia/src/ports/SkThread_pthread.cpp',
505 '../third_party/skia/src/ports/SkTime_Unix.cpp',
506 'ext/SkThread_chrome.cc',
511 'direct_dependent_settings': {
517 ['component=="shared_library"', {
520 'GR_IMPLEMENTATION=1',
522 'SKIA_IMPLEMENTATION=1',
525 '../base/base.gyp:base',
527 'direct_dependent_settings': {
537 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
538 '../third_party/sfntly/sfntly.gyp:sfntly',
539 '../third_party/zlib/zlib.gyp:zlib',
541 'direct_dependent_settings': {
545 #temporary until we can hide SkFontHost
546 '../third_party/skia/src/core',
548 '../third_party/skia/include/config',
549 '../third_party/skia/include/core',
550 '../third_party/skia/include/effects',
551 '../third_party/skia/include/pdf',
552 '../third_party/skia/include/gpu',
553 '../third_party/skia/include/gpu/gl',
554 '../third_party/skia/include/pipe',
555 '../third_party/skia/include/ports',
556 '../third_party/skia/include/utils',
560 'SK_BUILD_NO_IMAGE_ENCODE',
561 'SK_DEFERRED_CANVAS_USES_GPIPE=1',
562 'GR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"',
563 'GR_AGGRESSIVE_SHADER_OPTS=1',
564 'SK_ENABLE_INST_COUNT=0',
569 'SK_SUPPORT_HINTING_SCALE_FACTOR',
575 '../third_party/zlib/zlib.gyp:zlib',
578 # Don't use non-NDK available stuff.
579 'SK_BUILD_FOR_ANDROID_NDK',
582 [ '_toolset == "target" and android_build_type == 0', {
591 '../third_party/skia/include/utils/mac',
596 'target_conditions': [
597 # Pull in specific Mac files for iOS (which have been filtered out
598 # by file name rules).
601 ['include', 'SkFontHost_mac\\.cpp$',],
602 ['include', 'SkStream_mac\\.cpp$',],
603 ['include', 'SkCreateCGImageRef\\.cpp$',],
609 # Due to an unfortunate intersection of lameness between gcc and gyp,
610 # we have to build the *_SSE2.cpp files in a separate target. The
611 # gcc lameness is that, in order to compile SSE2 intrinsics code, it
612 # must be passed the -msse2 flag. However, with this flag, it may
613 # emit SSE2 instructions even for scalar code, such as the CPUID
614 # test used to test for the presence of SSE2. So that, and all other
615 # code must be compiled *without* -msse2. The gyp lameness is that it
616 # does not allow file-specific CFLAGS, so we must create this extra
617 # target for those files to be compiled with -msse2.
619 # This is actually only a problem on 32-bit Linux (all Intel Macs have
620 # SSE2, Linux x86_64 has SSE2 by definition, and MSC will happily emit
621 # SSE2 from instrinsics, which generating plain ol' 386 for everything
622 # else). However, to keep the .gyp file simple and avoid platform-specific
623 # build breakage, we do this on all platforms.
625 # For about the same reason, we need to compile the ARM opts files
626 # separately as well.
628 'target_name': 'skia_opts',
629 'type': 'static_library',
636 '../third_party/skia/include/config',
637 '../third_party/skia/include/core',
638 '../third_party/skia/include/effects',
639 '../third_party/skia/include/images',
640 '../third_party/skia/include/utils',
641 '../third_party/skia/src/core',
644 [ 'os_posix == 1 and OS != "mac" and OS != "android" and \
645 target_arch != "arm" and target_arch != "mipsel"', {
650 [ 'OS == "android"', {
652 'SK_BUILD_FOR_ANDROID_NDK',
655 [ 'target_arch != "arm" and target_arch != "mipsel"', {
657 '../third_party/skia/src/opts/SkBitmapProcState_opts_SSE2.cpp',
658 '../third_party/skia/src/opts/SkBlitRect_opts_SSE2.cpp',
659 '../third_party/skia/src/opts/SkBlitRow_opts_SSE2.cpp',
660 '../third_party/skia/src/opts/SkUtils_opts_SSE2.cpp',
663 # x86 Android doesn't support SSSE3 instructions.
664 [ 'OS != "android"', {
671 [ 'target_arch == "arm"', {
678 [ 'armv7 == 1 and arm_neon == 1', {
683 # The neon assembly contains conditional instructions which
684 # aren't enclosed in an IT block. The assembler complains
685 # without this option.
687 '-Wa,-mimplicit-it=always',
691 # The assembly uses the frame pointer register (r7 in Thumb/r11 in
692 # ARM), the compiler doesn't like that. Explicitly remove the
693 # -fno-omit-frame-pointer flag for Android, as that gets added to all
694 # targets via common.gypi.
696 '-fno-omit-frame-pointer',
701 '-fomit-frame-pointer',
704 '../third_party/skia/src/opts/SkBitmapProcState_opts_arm.cpp',
707 [ 'armv7 == 1 and arm_neon == 0', {
709 '../third_party/skia/src/opts/memset.arm.S',
712 [ 'armv7 == 1 and arm_neon == 1', {
714 '../third_party/skia/src/opts/memset16_neon.S',
715 '../third_party/skia/src/opts/memset32_neon.S',
716 '../third_party/skia/src/opts/SkBitmapProcState_arm_neon.cpp',
717 '../third_party/skia/src/opts/SkBitmapProcState_matrixProcs_neon.cpp',
718 '../third_party/skia/src/opts/SkBitmapProcState_matrix_clamp_neon.h',
719 '../third_party/skia/src/opts/SkBitmapProcState_matrix_repeat_neon.h',
720 '../third_party/skia/src/opts/SkBlitRow_opts_arm_neon.cpp',
723 [ 'target_arch == "arm" and armv7 == 0', {
725 '../third_party/skia/src/opts/SkBlitRow_opts_none.cpp',
726 '../third_party/skia/src/opts/SkUtils_opts_none.cpp',
729 [ 'target_arch == "arm" and armv7 == 1', {
731 '../third_party/skia/src/opts/SkBlitRow_opts_arm.cpp',
732 '../third_party/skia/src/opts/SkBlitRow_opts_arm.h',
733 '../third_party/skia/src/opts/opts_check_arm.cpp',
736 [ 'target_arch == "mipsel"',{
738 '-fomit-frame-pointer',
741 '../third_party/skia/src/opts/SkBitmapProcState_opts_none.cpp',
742 '../third_party/skia/src/opts/SkBlitRow_opts_none.cpp',
743 '../third_party/skia/src/opts/SkUtils_opts_none.cpp',
748 # For the same lame reasons as what is done for skia_opts, we have to
749 # create another target specifically for SSSE3 code as we would not want
750 # to compile the SSE2 code with -mssse3 which would potentially allow
751 # gcc to generate SSSE3 code.
753 'target_name': 'skia_opts_ssse3',
754 'type': 'static_library',
761 '../third_party/skia/include/config',
762 '../third_party/skia/include/core',
763 '../third_party/skia/src/core',
766 [ 'OS in ["linux", "freebsd", "openbsd", "solaris"]', {
773 'GCC_ENABLE_SUPPLEMENTAL_SSE3_INSTRUCTIONS': 'YES',
780 'direct_dependent_settings': {
786 [ 'target_arch != "arm"', {
788 '../third_party/skia/src/opts/SkBitmapProcState_opts_SSSE3.cpp',
794 'target_name': 'image_operations_bench',
795 'type': 'executable',
797 '../base/base.gyp:base',
804 'ext/image_operations_bench.cc',
811 # The main skia_opts target does not currently work on iOS because the
812 # target architecture on iOS is determined at compile time rather than
813 # gyp time (simulator builds are x86, device builds are arm). As a
814 # temporary measure, this is a separate opts target for iOS-only, using
815 # the _none.cpp files to avoid architecture-dependent implementations.
817 'target_name': 'skia_opts_ios',
818 'type': 'static_library',
822 '../third_party/skia/include/config',
823 '../third_party/skia/include/core',
824 '../third_party/skia/include/effects',
825 '../third_party/skia/include/images',
826 '../third_party/skia/include/utils',
827 '../third_party/skia/src/core',
830 '../third_party/skia/src/opts/SkBitmapProcState_opts_none.cpp',
831 '../third_party/skia/src/opts/SkBlitRow_opts_none.cpp',
832 '../third_party/skia/src/opts/SkUtils_opts_none.cpp',