1 # Core Skia library code. 2 { 3 'targets': [ 4 { 5 'target_name': 'core', 6 'product_name': 'skia_core', 7 'type': 'static_library', 8 'standalone_static_library': 1, 9 'msvs_guid': 'B7760B5E-BFA8-486B-ACFD-49E3A6DE8E76', 10 11 'includes': [ 12 'core.gypi', 13 ], 14 15 'include_dirs': [ 16 '../include/config', 17 '../include/core', 18 '../include/pipe', 19 '../include/ports', 20 '../include/utils', 21 '../include/xml', 22 '../src/core', 23 '../src/image', 24 ], 25 'sources': [ 26 'core.gypi', # Makes the gypi appear in IDEs (but does not modify the build). 27 ], 28 'msvs_disabled_warnings': [4244, 4267,4345, 4390, 4554, 4800], 29 'conditions': [ 30 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', { 31 'cflags': [ 32 '-Wno-unused', 33 '-Wno-unused-function', 34 ], 35 'link_settings': { 36 'libraries': [ 37 '-lpthread', 38 ], 39 }, 40 }], 41 [ 'skia_os == "mac"', { 42 'include_dirs': [ 43 '../include/utils/mac', 44 '../third_party/freetype/include/**', 45 ], 46 'sources': [ 47 '../include/utils/mac/SkCGUtils.h', 48 ], 49 'link_settings': { 50 'libraries': [ 51 '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework', 52 ], 53 }, 54 }], 55 [ 'skia_os == "ios"', { 56 'include_dirs': [ 57 '../include/utils/ios', 58 ], 59 'sources': [ 60 '../include/utils/mac/SkCGUtils.h', 61 ], 62 'link_settings': { 63 'libraries': [ 64 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework', 65 '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework', 66 '$(SDKROOT)/System/Library/Frameworks/CoreText.framework', 67 '$(SDKROOT)/System/Library/Frameworks/UIKit.framework', 68 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', 69 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework', 70 '$(SDKROOT)/System/Library/Frameworks/OpenGLES.framework', 71 '$(SDKROOT)/System/Library/Frameworks/ImageIO.framework', 72 '$(SDKROOT)/System/Library/Frameworks/MobileCoreServices.framework', 73 ], 74 }, 75 }], 76 [ 'skia_os == "win"', { 77 'include_dirs': [ 78 'config/win', 79 ], 80 'sources!': [ 81 '../include/core/SkMMapStream.h', 82 '../src/core/SkMMapStream.cpp', 83 ], 84 }], 85 [ 'skia_os == "android"', { 86 'dependencies': [ 87 'freetype.gyp:freetype', 88 ], 89 }], 90 [ 'skia_os == "android" and skia_arch_type == "arm" and armv7 == 1', { 91 # The code in SkUtilsArm.cpp can be used on an ARM-based Linux system, not only Android. 92 'sources': [ 93 '../src/core/SkUtilsArm.cpp', 94 '../src/core/SkUtilsArm.h', 95 ], 96 }], 97 ['skia_gpu == 1', { 98 'include_dirs': [ 99 '../include/gpu', 100 '../src/gpu', 101 ], 102 }], 103 ], 104 'direct_dependent_settings': { 105 'include_dirs': [ 106 'config', 107 '../include/config', 108 '../include/core', 109 '../include/pipe', 110 'ext', 111 ], 112 'conditions': [ 113 [ 'skia_os == "mac"', { 114 'include_dirs': [ 115 '../include/utils/mac', 116 '../third_party/freetype/include/**', 117 ], 118 }], 119 [ 'skia_os == "ios"', { 120 'include_dirs': [ 121 '../include/utils/ios', 122 ], 123 }], 124 [ 'skia_os == "win"', { 125 'include_dirs': [ 126 'config/win', 127 ], 128 }], 129 ], 130 }, 131 'dependencies': [ 132 'opts.gyp:opts' 133 ], 134 }, 135 ], 136 } 137 138 # Local Variables: 139 # tab-width:2 140 # indent-tabs-mode:nil 141 # End: 142 # vim: set expandtab tabstop=2 shiftwidth=2: 143