blob: 3171d36a2b72290c266fbe8709d2ff1482b337c2 [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',
bungeman@google.com8c6a4f22013-04-23 18:06:23 +000022 '../include/images',
commit-bot@chromium.org064779a2013-07-01 17:50:29 +000023 '../include/pathops',
junov@chromium.org77eec242012-07-18 17:54:45 +000024 '../include/pipe',
epoger@google.comae85aea2011-05-31 13:50:51 +000025 '../include/utils',
epoger@google.com0a030cd2011-06-02 19:52:14 +000026 '../include/utils/mac',
senorblanco@chromium.org907afca2011-06-01 20:55:45 +000027 '../include/utils/unix',
bungeman@google.com9df621d2011-06-23 21:43:52 +000028 '../include/utils/win',
junov@chromium.orgbaa02202013-01-24 14:38:23 +000029 '../src/core',
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',
epoger@google.comae85aea2011-05-31 13:50:51 +000033 ],
34 'sources': [
egdanielea902d92014-06-04 10:37:06 -070035 'utils.gypi', # Makes the gypi appear in IDEs (but does not modify the build).
epoger@google.comae85aea2011-05-31 13:50:51 +000036 ],
37 'sources!': [
bungeman@google.com63aab2f2011-06-01 16:15:43 +000038 '../src/utils/SDL/SkOSWindow_SDL.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000039 ],
40 '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 },
bungeman@google.com55487522012-05-14 14:09:24 +000054 'sources!': [
55 '../src/utils/SkThreadUtils_pthread_other.cpp',
56 ],
epoger@google.com8846cb22011-07-01 20:20:07 +000057 },{ #else if 'skia_os != "mac"'
senorblanco@chromium.org907afca2011-06-01 20:55:45 +000058 'include_dirs!': [
bungeman@google.com9df621d2011-06-23 21:43:52 +000059 '../include/utils/mac',
60 ],
61 'sources!': [
62 '../include/utils/mac/SkCGUtils.h',
63 '../src/utils/mac/SkCreateCGImageRef.cpp',
bungeman@google.com55487522012-05-14 14:09:24 +000064 '../src/utils/SkThreadUtils_pthread_mach.cpp',
senorblanco@chromium.org907afca2011-06-01 20:55:45 +000065 ],
bungeman@google.com63aab2f2011-06-01 16:15:43 +000066 }],
borenet@google.com05d550e2013-06-11 15:52:19 +000067 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
bungeman@google.com55487522012-05-14 14:09:24 +000068 'sources!': [
69 '../src/utils/SkThreadUtils_pthread_other.cpp',
70 ],
borenet@google.com05d550e2013-06-11 15:52:19 +000071 },{ #else if 'skia_os not in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]'
bungeman@google.com9df621d2011-06-23 21:43:52 +000072 'include_dirs!': [
73 '../include/utils/unix',
74 ],
bungeman@google.com55487522012-05-14 14:09:24 +000075 'sources!': [
76 '../src/utils/SkThreadUtils_pthread_linux.cpp',
77 ],
epoger@google.comae85aea2011-05-31 13:50:51 +000078 }],
epoger@google.com8846cb22011-07-01 20:20:07 +000079 [ 'skia_os == "win"', {
bungeman@google.com9df621d2011-06-23 21:43:52 +000080 'direct_dependent_settings': {
81 'include_dirs': [
82 '../include/utils/win',
83 ],
84 },
bungeman@google.com55487522012-05-14 14:09:24 +000085 'sources!': [
86 '../src/utils/SkThreadUtils_pthread.cpp',
87 '../src/utils/SkThreadUtils_pthread.h',
88 '../src/utils/SkThreadUtils_pthread_other.cpp',
89 ],
epoger@google.com8846cb22011-07-01 20:20:07 +000090 },{ #else if 'skia_os != "win"'
bungeman@google.com9df621d2011-06-23 21:43:52 +000091 'include_dirs!': [
92 '../include/utils/win',
93 ],
bsalomon@google.combd7c6412011-12-01 16:34:28 +000094 'sources/': [ ['exclude', '_win.(h|cpp)$'],],
bungeman@google.com9df621d2011-06-23 21:43:52 +000095 'sources!': [
96 '../include/utils/win/SkAutoCoInitialize.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +000097 '../include/utils/win/SkHRESULT.h',
bungeman@google.com9df621d2011-06-23 21:43:52 +000098 '../include/utils/win/SkIStream.h',
99 '../include/utils/win/SkTScopedComPtr.h',
100 '../src/utils/win/SkAutoCoInitialize.cpp',
bungeman@google.com72cf4fc2014-03-21 22:48:32 +0000101 '../src/utils/win/SkDWrite.h',
102 '../src/utils/win/SkDWrite.cpp',
bungeman@google.come8f05922012-08-16 16:13:40 +0000103 '../src/utils/win/SkDWriteFontFileStream.cpp',
104 '../src/utils/win/SkDWriteFontFileStream.h',
105 '../src/utils/win/SkDWriteGeometrySink.cpp',
106 '../src/utils/win/SkDWriteGeometrySink.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000107 '../src/utils/win/SkHRESULT.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000108 '../src/utils/win/SkIStream.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000109 ],
bungeman@google.com3b0a8da2011-06-02 15:38:06 +0000110 }],
commit-bot@chromium.org23a91212013-11-12 17:44:28 +0000111 ['skia_run_pdfviewer_in_gm', {
112 'defines': [
113 'SK_BUILD_NATIVE_PDF_RENDERER',
114 ],
115 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000116 ],
117 'direct_dependent_settings': {
118 'include_dirs': [
119 '../include/utils',
commit-bot@chromium.orgef57b7e2014-02-28 20:31:31 +0000120 '../src/utils',
epoger@google.comae85aea2011-05-31 13:50:51 +0000121 ],
122 },
123 },
tomhudsonf7edcde2015-03-23 12:51:20 -0700124 {
125 'target_name': 'android_utils',
126 'product_name': 'skia_android_utils',
127 'type': 'static_library',
128 'standalone_static_library': 1,
129 'dependencies': [
130 'core.gyp:*',
131 ],
132 'sources': [
133 '../src/utils/android/SkAndroidSDKCanvas.h',
134 '../src/utils/android/SkAndroidSDKCanvas.cpp',
tomhudson573ae012015-03-27 12:22:01 -0700135 '../src/utils/android/SkHwuiRenderer.h',
136 '../src/utils/android/SkHwuiRenderer.cpp',
tomhudsonf7edcde2015-03-23 12:51:20 -0700137 ],
138 'direct_dependent_settings': {
139 'include_dirs': [
140 '../src/utils/android',
141 ],
142 },
143 },
epoger@google.comae85aea2011-05-31 13:50:51 +0000144 ],
145}