blob: b6ce7fde1bc1e3db7bf2b4292c7d6a5fdc20ab69 [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',
mtkleincd1f2da2015-07-28 08:55:14 -070025 '../include/private',
epoger@google.comae85aea2011-05-31 13:50:51 +000026 '../include/utils',
epoger@google.com0a030cd2011-06-02 19:52:14 +000027 '../include/utils/mac',
junov@chromium.orgbaa02202013-01-24 14:38:23 +000028 '../src/core',
bsalomonf276ac52015-10-09 13:36:42 -070029 '../src/gpu',
bsalomon55812362015-06-10 08:49:28 -070030 '../src/image',
krajcevski630598c2014-07-14 12:00:04 -070031 '../src/opts',
bungeman@google.come8f05922012-08-16 16:13:40 +000032 '../src/utils',
bungeman2853f002016-06-16 15:31:42 -070033 '../src/utils/win',
epoger@google.comae85aea2011-05-31 13:50:51 +000034 ],
35 'sources': [
egdanielea902d92014-06-04 10:37:06 -070036 'utils.gypi', # Makes the gypi appear in IDEs (but does not modify the build).
epoger@google.comae85aea2011-05-31 13:50:51 +000037 ],
epoger@google.comae85aea2011-05-31 13:50:51 +000038 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +000039 [ 'skia_os == "mac"', {
epoger@google.comc39f1752011-06-03 17:52:12 +000040 'link_settings': {
41 'libraries': [
42 '$(SDKROOT)/System/Library/Frameworks/AGL.framework',
43 ],
44 },
caryclark@google.com5c83dcc2012-09-26 13:02:37 +000045 }],
46 [ 'skia_os in ["mac", "ios"]', {
bungeman@google.comfe5afe52011-06-24 13:58:17 +000047 'direct_dependent_settings': {
48 'include_dirs': [
49 '../include/utils/mac',
50 ],
51 },
epoger@google.com8846cb22011-07-01 20:20:07 +000052 },{ #else if 'skia_os != "mac"'
senorblanco@chromium.org907afca2011-06-01 20:55:45 +000053 'include_dirs!': [
bungeman@google.com9df621d2011-06-23 21:43:52 +000054 '../include/utils/mac',
55 ],
56 'sources!': [
57 '../include/utils/mac/SkCGUtils.h',
58 '../src/utils/mac/SkCreateCGImageRef.cpp',
senorblanco@chromium.org907afca2011-06-01 20:55:45 +000059 ],
bungeman@google.com63aab2f2011-06-01 16:15:43 +000060 }],
epoger@google.com8846cb22011-07-01 20:20:07 +000061 [ 'skia_os == "win"', {
bungeman@google.com9df621d2011-06-23 21:43:52 +000062 'direct_dependent_settings': {
63 'include_dirs': [
bungeman2853f002016-06-16 15:31:42 -070064 '../src/utils/win',
bungeman@google.com9df621d2011-06-23 21:43:52 +000065 ],
66 },
bungeman@google.com55487522012-05-14 14:09:24 +000067 'sources!': [
68 '../src/utils/SkThreadUtils_pthread.cpp',
69 '../src/utils/SkThreadUtils_pthread.h',
bungeman@google.com55487522012-05-14 14:09:24 +000070 ],
epoger@google.com8846cb22011-07-01 20:20:07 +000071 },{ #else if 'skia_os != "win"'
bungeman@google.com9df621d2011-06-23 21:43:52 +000072 'include_dirs!': [
bungeman2853f002016-06-16 15:31:42 -070073 '../src/utils/win',
bungeman@google.com9df621d2011-06-23 21:43:52 +000074 ],
bsalomon@google.combd7c6412011-12-01 16:34:28 +000075 'sources/': [ ['exclude', '_win.(h|cpp)$'],],
bungeman@google.com9df621d2011-06-23 21:43:52 +000076 'sources!': [
bungeman2853f002016-06-16 15:31:42 -070077 '../src/utils/win/SkAutoCoInitialize.h',
bungeman@google.com9df621d2011-06-23 21:43:52 +000078 '../src/utils/win/SkAutoCoInitialize.cpp',
bungeman@google.com72cf4fc2014-03-21 22:48:32 +000079 '../src/utils/win/SkDWrite.h',
80 '../src/utils/win/SkDWrite.cpp',
bungeman@google.come8f05922012-08-16 16:13:40 +000081 '../src/utils/win/SkDWriteFontFileStream.cpp',
82 '../src/utils/win/SkDWriteFontFileStream.h',
83 '../src/utils/win/SkDWriteGeometrySink.cpp',
84 '../src/utils/win/SkDWriteGeometrySink.h',
bungeman2853f002016-06-16 15:31:42 -070085 '../src/utils/win/SkHRESULT.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +000086 '../src/utils/win/SkHRESULT.cpp',
bungeman2853f002016-06-16 15:31:42 -070087 '../src/utils/win/SkIStream.h',
bungeman@google.com9df621d2011-06-23 21:43:52 +000088 '../src/utils/win/SkIStream.cpp',
bungeman2853f002016-06-16 15:31:42 -070089 '../src/utils/win/SkTScopedComPtr.h',
bungeman@google.com9df621d2011-06-23 21:43:52 +000090 ],
bungeman@google.com3b0a8da2011-06-02 15:38:06 +000091 }],
epoger@google.comae85aea2011-05-31 13:50:51 +000092 ],
93 'direct_dependent_settings': {
94 'include_dirs': [
95 '../include/utils',
commit-bot@chromium.orgef57b7e2014-02-28 20:31:31 +000096 '../src/utils',
epoger@google.comae85aea2011-05-31 13:50:51 +000097 ],
98 },
99 },
epoger@google.comae85aea2011-05-31 13:50:51 +0000100 ],
101}