blob: 2569a9478fa6d262463192a1dcab3d0a376ffbcc [file] [log] [blame]
scroggo3e562272015-03-25 10:22:41 -07001# Copyright 2015 Google Inc.
2#
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
epoger@google.com51c078b2011-05-31 19:02:37 +00005# Core Skia library code.
bsalomon@google.coma9681db2011-03-21 13:34:23 +00006{
bsalomon@google.coma9681db2011-03-21 13:34:23 +00007 'targets': [
8 {
epoger@google.com51c078b2011-05-31 19:02:37 +00009 'target_name': 'core',
borenet@google.comefb1d772012-10-10 19:45:51 +000010 'product_name': 'skia_core',
bsalomon@google.coma9681db2011-03-21 13:34:23 +000011 'type': 'static_library',
borenet@google.comefb1d772012-10-10 19:45:51 +000012 'standalone_static_library': 1,
bsalomon@google.coma9681db2011-03-21 13:34:23 +000013 'msvs_guid': 'B7760B5E-BFA8-486B-ACFD-49E3A6DE8E76',
bsalomon@google.coma9681db2011-03-21 13:34:23 +000014
reed@google.combaa5d942012-08-08 20:39:17 +000015 'includes': [
16 'core.gypi',
bsalomon@google.coma9681db2011-03-21 13:34:23 +000017 ],
reed@google.combaa5d942012-08-08 20:39:17 +000018
bsalomon@google.coma9681db2011-03-21 13:34:23 +000019 'include_dirs': [
reede3323962014-10-24 11:16:19 -070020 '../include/c',
bsalomon@google.coma9681db2011-03-21 13:34:23 +000021 '../include/config',
22 '../include/core',
caryclark@google.com45a75fb2013-04-25 13:34:40 +000023 '../include/pathops',
scroggo@google.com5af9b202012-06-04 17:17:36 +000024 '../include/pipe',
bsalomon@google.coma9681db2011-03-21 13:34:23 +000025 '../include/ports',
mtkleincd1f2da2015-07-28 08:55:14 -070026 '../include/private',
humper@google.com7af56be2013-01-14 18:49:19 +000027 '../include/utils',
halcanaryea4673f2014-08-18 08:27:09 -070028 '../include/images',
bsalomon@google.coma9681db2011-03-21 13:34:23 +000029 '../src/core',
vandebo0f9bad02014-06-19 11:05:39 -070030 '../src/sfnt',
reed@google.com97af1a62012-08-28 12:19:02 +000031 '../src/image',
mtklein887f3972014-06-17 12:08:15 -070032 '../src/opts',
33 '../src/utils',
bsalomon@google.coma9681db2011-03-21 13:34:23 +000034 ],
bsalomon@google.com202a51b2012-09-04 14:37:12 +000035 'sources': [
36 'core.gypi', # Makes the gypi appear in IDEs (but does not modify the build).
37 ],
bsalomon@google.coma9681db2011-03-21 13:34:23 +000038 'msvs_disabled_warnings': [4244, 4267,4345, 4390, 4554, 4800],
39 'conditions': [
borenet@google.com05d550e2013-06-11 15:52:19 +000040 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
bsalomon@google.coma9681db2011-03-21 13:34:23 +000041 'link_settings': {
42 'libraries': [
senorblanco@chromium.org7eb492e2011-03-25 17:41:34 +000043 '-lpthread',
bsalomon@google.coma9681db2011-03-21 13:34:23 +000044 ],
bsalomon@google.com91826102011-03-21 19:51:57 +000045 },
bsalomon@google.coma9681db2011-03-21 13:34:23 +000046 }],
epoger@google.com8846cb22011-07-01 20:20:07 +000047 [ 'skia_os == "mac"', {
bsalomon@google.coma9681db2011-03-21 13:34:23 +000048 'include_dirs': [
49 '../include/utils/mac',
50 ],
51 'sources': [
bsalomon@google.coma9681db2011-03-21 13:34:23 +000052 '../include/utils/mac/SkCGUtils.h',
bsalomon@google.coma9681db2011-03-21 13:34:23 +000053 ],
epoger@google.com0a030cd2011-06-02 19:52:14 +000054 'link_settings': {
55 'libraries': [
yangsu@google.comccb74ea2011-06-21 13:09:32 +000056 '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework',
epoger@google.com0a030cd2011-06-02 19:52:14 +000057 ],
58 },
bsalomon@google.coma9681db2011-03-21 13:34:23 +000059 }],
epoger@google.comea5dfa82011-07-01 21:01:32 +000060 [ 'skia_os == "ios"', {
61 'include_dirs': [
62 '../include/utils/ios',
63 ],
64 'sources': [
epoger@google.comea5dfa82011-07-01 21:01:32 +000065 '../include/utils/mac/SkCGUtils.h',
epoger@google.comea5dfa82011-07-01 21:01:32 +000066 ],
67 'link_settings': {
68 'libraries': [
bsalomon@google.com46638222012-10-04 12:52:03 +000069 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
70 '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework',
71 '$(SDKROOT)/System/Library/Frameworks/CoreText.framework',
72 '$(SDKROOT)/System/Library/Frameworks/UIKit.framework',
73 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
74 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
75 '$(SDKROOT)/System/Library/Frameworks/OpenGLES.framework',
76 '$(SDKROOT)/System/Library/Frameworks/ImageIO.framework',
77 '$(SDKROOT)/System/Library/Frameworks/MobileCoreServices.framework',
epoger@google.comea5dfa82011-07-01 21:01:32 +000078 ],
79 },
80 }],
epoger@google.com8846cb22011-07-01 20:20:07 +000081 [ 'skia_os == "win"', {
bsalomon@google.coma9681db2011-03-21 13:34:23 +000082 'include_dirs': [
83 'config/win',
84 ],
senorblanco@chromium.orgc1587e02011-05-04 18:59:38 +000085 }],
djsollen@google.com52f02972013-06-03 12:10:19 +000086 [ 'skia_os == "android"', {
djsollen@google.com6a6c80c2013-08-05 13:38:28 +000087 'dependencies': [
88 'android_deps.gyp:cpu_features',
89 ],
djsollen@google.com52f02972013-06-03 12:10:19 +000090 }],
djsollen@google.com6a6c80c2013-08-05 13:38:28 +000091 [ 'skia_arch_type == "arm"', {
digit@google.comeec9dbc2012-05-30 13:54:41 +000092 # The code in SkUtilsArm.cpp can be used on an ARM-based Linux system, not only Android.
93 'sources': [
94 '../src/core/SkUtilsArm.cpp',
digit@google.comfbf31942012-08-01 15:58:41 +000095 '../src/core/SkUtilsArm.h',
digit@google.comeec9dbc2012-05-30 13:54:41 +000096 ],
97 }],
bsalomon@google.come197cbf2013-01-14 16:46:26 +000098 ['skia_gpu == 1', {
99 'include_dirs': [
bsalomon4beef912014-07-28 13:43:02 -0700100 '../include/gpu',
101 '../src/gpu',
bsalomon@google.come197cbf2013-01-14 16:46:26 +0000102 ],
103 }],
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000104 ],
105 'direct_dependent_settings': {
106 'include_dirs': [
reede3323962014-10-24 11:16:19 -0700107 '../include/c',
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000108 '../include/config',
109 '../include/core',
caryclark@google.com45a75fb2013-04-25 13:34:40 +0000110 '../include/pathops',
scroggo@google.com5af9b202012-06-04 17:17:36 +0000111 '../include/pipe',
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000112 ],
borenet@google.comefb1d772012-10-10 19:45:51 +0000113 'conditions': [
114 [ 'skia_os == "mac"', {
115 'include_dirs': [
116 '../include/utils/mac',
borenet@google.comefb1d772012-10-10 19:45:51 +0000117 ],
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 ],
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000130 },
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000131 },
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000132 ],
133}