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/pathops', 19 '../include/pipe', 20 '../include/ports', 21 '../include/utils', 22 '../include/xml', 23 '../include/images', 24 '../src/core', 25 '../src/sfnt', 26 '../src/image', 27 '../src/opts', 28 '../src/utils', 29 ], 30 'sources': [ 31 'core.gypi', # Makes the gypi appear in IDEs (but does not modify the build). 32 ], 33 'msvs_disabled_warnings': [4244, 4267,4345, 4390, 4554, 4800], 34 'conditions': [ 35 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', { 36 'link_settings': { 37 'libraries': [ 38 '-lpthread', 39 ], 40 }, 41 }], 42 [ 'skia_os == "mac"', { 43 'include_dirs': [ 44 '../include/utils/mac', 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 }], 81 [ 'skia_os == "android"', { 82 'dependencies': [ 83 'android_deps.gyp:cpu_features', 84 ], 85 }], 86 [ 'skia_arch_type == "arm"', { 87 # The code in SkUtilsArm.cpp can be used on an ARM-based Linux system, not only Android. 88 'sources': [ 89 '../src/core/SkUtilsArm.cpp', 90 '../src/core/SkUtilsArm.h', 91 ], 92 }], 93 ['skia_gpu == 1', { 94 'include_dirs': [ 95 '../include/gpu', 96 '../src/gpu', 97 ], 98 }], 99 ], 100 'direct_dependent_settings': { 101 'include_dirs': [ 102 '../include/config', 103 '../include/core', 104 '../include/pathops', 105 '../include/pipe', 106 ], 107 'conditions': [ 108 [ 'skia_os == "mac"', { 109 'include_dirs': [ 110 '../include/utils/mac', 111 ], 112 }], 113 [ 'skia_os == "ios"', { 114 'include_dirs': [ 115 '../include/utils/ios', 116 ], 117 }], 118 [ 'skia_os == "win"', { 119 'include_dirs': [ 120 'config/win', 121 ], 122 }], 123 ], 124 }, 125 }, 126 ], 127 } 128