blob: 0fbc56cc2dc5db1dd6d859c4fbedc84b614b40a3 [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
bsalomon@google.coma9681db2011-03-21 13:34:23 +000015 'include_dirs': [
reede3323962014-10-24 11:16:19 -070016 '../include/c',
bsalomon@google.coma9681db2011-03-21 13:34:23 +000017 '../include/config',
18 '../include/core',
caryclark@google.com45a75fb2013-04-25 13:34:40 +000019 '../include/pathops',
bsalomon@google.coma9681db2011-03-21 13:34:23 +000020 '../include/ports',
mtkleincd1f2da2015-07-28 08:55:14 -070021 '../include/private',
humper@google.com7af56be2013-01-14 18:49:19 +000022 '../include/utils',
halcanaryea4673f2014-08-18 08:27:09 -070023 '../include/images',
bsalomon@google.coma9681db2011-03-21 13:34:23 +000024 '../src/core',
vandebo0f9bad02014-06-19 11:05:39 -070025 '../src/sfnt',
reed@google.com97af1a62012-08-28 12:19:02 +000026 '../src/image',
mtklein887f3972014-06-17 12:08:15 -070027 '../src/opts',
reed54dc4872016-09-13 08:09:45 -070028 '../src/pipe',
mtklein887f3972014-06-17 12:08:15 -070029 '../src/utils',
bsalomon@google.coma9681db2011-03-21 13:34:23 +000030 ],
bsalomon@google.com202a51b2012-09-04 14:37:12 +000031 'sources': [
Mike Kleincfc4f442016-10-26 17:19:03 -040032 '<!@(python read_gni.py ../gn/core.gni skia_core_sources)',
bsalomon@google.com202a51b2012-09-04 14:37:12 +000033 ],
bsalomon@google.coma9681db2011-03-21 13:34:23 +000034 'msvs_disabled_warnings': [4244, 4267,4345, 4390, 4554, 4800],
35 'conditions': [
borenet43bf5112016-04-29 14:01:34 -070036 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
bsalomon@google.coma9681db2011-03-21 13:34:23 +000037 'link_settings': {
38 'libraries': [
senorblanco@chromium.org7eb492e2011-03-25 17:41:34 +000039 '-lpthread',
bsalomon@google.coma9681db2011-03-21 13:34:23 +000040 ],
bsalomon@google.com91826102011-03-21 19:51:57 +000041 },
bsalomon@google.coma9681db2011-03-21 13:34:23 +000042 }],
epoger@google.com8846cb22011-07-01 20:20:07 +000043 [ 'skia_os == "mac"', {
bsalomon@google.coma9681db2011-03-21 13:34:23 +000044 'include_dirs': [
45 '../include/utils/mac',
46 ],
47 'sources': [
bsalomon@google.coma9681db2011-03-21 13:34:23 +000048 '../include/utils/mac/SkCGUtils.h',
bsalomon@google.coma9681db2011-03-21 13:34:23 +000049 ],
epoger@google.com0a030cd2011-06-02 19:52:14 +000050 'link_settings': {
51 'libraries': [
yangsu@google.comccb74ea2011-06-21 13:09:32 +000052 '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework',
epoger@google.com0a030cd2011-06-02 19:52:14 +000053 ],
54 },
bsalomon@google.coma9681db2011-03-21 13:34:23 +000055 }],
epoger@google.comea5dfa82011-07-01 21:01:32 +000056 [ 'skia_os == "ios"', {
57 'include_dirs': [
58 '../include/utils/ios',
59 ],
60 'sources': [
epoger@google.comea5dfa82011-07-01 21:01:32 +000061 '../include/utils/mac/SkCGUtils.h',
epoger@google.comea5dfa82011-07-01 21:01:32 +000062 ],
63 'link_settings': {
64 'libraries': [
bsalomon@google.com46638222012-10-04 12:52:03 +000065 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
66 '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework',
67 '$(SDKROOT)/System/Library/Frameworks/CoreText.framework',
68 '$(SDKROOT)/System/Library/Frameworks/UIKit.framework',
69 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
70 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
71 '$(SDKROOT)/System/Library/Frameworks/OpenGLES.framework',
72 '$(SDKROOT)/System/Library/Frameworks/ImageIO.framework',
73 '$(SDKROOT)/System/Library/Frameworks/MobileCoreServices.framework',
epoger@google.comea5dfa82011-07-01 21:01:32 +000074 ],
75 },
76 }],
epoger@google.com8846cb22011-07-01 20:20:07 +000077 [ 'skia_os == "win"', {
bsalomon@google.coma9681db2011-03-21 13:34:23 +000078 'include_dirs': [
79 'config/win',
80 ],
senorblanco@chromium.orgc1587e02011-05-04 18:59:38 +000081 }],
djsollen@google.com52f02972013-06-03 12:10:19 +000082 [ 'skia_os == "android"', {
djsollen@google.com6a6c80c2013-08-05 13:38:28 +000083 'dependencies': [
84 'android_deps.gyp:cpu_features',
85 ],
djsollen@google.com52f02972013-06-03 12:10:19 +000086 }],
bsalomon@google.come197cbf2013-01-14 16:46:26 +000087 ['skia_gpu == 1', {
88 'include_dirs': [
bsalomon4beef912014-07-28 13:43:02 -070089 '../include/gpu',
90 '../src/gpu',
bsalomon@google.come197cbf2013-01-14 16:46:26 +000091 ],
92 }],
bsalomon@google.coma9681db2011-03-21 13:34:23 +000093 ],
94 'direct_dependent_settings': {
95 'include_dirs': [
reede3323962014-10-24 11:16:19 -070096 '../include/c',
bsalomon@google.coma9681db2011-03-21 13:34:23 +000097 '../include/config',
98 '../include/core',
caryclark@google.com45a75fb2013-04-25 13:34:40 +000099 '../include/pathops',
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000100 ],
borenet@google.comefb1d772012-10-10 19:45:51 +0000101 'conditions': [
102 [ 'skia_os == "mac"', {
103 'include_dirs': [
104 '../include/utils/mac',
borenet@google.comefb1d772012-10-10 19:45:51 +0000105 ],
106 }],
107 [ 'skia_os == "ios"', {
108 'include_dirs': [
109 '../include/utils/ios',
110 ],
111 }],
112 [ 'skia_os == "win"', {
113 'include_dirs': [
114 'config/win',
115 ],
116 }],
117 ],
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000118 },
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000119 },
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000120 ],
121}