aboutsummaryrefslogtreecommitdiffstats
path: root/gyp
diff options
context:
space:
mode:
authorDerek Sollenberger <djsollen@google.com>2011-04-14 09:57:06 -0400
committerDerek Sollenberger <djsollen@google.com>2011-04-14 15:01:11 -0400
commit87b8e645865f9633f410c02252a0fd3feb18f09b (patch)
tree21e2521ed6f69bf466849f7c9579c37aa6b22b06 /gyp
parent7f10e10e25231b613ebb242fa14ad8c924ce694f (diff)
downloadexternal_skia-87b8e645865f9633f410c02252a0fd3feb18f09b.zip
external_skia-87b8e645865f9633f410c02252a0fd3feb18f09b.tar.gz
external_skia-87b8e645865f9633f410c02252a0fd3feb18f09b.tar.bz2
Skia Merge (revision 1116)
There is a companion change in external/webkit Change-Id: I1c4110e7520bbef3f4e5f9551adb7ec79ac1e3ed
Diffstat (limited to 'gyp')
-rw-r--r--gyp/common.gypi94
-rwxr-xr-xgyp/gyp_skia77
-rw-r--r--gyp/skia.gyp1555
3 files changed, 1726 insertions, 0 deletions
diff --git a/gyp/common.gypi b/gyp/common.gypi
new file mode 100644
index 0000000..aadaffb
--- /dev/null
+++ b/gyp/common.gypi
@@ -0,0 +1,94 @@
+# Copyright (C) 2011 The Android Open Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+{
+ 'conditions' : [
+ ['OS == "win"',
+ {
+ 'target_defaults': {
+ 'msvs_cygwin_shell': 0,
+ 'msvs_settings': {
+ 'VCCLCompilerTool': {
+ 'WarningLevel': '1',
+ 'WarnAsError': 'false',
+ 'DebugInformationFormat': '3',
+ 'AdditionalOptions': '/MP',
+ },
+ },
+ 'configurations': {
+ 'Debug': {
+ 'msvs_settings': {
+ 'VCCLCompilerTool': {
+ 'Optimization': '0', # 0 = /Od
+ 'PreprocessorDefinitions': ['_DEBUG'],
+ 'RuntimeLibrary': '3', # 3 = /MDd (debug DLL)
+ },
+ 'VCLinkerTool': {
+ 'GenerateDebugInformation': 'true',
+ },
+ },
+ },
+ 'Release': {
+ 'msvs_settings': {
+ 'VCCLCompilerTool': {
+ 'Optimization': '2', # 2 = /Os
+ 'PreprocessorDefinitions': ['NDEBUG'],
+ 'RuntimeLibrary': '2', # 2 = /MD (nondebug DLL)
+ },
+ 'VCLinkerTool': {
+ 'GenerateDebugInformation': 'false',
+ },
+ },
+ },
+ },
+ },
+ },
+ ],
+ ['OS == "linux"',
+ {
+ 'target_defaults': {
+ 'configurations': {
+ 'Debug': {
+ 'cflags': ['-g']
+ },
+ 'Release': {
+ 'cflags': ['-O2']
+ },
+ },
+ },
+ },
+ ],
+ ['OS == "mac"',
+ {
+ 'target_defaults': {
+ 'configurations': {
+ 'Debug': {
+ 'cflags': ['-g']
+ },
+ 'Release': {
+ 'cflags': ['-O2']
+ },
+ },
+ },
+ 'xcode_settings': {
+ 'SYMROOT': '<(DEPTH)/xcodebuild',
+ },
+ },
+ ],
+ ],
+}
+# Local Variables:
+# tab-width:2
+# indent-tabs-mode:nil
+# End:
+# vim: set expandtab tabstop=2 shiftwidth=2:
diff --git a/gyp/gyp_skia b/gyp/gyp_skia
new file mode 100755
index 0000000..72b4879
--- /dev/null
+++ b/gyp/gyp_skia
@@ -0,0 +1,77 @@
+#!/usr/bin/python
+#
+# Copyright (C) 2011 The Android Open Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# This script is a wrapper which invokes gyp with the correct --depth argument,
+# and supports the automatic regeneration of build files if skia.gyp is
+# changed (Linux-only).
+
+import glob
+import os
+import shlex
+import sys
+
+script_dir = os.path.dirname(__file__)
+
+gyp_dir = os.path.normpath(os.path.join(script_dir, os.pardir, 'third_party'))
+
+sys.path.append(os.path.join(gyp_dir, 'gyp', 'pylib'))
+import gyp
+
+def additional_include_files(args=[]):
+ # Determine the include files specified on the command line.
+ # This doesn't cover all the different option formats you can use,
+ # but it's mainly intended to avoid duplicating flags on the automatic
+ # makefile regeneration which only uses this format.
+ specified_includes = set()
+ for arg in args:
+ if arg.startswith('-I') and len(arg) > 2:
+ specified_includes.add(os.path.realpath(arg[2:]))
+
+ result = []
+ def AddInclude(path):
+ if os.path.realpath(path) not in specified_includes:
+ result.append(path)
+
+ # Always include common.gypi
+ AddInclude(os.path.join(script_dir, 'common.gypi'))
+
+ return result
+
+if __name__ == '__main__':
+ args = sys.argv[1:]
+
+ # This could give false positives since it doesn't actually do real option
+ # parsing. Oh well.
+ gyp_file_specified = False
+ for arg in args:
+ if arg.endswith('.gyp'):
+ gyp_file_specified = True
+ break
+
+ # If we didn't get a file, then fall back to assuming 'skia.gyp' from the
+ # same directory as the script.
+ if not gyp_file_specified:
+ args.append(os.path.join(script_dir, 'skia.gyp'))
+
+ args.extend(['-I' + i for i in additional_include_files(args)])
+
+ args.extend(['--depth'])
+ args.extend([os.path.abspath(script_dir)])
+ print 'Updating projects from gyp files...'
+ sys.stdout.flush()
+
+ # Off we go...
+ sys.exit(gyp.main(args))
diff --git a/gyp/skia.gyp b/gyp/skia.gyp
new file mode 100644
index 0000000..bd19c04
--- /dev/null
+++ b/gyp/skia.gyp
@@ -0,0 +1,1555 @@
+{
+ 'target_defaults': {
+ 'msvs_settings': {
+ #really need to figure out how to generate debug and release
+ 'VCLinkerTool': {
+ 'GenerateDebugInformation': 'true',
+ },
+ 'VCCLCompilerTool': {
+ 'DebugInformationFormat': '4',
+ 'Optimization': '0',
+ },
+ },
+ 'conditions': [
+ [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
+ 'include_dirs' : [
+ '/usr/include/freetype2',
+ ],
+ }],
+ [ 'OS == "mac"', {
+ 'defines': [
+ 'SK_BUILD_FOR_MAC',
+ ],
+ }],
+ [ 'OS == "win"', {
+ 'defines': [
+ 'SK_BUILD_FOR_WIN32',
+ 'SK_IGNORE_STDINT_DOT_H',
+ ],
+ },],
+ ],
+ 'direct_dependent_settings': {
+ 'conditions': [
+ [ 'OS == "mac"', {
+ 'defines': [
+ 'SK_BUILD_FOR_MAC',
+ ],
+ }],
+ [ 'OS == "win"', {
+ 'defines': [
+ 'SK_BUILD_FOR_WIN32',
+ ],
+ },],
+ ],
+ },
+ },
+ 'targets': [
+ {
+ 'target_name': 'skia',
+ 'type': 'static_library',
+ 'msvs_guid': 'B7760B5E-BFA8-486B-ACFD-49E3A6DE8E76',
+ 'sources': [
+ '../src/core/ARGB32_Clamp_Bilinear_BitmapShader.h',
+ '../src/core/Sk64.cpp',
+ '../src/core/SkAdvancedTypefaceMetrics.cpp',
+ '../src/core/SkAlphaRuns.cpp',
+ '../src/core/SkAntiRun.h',
+ '../src/core/SkBitmap.cpp',
+ '../src/core/SkBitmapProcShader.cpp',
+ '../src/core/SkBitmapProcShader.h',
+ '../src/core/SkBitmapProcState.cpp',
+ '../src/core/SkBitmapProcState.h',
+ '../src/core/SkBitmapProcState_matrix.h',
+ '../src/core/SkBitmapProcState_matrixProcs.cpp',
+ '../src/core/SkBitmapProcState_sample.h',
+ '../src/core/SkBitmapSampler.cpp',
+ '../src/core/SkBitmapSampler.h',
+ '../src/core/SkBitmapSamplerTemplate.h',
+ '../src/core/SkBitmapShader16BilerpTemplate.h',
+ '../src/core/SkBitmapShaderTemplate.h',
+ '../src/core/SkBitmap_scroll.cpp',
+ '../src/core/SkBlitBWMaskTemplate.h',
+ '../src/core/SkBlitRow_D16.cpp',
+ '../src/core/SkBlitRow_D32.cpp',
+ '../src/core/SkBlitRow_D4444.cpp',
+ '../src/core/SkBlitter.cpp',
+ '../src/core/SkBlitter_4444.cpp',
+ '../src/core/SkBlitter_A1.cpp',
+ '../src/core/SkBlitter_A8.cpp',
+ '../src/core/SkBlitter_ARGB32.cpp',
+ '../src/core/SkBlitter_RGB16.cpp',
+ '../src/core/SkBlitter_Sprite.cpp',
+ '../src/core/SkBuffer.cpp',
+ '../src/core/SkCanvas.cpp',
+ '../src/core/SkChunkAlloc.cpp',
+ '../src/core/SkClipStack.cpp',
+ '../src/core/SkColor.cpp',
+ '../src/core/SkColorFilter.cpp',
+ '../src/core/SkColorTable.cpp',
+ '../src/core/SkComposeShader.cpp',
+ '../src/core/SkConcaveToTriangles.cpp',
+ '../src/core/SkConcaveToTriangles.h',
+ '../src/core/SkCordic.cpp',
+ '../src/core/SkCordic.h',
+ '../src/core/SkCoreBlitters.h',
+ '../src/core/SkCubicClipper.cpp',
+ '../src/core/SkCubicClipper.h',
+ '../src/core/SkDebug.cpp',
+ '../src/core/SkDeque.cpp',
+ '../src/core/SkDevice.cpp',
+ '../src/core/SkDither.cpp',
+ '../src/core/SkDraw.cpp',
+ '../src/core/SkDrawProcs.h',
+ '../src/core/SkEdgeBuilder.cpp',
+ '../src/core/SkEdgeClipper.cpp',
+ '../src/core/SkEdge.cpp',
+ '../src/core/SkEdge.h',
+ '../src/core/SkFP.h',
+ '../src/core/SkFilterProc.cpp',
+ '../src/core/SkFilterProc.h',
+ '../src/core/SkFlattenable.cpp',
+ '../src/core/SkFloat.cpp',
+ '../src/core/SkFloat.h',
+ '../src/core/SkFloatBits.cpp',
+ '../src/core/SkGeometry.cpp',
+ '../src/core/SkGlobals.cpp',
+ '../src/core/SkGlyphCache.cpp',
+ '../src/core/SkGlyphCache.h',
+ '../src/core/SkGraphics.cpp',
+ '../src/core/SkLineClipper.cpp',
+ '../src/core/SkMallocPixelRef.cpp',
+ '../src/core/SkMask.cpp',
+ '../src/core/SkMaskFilter.cpp',
+ '../src/core/SkMath.cpp',
+ '../src/core/SkMatrix.cpp',
+ '../src/core/SkMetaData.cpp',
+ '../src/core/SkPackBits.cpp',
+ '../src/core/SkPaint.cpp',
+ '../src/core/SkPath.cpp',
+ '../src/core/SkPathEffect.cpp',
+ '../src/core/SkPathHeap.cpp',
+ '../src/core/SkPathHeap.h',
+ '../src/core/SkPathMeasure.cpp',
+ '../src/core/SkPicture.cpp',
+ '../src/core/SkPictureFlat.cpp',
+ '../src/core/SkPictureFlat.h',
+ '../src/core/SkPicturePlayback.cpp',
+ '../src/core/SkPicturePlayback.h',
+ '../src/core/SkPictureRecord.cpp',
+ '../src/core/SkPictureRecord.h',
+ '../src/core/SkPixelRef.cpp',
+ '../src/core/SkPoint.cpp',
+ '../src/core/SkProcSpriteBlitter.cpp',
+ '../src/core/SkPtrRecorder.cpp',
+ '../src/core/SkQuadClipper.cpp',
+ '../src/core/SkQuadClipper.h',
+ '../src/core/SkRasterizer.cpp',
+ '../src/core/SkRect.cpp',
+ '../src/core/SkRefDict.cpp',
+ '../src/core/SkRegion.cpp',
+ '../src/core/SkRegionPriv.h',
+ '../src/core/SkRegion_path.cpp',
+ '../src/core/SkScalar.cpp',
+ '../src/core/SkScalerContext.cpp',
+ '../src/core/SkScan.cpp',
+ '../src/core/SkScanPriv.h',
+ '../src/core/SkScan_AntiPath.cpp',
+ '../src/core/SkScan_Antihair.cpp',
+ '../src/core/SkScan_Hairline.cpp',
+ '../src/core/SkScan_Path.cpp',
+ '../src/core/SkShader.cpp',
+ '../src/core/SkShape.cpp',
+ '../src/core/SkSpriteBlitter_ARGB32.cpp',
+ '../src/core/SkSpriteBlitter_RGB16.cpp',
+ '../src/core/SkSinTable.h',
+ '../src/core/SkSpriteBlitter.h',
+ '../src/core/SkSpriteBlitterTemplate.h',
+ '../src/core/SkStream.cpp',
+ '../src/core/SkString.cpp',
+ '../src/core/SkStroke.cpp',
+ '../src/core/SkStrokerPriv.cpp',
+ '../src/core/SkStrokerPriv.h',
+ '../src/core/SkTextFormatParams.h',
+ '../src/core/SkTSearch.cpp',
+ '../src/core/SkTSort.h',
+ '../src/core/SkTemplatesPriv.h',
+ '../src/core/SkTypeface.cpp',
+ '../src/core/SkUnPreMultiply.cpp',
+ '../src/core/SkUtils.cpp',
+ '../src/core/SkWriter32.cpp',
+ '../src/core/SkXfermode.cpp',
+
+ '../src/opts/opts_check_SSE2.cpp',
+
+ '../src/ports/SkDebug_stdio.cpp',
+ '../src/ports/SkFontHost_tables.cpp',
+ '../src/ports/SkGlobals_global.cpp',
+ '../src/ports/SkMemory_malloc.cpp',
+ '../src/ports/SkOSFile_stdio.cpp',
+ '../src/ports/SkTime_Unix.cpp',
+ '../src/ports/SkXMLParser_empty.cpp',
+ '../src/ports/sk_predefined_gamma.h',
+
+ '../include/core/Sk64.h',
+ '../include/core/SkAdvancedTypefaceMetrics.h',
+ '../include/core/SkAutoKern.h',
+ '../include/core/SkBitmap.h',
+ '../include/core/SkBlitRow.h',
+ '../include/core/SkBlitter.h',
+ '../include/core/SkBounder.h',
+ '../include/core/SkBuffer.h',
+ '../include/core/SkCanvas.h',
+ '../include/core/SkChunkAlloc.h',
+ '../include/core/SkClipStack.h',
+ '../include/core/SkColor.h',
+ '../include/core/SkColorFilter.h',
+ '../include/core/SkColorPriv.h',
+ '../include/core/SkColorShader.h',
+ '../include/core/SkComposeShader.h',
+ '../include/core/SkDeque.h',
+ '../include/core/SkDescriptor.h',
+ '../include/core/SkDevice.h',
+ '../include/core/SkDither.h',
+ '../include/core/SkDraw.h',
+ '../include/core/SkDrawFilter.h',
+ '../include/core/SkDrawLooper.h',
+ '../include/core/SkEndian.h',
+ '../include/core/SkFDot6.h',
+ '../include/core/SkFixed.h',
+ '../include/core/SkFlattenable.h',
+ '../include/core/SkFloatBits.h',
+ '../include/core/SkFloatingPoint.h',
+ '../include/core/SkFontHost.h',
+ '../include/core/SkGeometry.h',
+ '../include/core/SkGlobals.h',
+ '../include/core/SkGraphics.h',
+ '../include/core/SkMallocPixelRef.h',
+ '../include/core/SkMask.h',
+ '../include/core/SkMaskFilter.h',
+ '../include/core/SkMath.h',
+ '../include/core/SkMatrix.h',
+ '../include/core/SkMetaData.h',
+ '../include/core/SkOSFile.h',
+ '../include/core/SkPackBits.h',
+ '../include/core/SkPaint.h',
+ '../include/core/SkPath.h',
+ '../include/core/SkPathEffect.h',
+ '../include/core/SkPathMeasure.h',
+ '../include/core/SkPerspIter.h',
+ '../include/core/SkPicture.h',
+ '../include/core/SkPixelRef.h',
+ '../include/core/SkPoint.h',
+ '../include/core/SkPtrRecorder.h',
+ '../include/core/SkRandom.h',
+ '../include/core/SkRasterizer.h',
+ '../include/core/SkReader32.h',
+ '../include/core/SkRect.h',
+ '../include/core/SkRefCnt.h',
+ '../include/core/SkRefDict.h',
+ '../include/core/SkRegion.h',
+ '../include/core/SkScalar.h',
+ '../include/core/SkScalarCompare.h',
+ '../include/core/SkScalerContext.h',
+ '../include/core/SkScan.h',
+ '../include/core/SkShader.h',
+ '../include/core/SkStream.h',
+ '../include/core/SkString.h',
+ '../include/core/SkStroke.h',
+ '../include/core/SkTDArray.h',
+ '../include/core/SkTDStack.h',
+ '../include/core/SkTDict.h',
+ '../include/core/SkTRegistry.h',
+ '../include/core/SkTScopedPtr.h',
+ '../include/core/SkTSearch.h',
+ '../include/core/SkTemplates.h',
+ '../include/core/SkThread.h',
+ '../include/core/SkThread_platform.h',
+ '../include/core/SkTime.h',
+ '../include/core/SkTypeface.h',
+ '../include/core/SkTypes.h',
+ '../include/core/SkUnPreMultiply.h',
+ '../include/core/SkUnitMapper.h',
+ '../include/core/SkUtils.h',
+ '../include/core/SkWriter32.h',
+ '../include/core/SkXfermode.h',
+ ],
+ 'include_dirs': [
+ '../include/config',
+ '../include/core',
+ '../include/ports',
+ '../include/xml',
+ '../src/core',
+ ],
+ 'msvs_disabled_warnings': [4244, 4267,4345, 4390, 4554, 4800],
+ 'conditions': [
+ [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
+ 'cflags': [
+ '-Wno-unused',
+ '-Wno-unused-function',
+ ],
+ 'sources': [
+ '../include/core/SkMMapStream.h',
+ '../src/core/SkMMapStream.cpp',
+ '../src/core/SkBlitter_ARGB32_Subpixel.cpp',
+ '../src/core/SkFontHost.cpp',
+ '../src/ports/SkThread_pthread.cpp',
+ '../src/ports/SkTime_Unix.cpp',
+ '../src/ports/SkFontHost_FreeType_Subpixel.cpp',
+ '../src/ports/SkFontHost_FreeType.cpp',
+ '../src/ports/SkFontHost_gamma_none.cpp',
+ '../src/ports/SkFontHost_linux.cpp',
+ ],
+ 'link_settings': {
+ 'libraries': [
+ '-lfreetype',
+ '-lpthread',
+ ],
+ },
+ }],
+ [ 'OS == "mac"', {
+ 'include_dirs': [
+ '../include/utils/mac',
+ ],
+ 'sources': [
+ '../include/core/SkMMapStream.h',
+ '../include/utils/mac/SkCGUtils.h',
+
+ '../src/core/SkMMapStream.cpp',
+ '../src/ports/SkFontHost_mac_coretext.cpp',
+
+ '../src/ports/SkThread_pthread.cpp',
+ '../src/ports/SkTime_Unix.cpp',
+
+ '../src/utils/mac/SkCreateCGImageRef.cpp',
+ ],
+ }],
+ [ 'OS == "win"', {
+ 'include_dirs': [
+ 'config/win',
+ ],
+ 'sources': [
+ '../src/ports/SkFontHost_win.cpp',
+ '../src/ports/SkThread_win.cpp',
+ ],
+ },],
+ ],
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ 'config',
+ '../include/config',
+ '../include/core',
+ 'ext',
+ ],
+ },
+ 'dependencies': [
+ 'skia_opts'
+ ],
+ },
+
+ # Due to an unfortunate intersection of lameness between gcc and gyp,
+ # we have to build the *_SSE2.cpp files in a separate target. The
+ # gcc lameness is that, in order to compile SSE2 intrinsics code, it
+ # must be passed the -msse2 flag. However, with this flag, it may
+ # emit SSE2 instructions even for scalar code, such as the CPUID
+ # test used to test for the presence of SSE2. So that, and all other
+ # code must be compiled *without* -msse2. The gyp lameness is that it
+ # does not allow file-specific CFLAGS, so we must create this extra
+ # target for those files to be compiled with -msse2.
+ #
+ # This is actually only a problem on 32-bit Linux (all Intel Macs have
+ # SSE2, Linux x86_64 has SSE2 by definition, and MSC will happily emit
+ # SSE2 from instrinsics, while generating plain ol' 386 for everything
+ # else). However, to keep the .gyp file simple and avoid platform-specific
+ # build breakage, we do this on all platforms.
+
+ # For about the same reason, we need to compile the ARM opts files
+ # separately as well.
+ {
+ 'target_name': 'skia_opts',
+ 'type': 'static_library',
+ 'include_dirs': [
+ '../include/config',
+ '../include/core',
+ '../src/core',
+ ],
+ 'conditions': [
+ [ '(OS == "linux" or OS == "freebsd" or OS == "openbsd")', {
+ 'cflags': [
+ '-msse2',
+ ],
+ }],
+ ],
+ 'sources': [
+ '../src/opts/SkBitmapProcState_opts_SSE2.cpp',
+ '../src/opts/SkBlitRow_opts_SSE2.cpp',
+ '../src/opts/SkUtils_opts_SSE2.cpp',
+ ],
+ },
+ {
+ 'target_name': 'effects',
+ 'type': 'static_library',
+ 'include_dirs': [
+ '../include/config',
+ '../include/core',
+ '../include/effects',
+ ],
+ 'sources': [
+ '../include/effects/Sk1DPathEffect.h',
+ '../include/effects/Sk2DPathEffect.h',
+ '../include/effects/SkAvoidXfermode.h',
+ '../include/effects/SkBlurDrawLooper.h',
+ '../include/effects/SkBlurMaskFilter.h',
+ '../include/effects/SkColorMatrix.h',
+ '../include/effects/SkColorMatrixFilter.h',
+ '../include/effects/SkCornerPathEffect.h',
+ '../include/effects/SkDashPathEffect.h',
+ '../include/effects/SkDiscretePathEffect.h',
+ '../include/effects/SkDrawExtraPathEffect.h',
+ '../include/effects/SkEmbossMaskFilter.h',
+ '../include/effects/SkGradientShader.h',
+ '../include/effects/SkGroupShape.h',
+ '../include/effects/SkKernel33MaskFilter.h',
+ '../include/effects/SkLayerDrawLooper.h',
+ '../include/effects/SkLayerRasterizer.h',
+ '../include/effects/SkPaintFlagsDrawFilter.h',
+ '../include/effects/SkPixelXorXfermode.h',
+ '../include/effects/SkPorterDuff.h',
+ '../include/effects/SkRectShape.h',
+ '../include/effects/SkTableMaskFilter.h',
+ '../include/effects/SkTransparentShader.h',
+
+ '../src/effects/Sk1DPathEffect.cpp',
+ '../src/effects/Sk2DPathEffect.cpp',
+ '../src/effects/SkAvoidXfermode.cpp',
+ '../src/effects/SkBitmapCache.cpp',
+ '../src/effects/SkBitmapCache.h',
+ '../src/effects/SkBlurDrawLooper.cpp',
+ '../src/effects/SkBlurMask.cpp',
+ '../src/effects/SkBlurMask.h',
+ '../src/effects/SkBlurMaskFilter.cpp',
+ '../src/effects/SkColorFilters.cpp',
+ '../src/effects/SkColorMatrixFilter.cpp',
+ '../src/effects/SkCornerPathEffect.cpp',
+ '../src/effects/SkDashPathEffect.cpp',
+ '../src/effects/SkDiscretePathEffect.cpp',
+ '../src/effects/SkEmbossMask.cpp',
+ '../src/effects/SkEmbossMask.h',
+ '../src/effects/SkEmbossMask_Table.h',
+ '../src/effects/SkEmbossMaskFilter.cpp',
+ '../src/effects/SkGradientShader.cpp',
+ '../src/effects/SkGroupShape.cpp',
+ '../src/effects/SkKernel33MaskFilter.cpp',
+ '../src/effects/SkLayerDrawLooper.cpp',
+ '../src/effects/SkLayerRasterizer.cpp',
+ '../src/effects/SkPaintFlagsDrawFilter.cpp',
+ '../src/effects/SkPixelXorXfermode.cpp',
+ '../src/effects/SkPorterDuff.cpp',
+ '../src/effects/SkRadialGradient_Table.h',
+ '../src/effects/SkRectShape.cpp',
+ '../src/effects/SkTableMaskFilter.cpp',
+ '../src/effects/SkTransparentShader.cpp',
+ ],
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ '../include/effects',
+ ],
+ },
+ },
+ {
+ 'target_name': 'images',
+ 'type': 'static_library',
+ 'include_dirs': [
+ '../include/config',
+ '../include/core',
+ '../include/images',
+ ],
+ 'sources': [
+ '../include/images/SkFlipPixelRef.h',
+ '../include/images/SkImageDecoder.h',
+ '../include/images/SkImageEncoder.h',
+ '../include/images/SkImageRef.h',
+ '../include/images/SkImageRef_GlobalPool.h',
+ '../include/images/SkJpegUtility.h',
+ '../include/images/SkMovie.h',
+ '../include/images/SkPageFlipper.h',
+
+ '../src/images/bmpdecoderhelper.cpp',
+ '../src/images/bmpdecoderhelper.h',
+ '../src/images/SkBitmap_RLEPixels.h',
+ '../src/images/SkCreateRLEPixelRef.cpp',
+ '../src/images/SkFDStream.cpp',
+ '../src/images/SkFlipPixelRef.cpp',
+ '../src/images/SkImageDecoder.cpp',
+ '../src/images/SkImageDecoder_Factory.cpp',
+ '../src/images/SkImageDecoder_libbmp.cpp',
+ '../src/images/SkImageDecoder_libgif.cpp',
+ '../src/images/SkImageDecoder_libico.cpp',
+ '../src/images/SkImageDecoder_libjpeg.cpp',
+ '../src/images/SkImageDecoder_libpng.cpp',
+ '../src/images/SkImageDecoder_libpvjpeg.c',
+ '../src/images/SkImageDecoder_wbmp.cpp',
+ '../src/images/SkImageEncoder.cpp',
+ '../src/images/SkImageEncoder_Factory.cpp',
+ '../src/images/SkImageRef.cpp',
+ '../src/images/SkImageRefPool.cpp',
+ '../src/images/SkImageRefPool.h',
+ '../src/images/SkImageRef_GlobalPool.cpp',
+ '../src/images/SkJpegUtility.cpp',
+ '../src/images/SkMovie.cpp',
+ '../src/images/SkMovie_gif.cpp',
+ '../src/images/SkPageFlipper.cpp',
+ '../src/images/SkScaledBitmapSampler.cpp',
+ '../src/images/SkScaledBitmapSampler.h',
+ ],
+ 'conditions': [
+ [ 'OS == "win"', {
+ 'sources!': [
+ '../include/images/SkJpegUtility.h',
+
+ '../src/images/SkFDStream.cpp',
+ '../src/images/SkImageDecoder_libgif.cpp',
+ '../src/images/SkImageDecoder_libjpeg.cpp',
+ '../src/images/SkImageDecoder_libpng.cpp',
+ '../src/images/SkImageDecoder_libpvjpeg.c',
+ '../src/images/SkJpegUtility.cpp',
+ '../src/images/SkMovie_gif.cpp',
+ ],
+ },],
+ [ 'OS == "mac"', {
+ 'sources!': [
+ '../include/images/SkJpegUtility.h',
+
+ '../src/images/SkImageDecoder_libgif.cpp',
+ '../src/images/SkImageDecoder_libjpeg.cpp',
+ '../src/images/SkImageDecoder_libpng.cpp',
+ '../src/images/SkImageDecoder_libpvjpeg.c',
+ '../src/images/SkJpegUtility.cpp',
+ '../src/images/SkMovie_gif.cpp',
+ ],
+ },],
+ [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
+ 'sources!': [
+ '../include/images/SkJpegUtility.h',
+
+ '../src/images/SkImageDecoder_libjpeg.cpp',
+ '../src/images/SkImageDecoder_libgif.cpp',
+ '../src/images/SkImageDecoder_libpvjpeg.c',
+ '../src/images/SkJpegUtility.cpp',
+ '../src/images/SkMovie_gif.cpp',
+ ],
+ }],
+
+ ],
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ '../include/images',
+ ],
+ },
+ },
+ {
+ 'target_name': 'xml',
+ 'type': 'static_library',
+ 'include_dirs': [
+ '../include/config',
+ '../include/core',
+ '../include/xml',
+ '../include/utils',
+ ],
+ 'sources': [
+ '../include/xml/SkBML_WXMLParser.h',
+ '../include/xml/SkBML_XMLParser.h',
+ '../include/xml/SkDOM.h',
+ '../include/xml/SkJS.h',
+ '../include/xml/SkXMLParser.h',
+ '../include/xml/SkXMLWriter.h',
+
+ '../src/xml/SkBML_Verbs.h',
+ '../src/xml/SkBML_XMLParser.cpp',
+ '../src/xml/SkDOM.cpp',
+ '../src/xml/SkJS.cpp',
+ '../src/xml/SkJSDisplayable.cpp',
+ '../src/xml/SkXMLParser.cpp',
+ '../src/xml/SkXMLPullParser.cpp',
+ '../src/xml/SkXMLWriter.cpp',
+ ],
+ 'sources!': [
+ '../src/xml/SkXMLPullParser.cpp', #if 0 around class decl in header
+ ],
+ 'conditions': [
+ [ 'OS == "win" or OS == "mac" or OS == "linux" or OS == "openbsd" or OS == "solaris"', {
+ 'sources!': [
+ # no jsapi.h by default on system
+ '../include/xml/SkJS.h',
+ '../src/xml/SkJS.cpp',
+ '../src/xml/SkJSDisplayable.cpp',
+ ],
+ },],
+ ],
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ '../include/xml',
+ ],
+ },
+ },
+ {
+ 'target_name': 'pdf',
+ 'type': 'static_library',
+ 'include_dirs': [
+ '../include/config',
+ '../include/core',
+ '../include/pdf',
+ '../src/core', # needed to get SkGlyphCache.h and SkTextFormatParams.h
+ ],
+ 'sources': [
+ '../include/pdf/SkPDFCatalog.h',
+ '../include/pdf/SkPDFDevice.h',
+ '../include/pdf/SkPDFDocument.h',
+ '../include/pdf/SkPDFFont.h',
+ '../include/pdf/SkPDFFormXObject.h',
+ '../include/pdf/SkPDFGraphicState.h',
+ '../include/pdf/SkPDFImage.h',
+ '../include/pdf/SkPDFPage.h',
+ '../include/pdf/SkPDFShader.h',
+ '../include/pdf/SkPDFStream.h',
+ '../include/pdf/SkPDFTypes.h',
+ '../include/pdf/SkPDFUtils.h',
+
+ '../src/pdf/SkPDFCatalog.cpp',
+ '../src/pdf/SkPDFDevice.cpp',
+ '../src/pdf/SkPDFDocument.cpp',
+ '../src/pdf/SkPDFFont.cpp',
+ '../src/pdf/SkPDFFormXObject.cpp',
+ '../src/pdf/SkPDFGraphicState.cpp',
+ '../src/pdf/SkPDFImage.cpp',
+ '../src/pdf/SkPDFPage.cpp',
+ '../src/pdf/SkPDFShader.cpp',
+ '../src/pdf/SkPDFStream.cpp',
+ '../src/pdf/SkPDFTypes.cpp',
+ '../src/pdf/SkPDFUtils.cpp',
+ ],
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ '../include/pdf',
+ ],
+ },
+ },
+ {
+ 'target_name': 'utils',
+ 'type': 'static_library',
+ 'include_dirs': [
+ '../include/config',
+ '../include/core',
+ '../include/utils',
+ '../include/views',
+ '../include/effects',
+ '../include/xml',
+ ],
+ 'sources': [
+ '../include/utils/SkBoundaryPatch.h',
+ '../include/utils/SkCamera.h',
+ '../include/utils/SkCubicInterval.h',
+ '../include/utils/SkCullPoints.h',
+ '../include/utils/SkDumpCanvas.h',
+ '../include/utils/SkEGLContext.h',
+ '../include/utils/SkGLCanvas.h',
+ '../include/utils/SkInterpolator.h',
+ '../include/utils/SkLayer.h',
+ '../include/utils/SkMeshUtils.h',
+ '../include/utils/SkNinePatch.h',
+ '../include/utils/SkNWayCanvas.h',
+ '../include/utils/SkParse.h',
+ '../include/utils/SkParsePaint.h',
+ '../include/utils/SkParsePath.h',
+ '../include/utils/SkProxyCanvas.h',
+ '../include/utils/SkSfntUtils.h',
+ '../include/utils/SkTextBox.h',
+ '../include/utils/SkUnitMappers.h',
+
+ '../src/utils/SkBoundaryPatch.cpp',
+ '../src/utils/SkCamera.cpp',
+ '../src/utils/SkColorMatrix.cpp',
+ '../src/utils/SkCubicInterval.cpp',
+ '../src/utils/SkCullPoints.cpp',
+ '../src/utils/SkDumpCanvas.cpp',
+ '../src/utils/SkEGLContext_none.cpp',
+ '../src/utils/SkInterpolator.cpp',
+ '../src/utils/SkLayer.cpp',
+ '../src/utils/SkMeshUtils.cpp',
+ '../src/utils/SkNinePatch.cpp',
+ '../src/utils/SkNWayCanvas.cpp',
+ '../src/utils/SkOSFile.cpp',
+ '../src/utils/SkParse.cpp',
+ '../src/utils/SkParseColor.cpp',
+ '../src/utils/SkParsePath.cpp',
+ '../src/utils/SkProxyCanvas.cpp',
+ '../src/utils/SkSfntUtils.cpp',
+ '../src/utils/SkUnitMappers.cpp',
+ ],
+ 'conditions': [
+ [ 'OS == "mac"', {
+ 'sources': [
+ '../include/utils/SkCGUtils.h',
+ '../src/utils/mac/SkCreateCGImageRef.cpp',
+ '../src/utils/mac/SkEGLContext_mac.cpp',
+ ],
+ },],
+ ],
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ '../include/utils',
+ ],
+ },
+ },
+ {
+ 'target_name': 'views',
+ 'type': 'static_library',
+ 'include_dirs': [
+ '../include/config',
+ '../include/core',
+ '../include/views',
+ '../include/xml',
+ '../include/utils',
+ '../include/images',
+ '../include/animator',
+ '../include/effects',
+ ],
+ 'sources': [
+ '../include/views/SkApplication.h',
+ '../include/views/SkBGViewArtist.h',
+ '../include/views/SkBorderView.h',
+ '../include/views/SkEvent.h',
+ '../include/views/SkEventSink.h',
+ '../include/views/SkImageView.h',
+ '../include/views/SkKey.h',
+ '../include/views/SkOSMenu.h',
+ '../include/views/SkOSWindow_Mac.h',
+ '../include/views/SkOSWindow_SDL.h',
+ '../include/views/SkOSWindow_Unix.h',
+ '../include/views/SkOSWindow_Win.h',
+ #'../include/views/SkOSWindow_wxwidgets.h',
+ '../include/views/SkProgressBarView.h',
+ '../include/views/SkScrollBarView.h',
+ '../include/views/SkStackViewLayout.h',
+ '../include/views/SkSystemEventTypes.h',
+ '../include/views/SkTouchGesture.h',
+ '../include/views/SkView.h',
+ '../include/views/SkViewInflate.h',
+ '../include/views/SkWidget.h',
+ '../include/views/SkWidgetViews.h',
+ '../include/views/SkWindow.h',
+
+ '../src/views/SkBGViewArtist.cpp',
+ '../src/views/SkBorderView.cpp',
+ '../src/views/SkEvent.cpp',
+ '../src/views/SkEventSink.cpp',
+ '../src/views/SkImageView.cpp',
+ '../src/views/SkListView.cpp',
+ '../src/views/SkListWidget.cpp',
+ '../src/views/SkOSMenu.cpp',
+ '../src/views/SkParsePaint.cpp',
+ '../src/views/SkProgressBarView.cpp',
+ '../src/views/SkProgressView.cpp',
+ '../src/views/SkScrollBarView.cpp',
+ '../src/views/SkStackViewLayout.cpp',
+ '../src/views/SkStaticTextView.cpp',
+ '../src/views/SkTagList.cpp',
+ '../src/views/SkTagList.h',
+ '../src/views/SkTextBox.cpp',
+ '../src/views/SkTouchGesture.cpp',
+ '../src/views/SkView.cpp',
+ '../src/views/SkViewInflate.cpp',
+ '../src/views/SkViewPriv.cpp',
+ '../src/views/SkViewPriv.h',
+ '../src/views/SkWidget.cpp',
+ '../src/views/SkWidgets.cpp',
+ '../src/views/SkWidgetViews.cpp',
+ '../src/views/SkWindow.cpp',
+ ],
+ 'sources!' : [
+ '../src/views/SkListView.cpp', #depends on missing SkListSource implementation
+ '../src/views/SkListWidget.cpp', #depends on missing SkListSource implementation
+ ],
+ 'conditions': [
+ [ 'OS == "win"', {
+ 'sources': [
+ '../src/utils/win/SkOSWindow_Win.cpp',
+ '../src/utils/win/skia_win.cpp',
+ ],
+ },],
+ [ 'OS == "mac"', {
+ 'sources': [
+ '../include/utils/SkCGUtils.h',
+ #'../src/utils/mac/SkBitmap_Mac.cpp',
+ '../src/utils/mac/SkCreateCGImageRef.cpp',
+ '../src/utils/mac/SkEGLContext_mac.cpp',
+ '../src/utils/mac/skia_mac.cpp',
+ '../src/utils/mac/SkOSWindow_Mac.cpp',
+ ],
+ 'link_settings': {
+ 'libraries': [
+ '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
+ '$(SDKROOT)/System/Library/Frameworks/AGL.framework',
+ ],
+ },
+ },],
+ [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
+ 'include_dirs' : [
+ '../include/utils/unix',
+ ],
+ 'sources': [
+ '../src/utils/unix/keysym2ucs.c',
+ '../src/utils/unix/SkOSWindow_Unix.cpp',
+ '../unix_test_app/main.cpp',
+ ],
+ }],
+ ],
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ '../include/views',
+ ],
+ },
+ },
+ {
+ 'target_name': 'skgr',
+ 'type': 'static_library',
+ 'include_dirs': [
+ '../include/config',
+ '../include/core',
+ '../src/core',
+ '../include/gpu',
+ '../gpu/include',
+ ],
+ 'sources': [
+ '../include/gpu/SkGpuCanvas.h',
+ '../include/gpu/SkGpuDevice.h',
+ '../include/gpu/SkGpuDeviceFactory.h',
+ '../include/gpu/SkGr.h',
+ '../include/gpu/SkGrTexturePixelRef.h',
+
+ '../src/gpu/GrPrintf_skia.cpp',
+ '../src/gpu/SkGpuCanvas.cpp',
+ '../src/gpu/SkGpuDevice.cpp',
+ '../src/gpu/SkGr.cpp',
+ '../src/gpu/SkGrFontScaler.cpp',
+ '../src/gpu/SkGrTexturePixelRef.cpp',
+ ],
+ 'conditions': [
+ [ 'OS == "linux"', {
+ 'defines': [
+ 'GR_LINUX_BUILD=1',
+ ],
+ }],
+ [ 'OS == "mac"', {
+ 'defines': [
+ 'GR_MAC_BUILD=1',
+ ],
+ }],
+ [ 'OS == "win"', {
+ 'defines': [
+ 'GR_WIN32_BUILD=1',
+ ],
+ },],
+ ],
+ 'direct_dependent_settings': {
+ 'conditions': [
+ [ 'OS == "linux"', {
+ 'defines': [
+ 'GR_LINUX_BUILD=1',
+ ],
+ }],
+ [ 'OS == "mac"', {
+ 'defines': [
+ 'GR_MAC_BUILD=1',
+ ],
+ }],
+ [ 'OS == "win"', {
+ 'defines': [
+ 'GR_WIN32_BUILD=1',
+ ],
+ },],
+ ],
+ 'include_dirs': [
+ '../include/gpu',
+ ],
+ },
+ },
+ {
+ 'target_name': 'gr',
+ 'type': 'static_library',
+ 'include_dirs': [
+ '../gpu/include',
+ ],
+ #'dependencies': [
+ # 'libtess',
+ #],
+ 'sources': [
+ '../gpu/include/GrAllocator.h',
+ '../gpu/include/GrAllocPool.h',
+ '../gpu/include/GrAtlas.h',
+ '../gpu/include/GrClip.h',
+ '../gpu/include/GrClipIterator.h',
+ '../gpu/include/GrColor.h',
+ '../gpu/include/GrConfig.h',
+ '../gpu/include/GrContext.h',
+ '../gpu/include/GrContext_impl.h',
+ '../gpu/include/GrDrawTarget.h',
+ '../gpu/include/GrFontScaler.h',
+ '../gpu/include/GrGeometryBuffer.h',
+ '../gpu/include/GrGLConfig.h',
+ '../gpu/include/GrGLConfig_chrome.h',
+ '../gpu/include/GrGLIndexBuffer.h',
+ '../gpu/include/GrGLInterface.h',
+ '../gpu/include/GrGLIRect.h',
+ '../gpu/include/GrGLTexture.h',
+ '../gpu/include/GrGLVertexBuffer.h',
+ '../gpu/include/GrGlyph.h',
+ '../gpu/include/GrGpu.h',
+ '../gpu/include/GrGpuVertex.h',
+ '../gpu/include/GrIndexBuffer.h',
+ '../gpu/include/GrInOrderDrawBuffer.h',
+ '../gpu/include/GrInstanceCounter.h',
+ '../gpu/include/GrIPoint.h',
+ '../gpu/include/GrKey.h',
+ '../gpu/include/GrMatrix.h',
+ '../gpu/include/GrMemory.h',
+ '../gpu/include/GrMesh.h',
+ '../gpu/include/GrNoncopyable.h',
+ '../gpu/include/GrPaint.h',
+ '../gpu/include/GrPath.h',
+ '../gpu/include/GrPathIter.h',
+ '../gpu/include/GrPathRenderer.h',
+ '../gpu/include/GrPathSink.h',
+ '../gpu/include/GrPlotMgr.h',
+ '../gpu/include/GrPoint.h',
+ '../gpu/include/GrRandom.h',
+ '../gpu/include/GrRect.h',
+ '../gpu/include/GrRectanizer.h',
+ '../gpu/include/GrRefCnt.h',
+ '../gpu/include/GrResource.h',
+ '../gpu/include/GrSamplerState.h',
+ '../gpu/include/GrScalar.h',
+ '../gpu/include/GrStencil.h',
+ '../gpu/include/GrStopwatch.h',
+ '../gpu/include/GrStringBuilder.h',
+ '../gpu/include/GrTArray.h',
+ '../gpu/include/GrTBSearch.h',
+ '../gpu/include/GrTDArray.h',
+ #'../gpu/include/GrTesselatedPathRenderer.h',
+ '../gpu/include/GrTextContext.h',
+ '../gpu/include/GrTextStrike.h',
+ '../gpu/include/GrTexture.h',
+ '../gpu/include/GrTextureCache.h',
+ '../gpu/include/GrTHashCache.h',
+ '../gpu/include/GrTLList.h',
+ '../gpu/include/GrTouchGesture.h',
+ '../gpu/include/GrTypes.h',
+ '../gpu/include/GrUserConfig.h',
+ '../gpu/include/GrVertexBuffer.h',
+
+ '../gpu/src/GrAllocPool.cpp',
+ '../gpu/src/GrAtlas.cpp',
+ '../gpu/src/GrBinHashKey.h',
+ '../gpu/src/GrBufferAllocPool.cpp',
+ '../gpu/src/GrBufferAllocPool.h',
+ '../gpu/src/GrClip.cpp',
+ '../gpu/src/GrContext.cpp',
+ '../gpu/src/GrCreatePathRenderer_none.cpp',
+ '../gpu/src/GrDrawTarget.cpp',
+ '../gpu/src/GrGLEffect.h',
+ '../gpu/src/GrGLDefaultInterface_none.cpp',
+ '../gpu/src/GrGLIndexBuffer.cpp',
+ '../gpu/src/GrGLInterface.cpp',
+ '../gpu/src/GrGLProgram.cpp',
+ '../gpu/src/GrGLProgram.h',
+ '../gpu/src/GrGLTexture.cpp',
+ '../gpu/src/GrGLUtil.cpp',
+ '../gpu/src/GrGLVertexBuffer.cpp',
+ '../gpu/src/GrGpu.cpp',
+ '../gpu/src/GrGpuFactory.cpp',
+ '../gpu/src/GrGpuGL.cpp',
+ '../gpu/src/GrGpuGL.h',
+ '../gpu/src/GrGpuGLFixed.cpp',
+ '../gpu/src/GrGpuGLFixed.h',
+ '../gpu/src/GrGpuGLShaders.cpp',
+ '../gpu/src/GrGpuGLShaders.h',
+ '../gpu/src/GrGpuGLShaders2.cpp',
+ '../gpu/src/GrGpuGLShaders2.h',
+ '../gpu/src/GrInOrderDrawBuffer.cpp',
+ '../gpu/src/GrMatrix.cpp',
+ '../gpu/src/GrMemory.cpp',
+ '../gpu/src/GrPath.cpp',
+ '../gpu/src/GrPathRenderer.cpp',
+ '../gpu/src/GrPathUtils.cpp',
+ '../gpu/src/GrPathUtils.h',
+ '../gpu/src/GrPrintf_printf.cpp',
+ '../gpu/src/GrRectanizer.cpp',
+ '../gpu/src/GrRedBlackTree.h',
+ '../gpu/src/GrResource.cpp',
+ '../gpu/src/GrStencil.cpp',
+ #'../gpu/src/GrTesselatedPathRenderer.cpp',
+ '../gpu/src/GrTextContext.cpp',
+ '../gpu/src/GrTextStrike.cpp',
+ '../gpu/src/GrTextStrike_impl.h',
+ '../gpu/src/GrTexture.cpp',
+ '../gpu/src/GrTextureCache.cpp',
+ '../gpu/src/gr_unittests.cpp',
+
+ '../gpu/src/mac/GrGLDefaultInterface_mac.cpp',
+
+ '../gpu/src/win/GrGLDefaultInterface_win.cpp',
+ ],
+ 'defines': [
+ 'GR_IMPLEMENTATION=1',
+ ],
+ 'conditions': [
+ [ 'OS == "linux"', {
+ 'defines': [
+ 'GR_LINUX_BUILD=1',
+ ],
+ 'link_settings': {
+ 'libraries': [
+ '-lGL',
+ '-lX11',
+ ],
+ },
+ }],
+ [ 'OS == "mac"', {
+ 'defines': [
+ 'GR_MAC_BUILD=1',
+ ],
+ 'link_settings': {
+ 'libraries': [
+ '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
+ ],
+ },
+ 'sources!': [
+ '../gpu/src/GrGLDefaultInterface_none.cpp',
+ ],
+ }],
+ [ 'OS == "win"', {
+ 'defines': [
+ 'GR_WIN32_BUILD=1',
+ 'GR_GL_FUNCTION_TYPE=__stdcall',
+ ],
+ 'sources!': [
+ '../gpu/src/GrGLDefaultInterface_none.cpp',
+ ],
+ },],
+ [ 'OS != "win"', {
+ 'sources!': [
+ '../gpu/src/win/GrGLDefaultInterface_win.cpp',
+ ],
+ }],
+ [ 'OS != "mac"', {
+ 'sources!': [
+ '../gpu/src/mac/GrGLDefaultInterface_mac.cpp',
+ ],
+ }],
+ ],
+ 'direct_dependent_settings': {
+ 'conditions': [
+ [ 'OS == "linux"', {
+ 'defines': [
+ 'GR_LINUX_BUILD=1',
+ ],
+ }],
+ [ 'OS == "mac"', {
+ 'defines': [
+ 'GR_MAC_BUILD=1',
+ ],
+ }],
+ [ 'OS == "win"', {
+ 'defines': [
+ 'GR_WIN32_BUILD=1',
+ 'GR_GL_FUNCTION_TYPE=__stdcall',
+ ],
+ },],
+ ],
+ 'include_dirs': [
+ '../gpu/include',
+ ],
+ },
+ },
+ {
+ 'target_name': 'animator',
+ 'type': 'static_library',
+ 'include_dirs': [
+ '../include/config',
+ '../include/core',
+ '../include/effects',
+ '../include/animator',
+ '../include/views',
+ '../include/xml',
+ '../include/utils',
+ '../include/images',
+ ],
+ 'sources': [
+ '../include/animator/SkAnimator.h',
+ '../include/animator/SkAnimatorView.h',
+
+ '../src/animator/SkAnimate.h',
+ '../src/animator/SkAnimateActive.cpp',
+ '../src/animator/SkAnimateActive.h',
+ '../src/animator/SkAnimateBase.cpp',
+ '../src/animator/SkAnimateBase.h',
+ '../src/animator/SkAnimateField.cpp',
+ '../src/animator/SkAnimateMaker.cpp',
+ '../src/animator/SkAnimateMaker.h',
+ '../src/animator/SkAnimateProperties.h',
+ '../src/animator/SkAnimateSet.cpp',
+ '../src/animator/SkAnimateSet.h',
+ '../src/animator/SkAnimator.cpp',
+ '../src/animator/SkAnimatorScript.cpp',
+ '../src/animator/SkAnimatorScript.h',
+ #'../src/animator/SkAnimatorScript2.cpp', fails on windows
+ #'../src/animator/SkAnimatorScript2.h',
+ '../src/animator/SkBase64.cpp',
+ '../src/animator/SkBase64.h',
+ '../src/animator/SkBoundable.cpp',
+ '../src/animator/SkBoundable.h',
+ '../src/animator/SkBuildCondensedInfo.cpp',
+ #'../src/animator/SkCondensedDebug.cpp', fails on windows
+ '../src/animator/SkCondensedRelease.cpp',
+ '../src/animator/SkDisplayable.cpp',
+ '../src/animator/SkDisplayable.h',
+ '../src/animator/SkDisplayAdd.cpp',
+ '../src/animator/SkDisplayAdd.h',
+ '../src/animator/SkDisplayApply.cpp',
+ '../src/animator/SkDisplayApply.h',
+ '../src/animator/SkDisplayBounds.cpp',
+ '../src/animator/SkDisplayBounds.h',
+ '../src/animator/SkDisplayEvent.cpp',
+ '../src/animator/SkDisplayEvent.h',
+ '../src/animator/SkDisplayEvents.cpp',
+ '../src/animator/SkDisplayEvents.h',
+ '../src/animator/SkDisplayInclude.cpp',
+ '../src/animator/SkDisplayInclude.h',
+ '../src/animator/SkDisplayInput.cpp',
+ '../src/animator/SkDisplayInput.h',
+ '../src/animator/SkDisplayList.cpp',
+ '../src/animator/SkDisplayList.h',
+ '../src/animator/SkDisplayMath.cpp',
+ '../src/animator/SkDisplayMath.h',
+ '../src/animator/SkDisplayMovie.cpp',
+ '../src/animator/SkDisplayMovie.h',
+ '../src/animator/SkDisplayNumber.cpp',
+ '../src/animator/SkDisplayNumber.h',
+ '../src/animator/SkDisplayPost.cpp',
+ '../src/animator/SkDisplayPost.h',
+ '../src/animator/SkDisplayRandom.cpp',
+ '../src/animator/SkDisplayRandom.h',
+ '../src/animator/SkDisplayScreenplay.cpp',
+ '../src/animator/SkDisplayScreenplay.h',
+ '../src/animator/SkDisplayType.cpp',
+ '../src/animator/SkDisplayType.h',
+ '../src/animator/SkDisplayTypes.cpp',
+ '../src/animator/SkDisplayTypes.h',
+ '../src/animator/SkDisplayXMLParser.cpp',
+ '../src/animator/SkDisplayXMLParser.h',
+ '../src/animator/SkDraw3D.cpp',
+ '../src/animator/SkDraw3D.h',
+ '../src/animator/SkDrawable.cpp',
+ '../src/animator/SkDrawable.h',
+ '../src/animator/SkDrawBitmap.cpp',
+ '../src/animator/SkDrawBitmap.h',
+ '../src/animator/SkDrawBlur.cpp',
+ '../src/animator/SkDrawBlur.h',
+ '../src/animator/SkDrawClip.cpp',
+ '../src/animator/SkDrawClip.h',
+ '../src/animator/SkDrawColor.cpp',
+ '../src/animator/SkDrawColor.h',
+ '../src/animator/SkDrawDash.cpp',
+ '../src/animator/SkDrawDash.h',
+ '../src/animator/SkDrawDiscrete.cpp',
+ '../src/animator/SkDrawDiscrete.h',
+ '../src/animator/SkDrawEmboss.cpp',
+ '../src/animator/SkDrawEmboss.h',
+ '../src/animator/SkDrawExtraPathEffect.cpp',
+ '../src/animator/SkDrawFull.cpp',
+ '../src/animator/SkDrawFull.h',
+ '../src/animator/SkDrawGradient.cpp',
+ '../src/animator/SkDrawGradient.h',
+ '../src/animator/SkDrawGroup.cpp',
+ '../src/animator/SkDrawGroup.h',
+ '../src/animator/SkDrawLine.cpp',
+ '../src/animator/SkDrawLine.h',
+ '../src/animator/SkDrawMatrix.cpp',
+ '../src/animator/SkDrawMatrix.h',
+ '../src/animator/SkDrawOval.cpp',
+ '../src/animator/SkDrawOval.h',
+ '../src/animator/SkDrawPaint.cpp',
+ '../src/animator/SkDrawPaint.h',
+ '../src/animator/SkDrawPath.cpp',
+ '../src/animator/SkDrawPath.h',
+ '../src/animator/SkDrawPoint.cpp',
+ '../src/animator/SkDrawPoint.h',
+ '../src/animator/SkDrawRectangle.cpp',
+ '../src/animator/SkDrawRectangle.h',
+ '../src/animator/SkDrawSaveLayer.cpp',
+ '../src/animator/SkDrawSaveLayer.h',
+ '../src/animator/SkDrawShader.cpp',
+ '../src/animator/SkDrawShader.h',
+ '../src/animator/SkDrawText.cpp',
+ '../src/animator/SkDrawText.h',
+ '../src/animator/SkDrawTextBox.cpp',
+ '../src/animator/SkDrawTextBox.h',
+ '../src/animator/SkDrawTo.cpp',
+ '../src/animator/SkDrawTo.h',
+ '../src/animator/SkDrawTransparentShader.cpp',
+ '../src/animator/SkDrawTransparentShader.h',
+ '../src/animator/SkDump.cpp',
+ '../src/animator/SkDump.h',
+ '../src/animator/SkExtras.h',
+ '../src/animator/SkGetCondensedInfo.cpp',
+ '../src/animator/SkHitClear.cpp',
+ '../src/animator/SkHitClear.h',
+ '../src/animator/SkHitTest.cpp',
+ '../src/animator/SkHitTest.h',
+ '../src/animator/SkIntArray.h',
+ '../src/animator/SkMatrixParts.cpp',
+ '../src/animator/SkMatrixParts.h',
+ '../src/animator/SkMemberInfo.cpp',
+ '../src/animator/SkMemberInfo.h',
+ '../src/animator/SkOpArray.cpp',
+ '../src/animator/SkOpArray.h',
+ '../src/animator/SkOperand.h',
+ '../src/animator/SkOperand2.h',
+ '../src/animator/SkOperandInterpolator.h',
+ '../src/animator/SkOperandIterpolator.cpp',
+ '../src/animator/SkPaintParts.cpp',
+ '../src/animator/SkPaintParts.h',
+ '../src/animator/SkParseSVGPath.cpp',
+ '../src/animator/SkPathParts.cpp',
+ '../src/animator/SkPathParts.h',
+ '../src/animator/SkPostParts.cpp',
+ '../src/animator/SkPostParts.h',
+ '../src/animator/SkScript.cpp',
+ '../src/animator/SkScript.h',
+ '../src/animator/SkScript2.h',
+ '../src/animator/SkScriptCallBack.h',
+ '../src/animator/SkScriptDecompile.cpp',
+ '../src/animator/SkScriptRuntime.cpp',
+ '../src/animator/SkScriptRuntime.h',
+ '../src/animator/SkScriptTokenizer.cpp',
+ '../src/animator/SkSnapshot.cpp',
+ '../src/animator/SkSnapshot.h',
+ '../src/animator/SkTDArray_Experimental.h',
+ '../src/animator/SkTextOnPath.cpp',
+ '../src/animator/SkTextOnPath.h',
+ '../src/animator/SkTextToPath.cpp',
+ '../src/animator/SkTextToPath.h',
+ '../src/animator/SkTime.cpp',
+ '../src/animator/SkTypedArray.cpp',
+ '../src/animator/SkTypedArray.h',
+ '../src/animator/SkXMLAnimatorWriter.cpp',
+ '../src/animator/SkXMLAnimatorWriter.h',
+ ],
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ '../include/animator',
+ ],
+ },
+ },
+
+ {
+ 'target_name': 'svg',
+ 'type': 'static_library',
+ 'include_dirs': [
+ '../include/config',
+ '../include/core',
+ '../include/xml',
+ '../include/utils',
+ '../include/svg',
+ ],
+ 'sources': [
+ '../include/svg/SkSVGAttribute.h',
+ '../include/svg/SkSVGBase.h',
+ '../include/svg/SkSVGPaintState.h',
+ '../include/svg/SkSVGParser.h',
+ '../include/svg/SkSVGTypes.h',
+
+ '../src/svg/SkSVGCircle.cpp',
+ '../src/svg/SkSVGCircle.h',
+ '../src/svg/SkSVGClipPath.cpp',
+ '../src/svg/SkSVGClipPath.h',
+ '../src/svg/SkSVGDefs.cpp',
+ '../src/svg/SkSVGDefs.h',
+ '../src/svg/SkSVGElements.cpp',
+ '../src/svg/SkSVGElements.h',
+ '../src/svg/SkSVGEllipse.cpp',
+ '../src/svg/SkSVGEllipse.h',
+ '../src/svg/SkSVGFeColorMatrix.cpp',
+ '../src/svg/SkSVGFeColorMatrix.h',
+ '../src/svg/SkSVGFilter.cpp',
+ '../src/svg/SkSVGFilter.h',
+ '../src/svg/SkSVGG.cpp',
+ '../src/svg/SkSVGG.h',
+ '../src/svg/SkSVGGradient.cpp',
+ '../src/svg/SkSVGGradient.h',
+ '../src/svg/SkSVGGroup.cpp',
+ '../src/svg/SkSVGGroup.h',
+ '../src/svg/SkSVGImage.cpp',
+ '../src/svg/SkSVGImage.h',
+ '../src/svg/SkSVGLine.cpp',
+ '../src/svg/SkSVGLine.h',
+ '../src/svg/SkSVGLinearGradient.cpp',
+ '../src/svg/SkSVGLinearGradient.h',
+ '../src/svg/SkSVGMask.cpp',
+ '../src/svg/SkSVGMask.h',
+ '../src/svg/SkSVGMetadata.cpp',
+ '../src/svg/SkSVGMetadata.h',
+ '../src/svg/SkSVGPaintState.cpp',
+ '../src/svg/SkSVGParser.cpp',
+ '../src/svg/SkSVGPath.cpp',
+ '../src/svg/SkSVGPath.h',
+ '../src/svg/SkSVGPolygon.cpp',
+ '../src/svg/SkSVGPolygon.h',
+ '../src/svg/SkSVGPolyline.cpp',
+ '../src/svg/SkSVGPolyline.h',
+ '../src/svg/SkSVGRadialGradient.cpp',
+ '../src/svg/SkSVGRadialGradient.h',
+ '../src/svg/SkSVGRect.cpp',
+ '../src/svg/SkSVGRect.h',
+ '../src/svg/SkSVGStop.cpp',
+ '../src/svg/SkSVGStop.h',
+ '../src/svg/SkSVGSVG.cpp',
+ '../src/svg/SkSVGSVG.h',
+ '../src/svg/SkSVGSymbol.cpp',
+ '../src/svg/SkSVGSymbol.h',
+ '../src/svg/SkSVGText.cpp',
+ '../src/svg/SkSVGText.h',
+ '../src/svg/SkSVGUse.cpp',
+ ],
+ 'sources!' : [
+ '../src/svg/SkSVG.cpp', # doesn't compile, maybe this is test code?
+ ],
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ '../include/svg',
+ ],
+ },
+ },
+
+ {
+ 'target_name': 'experimental',
+ 'type': 'static_library',
+ 'include_dirs': [
+ '../include/config',
+ '../include/core',
+ ],
+ 'sources': [
+ '../experimental/SkMatrix44.cpp',
+ '../experimental/SkMatrix44.h',
+ '../experimental/SkSetPoly3To3.cpp',
+ '../experimental/SkSetPoly3To3_A.cpp',
+ '../experimental/SkSetPoly3To3_D.cpp',
+ ],
+ 'sources!': [
+ '../experimental/SkMatrix44.cpp', #doesn't compile
+ '../experimental/SkMatrix44.h',
+ ],
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ '../experimental',
+ ],
+ },
+ },
+
+ {
+ 'target_name': 'SampleApp',
+ 'type': 'executable',
+ 'mac_bundle' : 1,
+ 'include_dirs' : [
+ '../src/core', # needed to get SkConcaveToTriangle, maybe this should be moved to include dir?
+ '../gm', # SampleGM.cpp pulls gm.h
+ ],
+ 'sources': [
+ # gm files needed for SampleGM.cpp
+ '../gm/bitmapfilters.cpp',
+ '../gm/blurs.cpp',
+ '../gm/complexclip.cpp',
+ '../gm/filltypes.cpp',
+ '../gm/gm.h',
+ '../gm/gradients.cpp',
+ '../gm/points.cpp',
+ '../gm/poly2poly.cpp',
+ '../gm/shadertext.cpp',
+ '../gm/shadows.cpp',
+ '../gm/shapes.cpp',
+ '../gm/tilemodes.cpp',
+ '../gm/xfermodes.cpp',
+
+ '../samplecode/ClockFaceView.cpp',
+ '../samplecode/OverView.cpp',
+ '../samplecode/SampleAll.cpp',
+ '../samplecode/SampleAnimator.cpp',
+ '../samplecode/SampleApp.cpp',
+ '../samplecode/SampleArc.cpp',
+ '../samplecode/SampleAvoid.cpp',
+ '../samplecode/SampleBigGradient.cpp',
+ '../samplecode/SampleBitmapRect.cpp',
+ '../samplecode/SampleBlur.cpp',
+ '../samplecode/SampleCamera.cpp',
+ '../samplecode/SampleCircle.cpp',
+ '../samplecode/SampleCode.h',
+ '../samplecode/SampleComplexClip.cpp',
+ '../samplecode/SampleCull.cpp',
+ '../samplecode/SampleDecode.cpp',
+ '../samplecode/SampleDither.cpp',
+ '../samplecode/SampleDitherBitmap.cpp',
+ '../samplecode/SampleDrawLooper.cpp',
+ '../samplecode/SampleEffects.cpp',
+ '../samplecode/SampleEmboss.cpp',
+ '../samplecode/SampleEncode.cpp',
+ '../samplecode/SampleExtractAlpha.cpp',
+ '../samplecode/SampleFillType.cpp',
+ '../samplecode/SampleFilter.cpp',
+ '../samplecode/SampleFilter2.cpp',
+ '../samplecode/SampleFontCache.cpp',
+ '../samplecode/SampleFontScalerTest.cpp',
+ '../samplecode/SampleFuzz.cpp',
+ '../samplecode/SampleGM.cpp',
+ '../samplecode/SampleGradients.cpp',
+ '../samplecode/SampleHairline.cpp',
+ '../samplecode/SampleImage.cpp',
+ '../samplecode/SampleImageDir.cpp',
+ '../samplecode/SampleLayerMask.cpp',
+ '../samplecode/SampleLayers.cpp',
+ '../samplecode/SampleLCD.cpp',
+ '../samplecode/SampleLineClipper.cpp',
+ '../samplecode/SampleLines.cpp',
+ '../samplecode/SampleMeasure.cpp',
+ '../samplecode/SampleMipMap.cpp',
+ '../samplecode/SampleMovie.cpp',
+ '../samplecode/SampleNinePatch.cpp',
+ '../samplecode/SampleOvalTest.cpp',
+ '../samplecode/SampleOverflow.cpp',
+ '../samplecode/SamplePageFlip.cpp',
+ '../samplecode/SamplePatch.cpp',
+ '../samplecode/SamplePath.cpp',
+ '../samplecode/SamplePathClip.cpp',
+ '../samplecode/SamplePathEffects.cpp',
+ '../samplecode/SamplePicture.cpp',
+ '../samplecode/SamplePoints.cpp',
+ '../samplecode/SamplePolyToPoly.cpp',
+ '../samplecode/SampleRegion.cpp',
+ '../samplecode/SampleRepeatTile.cpp',
+ '../samplecode/SampleShaders.cpp',
+ '../samplecode/SampleShaderText.cpp',
+ '../samplecode/SampleShapes.cpp',
+ '../samplecode/SampleSkLayer.cpp',
+ '../samplecode/SampleSlides.cpp',
+ '../samplecode/SampleStrokePath.cpp',
+ '../samplecode/SampleStrokeText.cpp',
+ '../samplecode/SampleSVG.cpp',
+ '../samplecode/SampleTests.cpp',
+ '../samplecode/SampleText.cpp',
+ '../samplecode/SampleTextAlpha.cpp',
+ '../samplecode/SampleTextBox.cpp',
+ '../samplecode/SampleTextEffects.cpp',
+ '../samplecode/SampleTextOnPath.cpp',
+ '../samplecode/SampleTiling.cpp',
+ '../samplecode/SampleTinyBitmap.cpp',
+ '../samplecode/SampleTriangles.cpp',
+ '../samplecode/SampleTypeface.cpp',
+ '../samplecode/SampleUnitMapper.cpp',
+ '../samplecode/SampleVertices.cpp',
+ '../samplecode/SampleXfermodes.cpp',
+ ],
+ 'sources!': [
+ '../samplecode/SampleSkLayer.cpp', #relies on SkMatrix44 which doesn't compile
+ '../samplecode/SampleTests.cpp', #includes unknown file SkShaderExtras.h
+ '../samplecode/SampleWarp.cpp',
+ '../samplecode/SampleFontCache.cpp',
+ ],
+ 'dependencies': [
+ 'skia',
+ 'effects',
+ 'images',
+ 'views',
+ 'utils',
+ 'animator',
+ 'xml',
+ 'svg',
+ 'experimental',
+ 'gr',
+ 'skgr',
+ ],
+ 'conditions' : [
+ [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
+ 'sources!': [
+ '../samplecode/SampleDecode.cpp',
+ ],
+ }],
+ [ 'OS == "win"', {
+ 'sources!': [
+ # require UNIX functions
+ '../samplecode/SampleEncode.cpp',
+ '../samplecode/SamplePageFlip.cpp',
+ ],
+ },],
+ [ 'OS == "mac"', {
+ 'sources!': [
+ '../samplecode/SampleDecode.cpp',
+ ],
+ },],
+
+ ],
+ 'msvs_settings': {
+ 'VCLinkerTool': {
+ 'SubSystem': '2',
+ 'AdditionalDependencies': [
+ 'OpenGL32.lib',
+ 'usp10.lib',
+ 'd3d9.lib',
+ ],
+ },
+ },
+ },
+ {
+ 'target_name': 'libtess',
+ 'type': 'static_library',
+ 'include_dirs': [
+ '../third_party/glu',
+ ],
+ 'sources': [
+ '../third_party/glu/internal_glu.h',
+ '../third_party/glu/gluos.h',
+ '../third_party/glu/libtess/dict-list.h',
+ '../third_party/glu/libtess/dict.c',
+ '../third_party/glu/libtess/dict.h',
+ '../third_party/glu/libtess/geom.c',
+ '../third_party/glu/libtess/geom.h',
+ '../third_party/glu/libtess/memalloc.c',
+ '../third_party/glu/libtess/memalloc.h',
+ '../third_party/glu/libtess/mesh.c',
+ '../third_party/glu/libtess/mesh.h',
+ '../third_party/glu/libtess/normal.c',
+ '../third_party/glu/libtess/normal.h',
+ '../third_party/glu/libtess/priorityq-heap.h',
+ '../third_party/glu/libtess/priorityq-sort.h',
+ '../third_party/glu/libtess/priorityq.c',
+ '../third_party/glu/libtess/priorityq.h',
+ '../third_party/glu/libtess/render.c',
+ '../third_party/glu/libtess/render.h',
+ '../third_party/glu/libtess/sweep.c',
+ '../third_party/glu/libtess/sweep.h',
+ '../third_party/glu/libtess/tess.c',
+ '../third_party/glu/libtess/tess.h',
+ '../third_party/glu/libtess/tessmono.c',
+ '../third_party/glu/libtess/tessmono.h',
+ ],
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ '../third_party/glu',
+ ],
+ },
+ },
+ ],
+}
+
+# Local Variables:
+# tab-width:2
+# indent-tabs-mode:nil
+# End:
+# vim: set expandtab tabstop=2 shiftwidth=2: