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',
222 # this flag can be removed entirely once this has baked for a while
223 'SK_ALLOW_OVER_32K_BITMAPS',
225 # skia uses static initializers to initialize the serialization logic
226 # of its "pictures" library. This is currently not used in chrome; if
227 # it ever gets used the processes that use it need to call
228 # SkGraphics::Init().
229 'SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=0',
231 # Temporarily keep old int-srcrect behavior, until we determine if
232 # the few failures are a bug or not.
233 'SK_SUPPORT_INT_SRCRECT_DRAWBITMAPRECT',
236 '../third_party/skia/include/core/SkTypes.h',
239 ['skia_support_gpu != 0', {
241 '../third_party/skia/gyp/gpu.gypi',
248 '../third_party/skia/include/gpu',
249 '../third_party/skia/include/gpu/gl',
250 '../third_party/skia/src/gpu',
252 }, { # skia_support_gpu == 0
257 ['release_valgrind_build == 1', {
259 'SK_DEBUG_PATH_REF=1',
261 'direct_dependent_settings': {
263 'SK_DEBUG_PATH_REF=1',
267 #Settings for text blitting, chosen to approximate the system browser.
270 'SK_GAMMA_EXPONENT=1.2',
271 'SK_GAMMA_CONTRAST=0.2',
274 ['OS == "android" or OS == "win"', {
277 'SK_GAMMA_CONTRAST=0.5',
283 'SK_GAMMA_CONTRAST=0.0',
287 # For POSIX platforms, prefer the Mutex implementation provided by Skia
288 # since it does not generate static initializers.
289 [ 'OS == "android" or OS == "linux" or OS == "mac" or OS == "ios"', {
291 'SK_USE_POSIX_THREADS',
293 'direct_dependent_settings': {
295 'SK_USE_POSIX_THREADS',
299 'ext/SkThread_chrome.cc',
302 [ 'OS != "android"', {
304 ['exclude', '_android\\.(cc|cpp)$'],
307 'SK_DEFAULT_FONT_CACHE_LIMIT=(20*1024*1024)',
312 ['exclude', '_ios\\.(cc|cpp|mm?)$'],
315 '<(webkit_src_dir)/Source/WebKit/chromium/skia_webkit.gyp:skia_webkit',
320 ['exclude', '_mac\\.(cc|cpp|mm?)$'],
325 'sources/': [ ['exclude', '_win\\.(cc|cpp)$'] ],
329 # Temporarily use SkPaint to keep a scale factor needed for correct
330 # font rendering in high DPI mode.
331 # See https://codereview.appspot.com/6495089/
332 'SK_SUPPORT_HINTING_SCALE_FACTOR',
340 [ 'armv7 == 1 and arm_neon == 1', {
345 [ 'target_arch == "arm" or target_arch == "mipsel"', {
347 '../third_party/skia/src/opts/opts_check_SSE2.cpp'
352 '../build/linux/system.gyp:fontconfig',
353 '../build/linux/system.gyp:freetype2',
354 '../build/linux/system.gyp:pangocairo',
355 '../third_party/icu/icu.gyp:icuuc',
359 '-Wno-unused-function',
362 'ext/SkFontHost_fontconfig.cpp',
363 'ext/SkFontHost_fontconfig_direct.cpp',
366 # 'SK_USE_COLOR_LUMINANCE',
369 [ 'use_glib == 0 and OS != "android"', {
370 'sources/': [ ['exclude', '_linux\\.(cc|cpp)$'] ],
372 '../third_party/skia/src/ports/SkFontHost_FreeType.cpp',
373 '../third_party/skia/src/ports/SkFontHost_FreeType_common.cpp',
376 [ 'toolkit_uses_gtk == 1', {
378 '../build/linux/system.gyp:gdk',
380 }, { # toolkit_uses_gtk == 0
381 'sources/': [ ['exclude', '_gtk\\.(cc|cpp)$'] ],
383 [ 'OS == "android"', {
385 ['exclude', '_linux\\.(cc|cpp)$'],
388 [ '_toolset == "target"', {
392 'SK_BUILD_FOR_ANDROID_NDK',
393 # Android devices are typically more memory constrained, so
394 # use a smaller glyph cache.
395 'SK_DEFAULT_FONT_CACHE_LIMIT=(8*1024*1024)',
399 '../third_party/expat/expat.gyp:expat',
400 '../third_party/freetype/freetype.gyp:ft2',
404 # Android doesn't use Skia's PDF generation, which is what uses
406 '../third_party/sfntly/sfntly.gyp:sfntly',
408 # This exports a hard dependency because it needs to run its
409 # symlink action in order to expose the skia header files.
410 'hard_dependency': 1,
412 '../third_party/expat/files/lib',
415 ['include', 'ext/platform_device_linux\\.cc$'],
416 ['exclude', '../third_party/skia/src/pdf/'],
419 'ext/vector_platform_device_skia.cc',
422 [ '_toolset == "target" and android_build_type == 0', {
427 [ '_toolset=="host" and host_os=="linux"', {
429 'ext/platform_device_linux.cc',
437 'SK_USE_MAC_CORE_TEXT',
440 '../third_party/skia/include/utils/ios',
441 '../third_party/skia/include/utils/mac',
445 '$(SDKROOT)/System/Library/Frameworks/ImageIO.framework',
453 '../third_party/sfntly/sfntly.gyp:sfntly',
456 # This file is used on both iOS and Mac, so it should be removed
457 # from the ios and mac conditions and moved into the main sources
459 '../third_party/skia/src/utils/mac/SkStream_mac.cpp',
462 ['exclude', '/pdf/'],
463 ['exclude', '^ext/vector_platform_device_skia\\.'],
464 ['exclude', 'opts_check_SSE2\\.cpp$'],
465 ['exclude', 'SkFontHost_tables\\.cpp$',],
473 '../third_party/skia/include/utils/mac',
477 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
481 '../third_party/skia/src/utils/mac/SkStream_mac.cpp',
484 # The mac's fonthost implements the table methods natively,
485 # so no need for these generic versions.
486 '../third_party/skia/src/ports/SkFontHost_tables.cpp',
491 ['exclude', '/pdf/'],
492 ['exclude', 'ext/vector_platform_device_skia\\.(cc|h)'],
497 'SK_USE_MAC_CORE_TEXT',
498 # 'SK_USE_COLOR_LUMINANCE',
505 '../third_party/skia/src/core/SkMMapStream.cpp',
506 '../third_party/skia/src/ports/SkFontHost_sandbox_none.cpp',
507 '../third_party/skia/src/ports/SkThread_pthread.cpp',
508 '../third_party/skia/src/ports/SkTime_Unix.cpp',
509 'ext/SkThread_chrome.cc',
514 'direct_dependent_settings': {
520 ['component=="shared_library"', {
523 'GR_IMPLEMENTATION=1',
525 'SKIA_IMPLEMENTATION=1',
528 '../base/base.gyp:base',
530 'direct_dependent_settings': {
540 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
541 '../third_party/sfntly/sfntly.gyp:sfntly',
542 '../third_party/zlib/zlib.gyp:zlib',
544 'direct_dependent_settings': {
548 #temporary until we can hide SkFontHost
549 '../third_party/skia/src/core',
551 '../third_party/skia/include/config',
552 '../third_party/skia/include/core',
553 '../third_party/skia/include/effects',
554 '../third_party/skia/include/pdf',
555 '../third_party/skia/include/gpu',
556 '../third_party/skia/include/gpu/gl',
557 '../third_party/skia/include/pipe',
558 '../third_party/skia/include/ports',
559 '../third_party/skia/include/utils',
563 'SK_BUILD_NO_IMAGE_ENCODE',
564 'SK_DEFERRED_CANVAS_USES_GPIPE=1',
565 'GR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"',
566 'GR_AGGRESSIVE_SHADER_OPTS=1',
571 'SK_SUPPORT_HINTING_SCALE_FACTOR',
577 '../third_party/zlib/zlib.gyp:zlib',
580 # Don't use non-NDK available stuff.
581 'SK_BUILD_FOR_ANDROID_NDK',
584 [ '_toolset == "target" and android_build_type == 0', {
593 '../third_party/skia/include/utils/mac',
598 'target_conditions': [
599 # Pull in specific Mac files for iOS (which have been filtered out
600 # by file name rules).
603 ['include', 'SkFontHost_mac\\.cpp$',],
604 ['include', 'SkStream_mac\\.cpp$',],
605 ['include', 'SkCreateCGImageRef\\.cpp$',],
611 # Due to an unfortunate intersection of lameness between gcc and gyp,
612 # we have to build the *_SSE2.cpp files in a separate target. The
613 # gcc lameness is that, in order to compile SSE2 intrinsics code, it
614 # must be passed the -msse2 flag. However, with this flag, it may
615 # emit SSE2 instructions even for scalar code, such as the CPUID
616 # test used to test for the presence of SSE2. So that, and all other
617 # code must be compiled *without* -msse2. The gyp lameness is that it
618 # does not allow file-specific CFLAGS, so we must create this extra
619 # target for those files to be compiled with -msse2.
621 # This is actually only a problem on 32-bit Linux (all Intel Macs have
622 # SSE2, Linux x86_64 has SSE2 by definition, and MSC will happily emit
623 # SSE2 from instrinsics, which generating plain ol' 386 for everything
624 # else). However, to keep the .gyp file simple and avoid platform-specific
625 # build breakage, we do this on all platforms.
627 # For about the same reason, we need to compile the ARM opts files
628 # separately as well.
630 'target_name': 'skia_opts',
631 'type': 'static_library',
638 '../third_party/skia/include/config',
639 '../third_party/skia/include/core',
640 '../third_party/skia/include/effects',
641 '../third_party/skia/include/images',
642 '../third_party/skia/include/utils',
643 '../third_party/skia/src/core',
646 [ 'os_posix == 1 and OS != "mac" and OS != "android" and \
647 target_arch != "arm" and target_arch != "mipsel"', {
652 [ 'OS == "android"', {
654 'SK_BUILD_FOR_ANDROID_NDK',
657 [ 'target_arch != "arm" and target_arch != "mipsel"', {
659 '../third_party/skia/src/opts/SkBitmapProcState_opts_SSE2.cpp',
660 '../third_party/skia/src/opts/SkBlitRect_opts_SSE2.cpp',
661 '../third_party/skia/src/opts/SkBlitRow_opts_SSE2.cpp',
662 '../third_party/skia/src/opts/SkUtils_opts_SSE2.cpp',
665 # x86 Android doesn't support SSSE3 instructions.
666 [ 'OS != "android"', {
673 [ 'target_arch == "arm"', {
680 [ 'armv7 == 1 and arm_neon == 1', {
685 # The neon assembly contains conditional instructions which
686 # aren't enclosed in an IT block. The assembler complains
687 # without this option.
689 '-Wa,-mimplicit-it=always',
693 # The assembly uses the frame pointer register (r7 in Thumb/r11 in
694 # ARM), the compiler doesn't like that. Explicitly remove the
695 # -fno-omit-frame-pointer flag for Android, as that gets added to all
696 # targets via common.gypi.
698 '-fno-omit-frame-pointer',
703 '-fomit-frame-pointer',
706 '../third_party/skia/src/opts/SkBitmapProcState_opts_arm.cpp',
709 [ 'armv7 == 1 and arm_neon == 0', {
711 '../third_party/skia/src/opts/memset.arm.S',
714 [ 'armv7 == 1 and arm_neon == 1', {
716 '../third_party/skia/src/opts/memset16_neon.S',
717 '../third_party/skia/src/opts/memset32_neon.S',
718 '../third_party/skia/src/opts/SkBitmapProcState_arm_neon.cpp',
719 '../third_party/skia/src/opts/SkBitmapProcState_matrixProcs_neon.cpp',
720 '../third_party/skia/src/opts/SkBitmapProcState_matrix_clamp_neon.h',
721 '../third_party/skia/src/opts/SkBitmapProcState_matrix_repeat_neon.h',
722 '../third_party/skia/src/opts/SkBlitRow_opts_arm_neon.cpp',
725 [ 'target_arch == "arm" and armv7 == 0', {
727 '../third_party/skia/src/opts/SkBlitRow_opts_none.cpp',
728 '../third_party/skia/src/opts/SkUtils_opts_none.cpp',
731 [ 'target_arch == "arm" and armv7 == 1', {
733 '../third_party/skia/src/opts/SkBlitRow_opts_arm.cpp',
734 '../third_party/skia/src/opts/SkBlitRow_opts_arm.h',
735 '../third_party/skia/src/opts/opts_check_arm.cpp',
738 [ 'target_arch == "mipsel"',{
740 '-fomit-frame-pointer',
743 '../third_party/skia/src/opts/SkBitmapProcState_opts_none.cpp',
744 '../third_party/skia/src/opts/SkBlitRow_opts_none.cpp',
745 '../third_party/skia/src/opts/SkUtils_opts_none.cpp',
750 # For the same lame reasons as what is done for skia_opts, we have to
751 # create another target specifically for SSSE3 code as we would not want
752 # to compile the SSE2 code with -mssse3 which would potentially allow
753 # gcc to generate SSSE3 code.
755 'target_name': 'skia_opts_ssse3',
756 'type': 'static_library',
763 '../third_party/skia/include/config',
764 '../third_party/skia/include/core',
765 '../third_party/skia/src/core',
768 [ 'OS in ["linux", "freebsd", "openbsd", "solaris"]', {
775 'GCC_ENABLE_SUPPLEMENTAL_SSE3_INSTRUCTIONS': 'YES',
782 'direct_dependent_settings': {
788 [ 'target_arch != "arm"', {
790 '../third_party/skia/src/opts/SkBitmapProcState_opts_SSSE3.cpp',
796 'target_name': 'image_operations_bench',
797 'type': 'executable',
799 '../base/base.gyp:base',
806 'ext/image_operations_bench.cc',
813 # The main skia_opts target does not currently work on iOS because the
814 # target architecture on iOS is determined at compile time rather than
815 # gyp time (simulator builds are x86, device builds are arm). As a
816 # temporary measure, this is a separate opts target for iOS-only, using
817 # the _none.cpp files to avoid architecture-dependent implementations.
819 'target_name': 'skia_opts_ios',
820 'type': 'static_library',
824 '../third_party/skia/include/config',
825 '../third_party/skia/include/core',
826 '../third_party/skia/include/effects',
827 '../third_party/skia/include/images',
828 '../third_party/skia/include/utils',
829 '../third_party/skia/src/core',
832 '../third_party/skia/src/opts/SkBitmapProcState_opts_none.cpp',
833 '../third_party/skia/src/opts/SkBlitRow_opts_none.cpp',
834 '../third_party/skia/src/opts/SkUtils_opts_none.cpp',