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 '../src/core', 24 '../src/sfnt', 25 '../src/image', 26 '../src/opts', 27 '../src/utils', 28 ], 29 'sources': [ 30 'core.gypi', # Makes the gypi appear in IDEs (but does not modify the build). 31 ], 32 'msvs_disabled_warnings': [4244, 4267,4345, 4390, 4554, 4800], 33 'conditions': [ 34 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', { 35 'link_settings': { 36 'libraries': [ 37 '-lpthread', 38 ], 39 }, 40 }], 41 [ 'skia_os == "mac"', { 42 'include_dirs': [ 43 '../include/utils/mac', 44 ], 45 'sources': [ 46 '../include/utils/mac/SkCGUtils.h', 47 ], 48 'link_settings': { 49 'libraries': [ 50 '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework', 51 ], 52 }, 53 }], 54 [ 'skia_os == "ios"', { 55 'include_dirs': [ 56 '../include/utils/ios', 57 ], 58 'sources': [ 59 '../include/utils/mac/SkCGUtils.h', 60 ], 61 'link_settings': { 62 'libraries': [ 63 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework', 64 '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework', 65 '$(SDKROOT)/System/Library/Frameworks/CoreText.framework', 66 '$(SDKROOT)/System/Library/Frameworks/UIKit.framework', 67 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', 68 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework', 69 '$(SDKROOT)/System/Library/Frameworks/OpenGLES.framework', 70 '$(SDKROOT)/System/Library/Frameworks/ImageIO.framework', 71 '$(SDKROOT)/System/Library/Frameworks/MobileCoreServices.framework', 72 ], 73 }, 74 }], 75 [ 'skia_os == "win"', { 76 'include_dirs': [ 77 'config/win', 78 ], 79 }], 80 [ 'skia_os == "android"', { 81 'dependencies': [ 82 'android_deps.gyp:cpu_features', 83 ], 84 }], 85 [ 'skia_arch_type == "arm"', { 86 # The code in SkUtilsArm.cpp can be used on an ARM-based Linux system, not only Android. 87 'sources': [ 88 '../src/core/SkUtilsArm.cpp', 89 '../src/core/SkUtilsArm.h', 90 ], 91 }], 92 ['skia_gpu == 1', { 93 'include_dirs': [ 94 '../include/gpu', 95 '../src/gpu', 96 ], 97 }], 98 ], 99 'direct_dependent_settings': { 100 'include_dirs': [ 101 '../include/config', 102 '../include/core', 103 '../include/pathops', 104 '../include/pipe', 105 ], 106 'conditions': [ 107 [ 'skia_os == "mac"', { 108 'include_dirs': [ 109 '../include/utils/mac', 110 ], 111 }], 112 [ 'skia_os == "ios"', { 113 'include_dirs': [ 114 '../include/utils/ios', 115 ], 116 }], 117 [ 'skia_os == "win"', { 118 'include_dirs': [ 119 'config/win', 120 ], 121 }], 122 ], 123 }, 124 }, 125 ], 126 } 127