blob: 19816f88e4e6ef5a7ef05afab2af8f053241e4b2 [file] [log] [blame]
scroggo@google.comf1754ec2013-06-28 21:32:00 +00001# Gyp for utils.
epoger@google.comae85aea2011-05-31 13:50:51 +00002{
epoger@google.comae85aea2011-05-31 13:50:51 +00003 'targets': [
4 {
5 'target_name': 'utils',
borenet@google.comefb1d772012-10-10 19:45:51 +00006 'product_name': 'skia_utils',
epoger@google.comae85aea2011-05-31 13:50:51 +00007 'type': 'static_library',
borenet@google.comefb1d772012-10-10 19:45:51 +00008 'standalone_static_library': 1,
bungeman@google.comb8f36552013-07-22 14:39:45 +00009 'dependencies': [
10 'core.gyp:*',
krajcevskie90c9002014-08-05 07:37:26 -070011 'etc1.gyp:libetc1',
bungeman@google.comb8f36552013-07-22 14:39:45 +000012 ],
egdanielea902d92014-06-04 10:37:06 -070013 'includes': [
14 'utils.gypi',
15 ],
epoger@google.comae85aea2011-05-31 13:50:51 +000016 'include_dirs': [
junov@chromium.org77eec242012-07-18 17:54:45 +000017 '../include/effects',
bungeman@google.com8c6a4f22013-04-23 18:06:23 +000018 '../include/images',
commit-bot@chromium.org064779a2013-07-01 17:50:29 +000019 '../include/pathops',
junov@chromium.org77eec242012-07-18 17:54:45 +000020 '../include/pipe',
epoger@google.comae85aea2011-05-31 13:50:51 +000021 '../include/utils',
epoger@google.com0a030cd2011-06-02 19:52:14 +000022 '../include/utils/mac',
senorblanco@chromium.org907afca2011-06-01 20:55:45 +000023 '../include/utils/unix',
bungeman@google.com9df621d2011-06-23 21:43:52 +000024 '../include/utils/win',
junov@chromium.orgbaa02202013-01-24 14:38:23 +000025 '../src/core',
krajcevski630598c2014-07-14 12:00:04 -070026 '../src/opts',
bungeman@google.come8f05922012-08-16 16:13:40 +000027 '../src/utils',
epoger@google.comae85aea2011-05-31 13:50:51 +000028 ],
29 'sources': [
egdanielea902d92014-06-04 10:37:06 -070030 'utils.gypi', # Makes the gypi appear in IDEs (but does not modify the build).
epoger@google.comae85aea2011-05-31 13:50:51 +000031 ],
32 'sources!': [
bungeman@google.com63aab2f2011-06-01 16:15:43 +000033 '../src/utils/SDL/SkOSWindow_SDL.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000034 ],
35 '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 },
bungeman@google.com55487522012-05-14 14:09:24 +000049 'sources!': [
50 '../src/utils/SkThreadUtils_pthread_other.cpp',
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',
bungeman@google.com55487522012-05-14 14:09:24 +000059 '../src/utils/SkThreadUtils_pthread_mach.cpp',
senorblanco@chromium.org907afca2011-06-01 20:55:45 +000060 ],
bungeman@google.com63aab2f2011-06-01 16:15:43 +000061 }],
borenet@google.com05d550e2013-06-11 15:52:19 +000062 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
bungeman@google.com55487522012-05-14 14:09:24 +000063 'sources!': [
64 '../src/utils/SkThreadUtils_pthread_other.cpp',
65 ],
borenet@google.com05d550e2013-06-11 15:52:19 +000066 },{ #else if 'skia_os not in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]'
bungeman@google.com9df621d2011-06-23 21:43:52 +000067 'include_dirs!': [
68 '../include/utils/unix',
69 ],
bungeman@google.com55487522012-05-14 14:09:24 +000070 'sources!': [
71 '../src/utils/SkThreadUtils_pthread_linux.cpp',
72 ],
epoger@google.comae85aea2011-05-31 13:50:51 +000073 }],
epoger@google.com8846cb22011-07-01 20:20:07 +000074 [ 'skia_os == "win"', {
bungeman@google.com9df621d2011-06-23 21:43:52 +000075 'direct_dependent_settings': {
76 'include_dirs': [
77 '../include/utils/win',
78 ],
79 },
bungeman@google.com55487522012-05-14 14:09:24 +000080 'sources!': [
81 '../src/utils/SkThreadUtils_pthread.cpp',
82 '../src/utils/SkThreadUtils_pthread.h',
83 '../src/utils/SkThreadUtils_pthread_other.cpp',
84 ],
epoger@google.com8846cb22011-07-01 20:20:07 +000085 },{ #else if 'skia_os != "win"'
bungeman@google.com9df621d2011-06-23 21:43:52 +000086 'include_dirs!': [
87 '../include/utils/win',
88 ],
bsalomon@google.combd7c6412011-12-01 16:34:28 +000089 'sources/': [ ['exclude', '_win.(h|cpp)$'],],
bungeman@google.com9df621d2011-06-23 21:43:52 +000090 'sources!': [
91 '../include/utils/win/SkAutoCoInitialize.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +000092 '../include/utils/win/SkHRESULT.h',
bungeman@google.com9df621d2011-06-23 21:43:52 +000093 '../include/utils/win/SkIStream.h',
94 '../include/utils/win/SkTScopedComPtr.h',
95 '../src/utils/win/SkAutoCoInitialize.cpp',
bungeman@google.com72cf4fc2014-03-21 22:48:32 +000096 '../src/utils/win/SkDWrite.h',
97 '../src/utils/win/SkDWrite.cpp',
bungeman@google.come8f05922012-08-16 16:13:40 +000098 '../src/utils/win/SkDWriteFontFileStream.cpp',
99 '../src/utils/win/SkDWriteFontFileStream.h',
100 '../src/utils/win/SkDWriteGeometrySink.cpp',
101 '../src/utils/win/SkDWriteGeometrySink.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000102 '../src/utils/win/SkHRESULT.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000103 '../src/utils/win/SkIStream.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000104 ],
bungeman@google.com3b0a8da2011-06-02 15:38:06 +0000105 }],
borenet@google.com7158e6a2012-11-01 17:43:44 +0000106 [ 'skia_os == "nacl"', {
borenet@google.coma98eb912012-09-04 21:09:40 +0000107 'sources': [
108 '../src/utils/SkThreadUtils_pthread_other.cpp',
109 ],
110 'sources!': [
111 '../src/utils/SkThreadUtils_pthread_linux.cpp',
112 ],
113 }],
commit-bot@chromium.org23a91212013-11-12 17:44:28 +0000114 ['skia_run_pdfviewer_in_gm', {
115 'defines': [
116 'SK_BUILD_NATIVE_PDF_RENDERER',
117 ],
118 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000119 ],
120 'direct_dependent_settings': {
121 'include_dirs': [
122 '../include/utils',
commit-bot@chromium.orgef57b7e2014-02-28 20:31:31 +0000123 '../src/utils',
epoger@google.comae85aea2011-05-31 13:50:51 +0000124 ],
125 },
126 },
epoger@google.comae85aea2011-05-31 13:50:51 +0000127 ],
128}