blob: 39486deb5611b1f7c68dc1f431af768da864180a [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.
scroggo@google.comf1754ec2013-06-28 21:32:00 +00005# Gyp for utils.
epoger@google.comae85aea2011-05-31 13:50:51 +00006{
epoger@google.comae85aea2011-05-31 13:50:51 +00007 'targets': [
8 {
9 'target_name': 'utils',
borenet@google.comefb1d772012-10-10 19:45:51 +000010 'product_name': 'skia_utils',
epoger@google.comae85aea2011-05-31 13:50:51 +000011 'type': 'static_library',
borenet@google.comefb1d772012-10-10 19:45:51 +000012 'standalone_static_library': 1,
bungeman@google.comb8f36552013-07-22 14:39:45 +000013 'dependencies': [
14 'core.gyp:*',
krajcevskie90c9002014-08-05 07:37:26 -070015 'etc1.gyp:libetc1',
bungeman@google.comb8f36552013-07-22 14:39:45 +000016 ],
egdanielea902d92014-06-04 10:37:06 -070017 'includes': [
18 'utils.gypi',
19 ],
epoger@google.comae85aea2011-05-31 13:50:51 +000020 'include_dirs': [
junov@chromium.org77eec242012-07-18 17:54:45 +000021 '../include/effects',
reed499abab2015-08-20 12:30:20 -070022 '../include/gpu',
bungeman@google.com8c6a4f22013-04-23 18:06:23 +000023 '../include/images',
commit-bot@chromium.org064779a2013-07-01 17:50:29 +000024 '../include/pathops',
junov@chromium.org77eec242012-07-18 17:54:45 +000025 '../include/pipe',
mtkleincd1f2da2015-07-28 08:55:14 -070026 '../include/private',
epoger@google.comae85aea2011-05-31 13:50:51 +000027 '../include/utils',
epoger@google.com0a030cd2011-06-02 19:52:14 +000028 '../include/utils/mac',
senorblanco@chromium.org907afca2011-06-01 20:55:45 +000029 '../include/utils/unix',
bungeman@google.com9df621d2011-06-23 21:43:52 +000030 '../include/utils/win',
junov@chromium.orgbaa02202013-01-24 14:38:23 +000031 '../src/core',
bsalomonf276ac52015-10-09 13:36:42 -070032 '../src/gpu',
bsalomon55812362015-06-10 08:49:28 -070033 '../src/image',
krajcevski630598c2014-07-14 12:00:04 -070034 '../src/opts',
bungeman@google.come8f05922012-08-16 16:13:40 +000035 '../src/utils',
epoger@google.comae85aea2011-05-31 13:50:51 +000036 ],
37 'sources': [
egdanielea902d92014-06-04 10:37:06 -070038 'utils.gypi', # Makes the gypi appear in IDEs (but does not modify the build).
epoger@google.comae85aea2011-05-31 13:50:51 +000039 ],
epoger@google.comae85aea2011-05-31 13:50:51 +000040 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +000041 [ 'skia_os == "mac"', {
epoger@google.comc39f1752011-06-03 17:52:12 +000042 'link_settings': {
43 'libraries': [
44 '$(SDKROOT)/System/Library/Frameworks/AGL.framework',
45 ],
46 },
caryclark@google.com5c83dcc2012-09-26 13:02:37 +000047 }],
48 [ 'skia_os in ["mac", "ios"]', {
bungeman@google.comfe5afe52011-06-24 13:58:17 +000049 'direct_dependent_settings': {
50 'include_dirs': [
51 '../include/utils/mac',
52 ],
53 },
epoger@google.com8846cb22011-07-01 20:20:07 +000054 },{ #else if 'skia_os != "mac"'
senorblanco@chromium.org907afca2011-06-01 20:55:45 +000055 'include_dirs!': [
bungeman@google.com9df621d2011-06-23 21:43:52 +000056 '../include/utils/mac',
57 ],
58 'sources!': [
59 '../include/utils/mac/SkCGUtils.h',
60 '../src/utils/mac/SkCreateCGImageRef.cpp',
senorblanco@chromium.org907afca2011-06-01 20:55:45 +000061 ],
bungeman@google.com63aab2f2011-06-01 16:15:43 +000062 }],
borenet@google.com05d550e2013-06-11 15:52:19 +000063 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
borenet@google.com05d550e2013-06-11 15:52:19 +000064 },{ #else if 'skia_os not in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]'
bungeman@google.com9df621d2011-06-23 21:43:52 +000065 'include_dirs!': [
66 '../include/utils/unix',
67 ],
epoger@google.comae85aea2011-05-31 13:50:51 +000068 }],
epoger@google.com8846cb22011-07-01 20:20:07 +000069 [ 'skia_os == "win"', {
bungeman@google.com9df621d2011-06-23 21:43:52 +000070 'direct_dependent_settings': {
71 'include_dirs': [
72 '../include/utils/win',
73 ],
74 },
bungeman@google.com55487522012-05-14 14:09:24 +000075 'sources!': [
76 '../src/utils/SkThreadUtils_pthread.cpp',
77 '../src/utils/SkThreadUtils_pthread.h',
bungeman@google.com55487522012-05-14 14:09:24 +000078 ],
epoger@google.com8846cb22011-07-01 20:20:07 +000079 },{ #else if 'skia_os != "win"'
bungeman@google.com9df621d2011-06-23 21:43:52 +000080 'include_dirs!': [
81 '../include/utils/win',
82 ],
bsalomon@google.combd7c6412011-12-01 16:34:28 +000083 'sources/': [ ['exclude', '_win.(h|cpp)$'],],
bungeman@google.com9df621d2011-06-23 21:43:52 +000084 'sources!': [
85 '../include/utils/win/SkAutoCoInitialize.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +000086 '../include/utils/win/SkHRESULT.h',
bungeman@google.com9df621d2011-06-23 21:43:52 +000087 '../include/utils/win/SkIStream.h',
88 '../include/utils/win/SkTScopedComPtr.h',
89 '../src/utils/win/SkAutoCoInitialize.cpp',
bungeman@google.com72cf4fc2014-03-21 22:48:32 +000090 '../src/utils/win/SkDWrite.h',
91 '../src/utils/win/SkDWrite.cpp',
bungeman@google.come8f05922012-08-16 16:13:40 +000092 '../src/utils/win/SkDWriteFontFileStream.cpp',
93 '../src/utils/win/SkDWriteFontFileStream.h',
94 '../src/utils/win/SkDWriteGeometrySink.cpp',
95 '../src/utils/win/SkDWriteGeometrySink.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +000096 '../src/utils/win/SkHRESULT.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +000097 '../src/utils/win/SkIStream.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +000098 ],
bungeman@google.com3b0a8da2011-06-02 15:38:06 +000099 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000100 ],
101 'direct_dependent_settings': {
102 'include_dirs': [
103 '../include/utils',
commit-bot@chromium.orgef57b7e2014-02-28 20:31:31 +0000104 '../src/utils',
epoger@google.comae85aea2011-05-31 13:50:51 +0000105 ],
106 },
107 },
tomhudsonf7edcde2015-03-23 12:51:20 -0700108 {
109 'target_name': 'android_utils',
110 'product_name': 'skia_android_utils',
111 'type': 'static_library',
112 'standalone_static_library': 1,
113 'dependencies': [
114 'core.gyp:*',
115 ],
116 'sources': [
117 '../src/utils/android/SkAndroidSDKCanvas.h',
118 '../src/utils/android/SkAndroidSDKCanvas.cpp',
119 ],
120 'direct_dependent_settings': {
121 'include_dirs': [
122 '../src/utils/android',
123 ],
124 },
125 },
epoger@google.comae85aea2011-05-31 13:50:51 +0000126 ],
127}