blob: c01374c3767e0f796e31633b6612c68f2ea4ad66 [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 ],
epoger@google.comae85aea2011-05-31 13:50:51 +000017 'include_dirs': [
junov@chromium.org77eec242012-07-18 17:54:45 +000018 '../include/effects',
reed499abab2015-08-20 12:30:20 -070019 '../include/gpu',
bungeman@google.com8c6a4f22013-04-23 18:06:23 +000020 '../include/images',
commit-bot@chromium.org064779a2013-07-01 17:50:29 +000021 '../include/pathops',
mtkleincd1f2da2015-07-28 08:55:14 -070022 '../include/private',
epoger@google.comae85aea2011-05-31 13:50:51 +000023 '../include/utils',
epoger@google.com0a030cd2011-06-02 19:52:14 +000024 '../include/utils/mac',
junov@chromium.orgbaa02202013-01-24 14:38:23 +000025 '../src/core',
bsalomonf276ac52015-10-09 13:36:42 -070026 '../src/gpu',
bsalomon55812362015-06-10 08:49:28 -070027 '../src/image',
krajcevski630598c2014-07-14 12:00:04 -070028 '../src/opts',
bungeman@google.come8f05922012-08-16 16:13:40 +000029 '../src/utils',
bungeman2853f002016-06-16 15:31:42 -070030 '../src/utils/win',
epoger@google.comae85aea2011-05-31 13:50:51 +000031 ],
32 'sources': [
Mike Kleina5fb6152016-10-26 14:17:04 -040033 '<!@(python read_gni.py ../gn/utils.gni skia_utils_sources)',
epoger@google.comae85aea2011-05-31 13:50:51 +000034 ],
epoger@google.comae85aea2011-05-31 13:50:51 +000035 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +000036 [ 'skia_os == "mac"', {
epoger@google.comc39f1752011-06-03 17:52:12 +000037 'link_settings': {
38 'libraries': [
39 '$(SDKROOT)/System/Library/Frameworks/AGL.framework',
40 ],
41 },
caryclark@google.com5c83dcc2012-09-26 13:02:37 +000042 }],
43 [ 'skia_os in ["mac", "ios"]', {
bungeman@google.comfe5afe52011-06-24 13:58:17 +000044 'direct_dependent_settings': {
45 'include_dirs': [
46 '../include/utils/mac',
47 ],
48 },
epoger@google.com8846cb22011-07-01 20:20:07 +000049 },{ #else if 'skia_os != "mac"'
senorblanco@chromium.org907afca2011-06-01 20:55:45 +000050 'include_dirs!': [
bungeman@google.com9df621d2011-06-23 21:43:52 +000051 '../include/utils/mac',
52 ],
53 'sources!': [
54 '../include/utils/mac/SkCGUtils.h',
55 '../src/utils/mac/SkCreateCGImageRef.cpp',
senorblanco@chromium.org907afca2011-06-01 20:55:45 +000056 ],
bungeman@google.com63aab2f2011-06-01 16:15:43 +000057 }],
epoger@google.com8846cb22011-07-01 20:20:07 +000058 [ 'skia_os == "win"', {
bungeman@google.com9df621d2011-06-23 21:43:52 +000059 'direct_dependent_settings': {
60 'include_dirs': [
bungeman2853f002016-06-16 15:31:42 -070061 '../src/utils/win',
bungeman@google.com9df621d2011-06-23 21:43:52 +000062 ],
63 },
bungeman@google.com55487522012-05-14 14:09:24 +000064 'sources!': [
65 '../src/utils/SkThreadUtils_pthread.cpp',
66 '../src/utils/SkThreadUtils_pthread.h',
bungeman@google.com55487522012-05-14 14:09:24 +000067 ],
epoger@google.com8846cb22011-07-01 20:20:07 +000068 },{ #else if 'skia_os != "win"'
bungeman@google.com9df621d2011-06-23 21:43:52 +000069 'include_dirs!': [
bungeman2853f002016-06-16 15:31:42 -070070 '../src/utils/win',
bungeman@google.com9df621d2011-06-23 21:43:52 +000071 ],
bsalomon@google.combd7c6412011-12-01 16:34:28 +000072 'sources/': [ ['exclude', '_win.(h|cpp)$'],],
bungeman@google.com9df621d2011-06-23 21:43:52 +000073 'sources!': [
bungeman2853f002016-06-16 15:31:42 -070074 '../src/utils/win/SkAutoCoInitialize.h',
bungeman@google.com9df621d2011-06-23 21:43:52 +000075 '../src/utils/win/SkAutoCoInitialize.cpp',
bungeman@google.com72cf4fc2014-03-21 22:48:32 +000076 '../src/utils/win/SkDWrite.h',
77 '../src/utils/win/SkDWrite.cpp',
bungeman@google.come8f05922012-08-16 16:13:40 +000078 '../src/utils/win/SkDWriteFontFileStream.cpp',
79 '../src/utils/win/SkDWriteFontFileStream.h',
80 '../src/utils/win/SkDWriteGeometrySink.cpp',
81 '../src/utils/win/SkDWriteGeometrySink.h',
bungeman2853f002016-06-16 15:31:42 -070082 '../src/utils/win/SkHRESULT.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +000083 '../src/utils/win/SkHRESULT.cpp',
bungeman2853f002016-06-16 15:31:42 -070084 '../src/utils/win/SkIStream.h',
bungeman@google.com9df621d2011-06-23 21:43:52 +000085 '../src/utils/win/SkIStream.cpp',
bungeman2853f002016-06-16 15:31:42 -070086 '../src/utils/win/SkTScopedComPtr.h',
bungeman@google.com9df621d2011-06-23 21:43:52 +000087 ],
bungeman@google.com3b0a8da2011-06-02 15:38:06 +000088 }],
epoger@google.comae85aea2011-05-31 13:50:51 +000089 ],
90 'direct_dependent_settings': {
91 'include_dirs': [
92 '../include/utils',
commit-bot@chromium.orgef57b7e2014-02-28 20:31:31 +000093 '../src/utils',
epoger@google.comae85aea2011-05-31 13:50:51 +000094 ],
95 },
96 },
epoger@google.comae85aea2011-05-31 13:50:51 +000097 ],
98}