blob: d5b2ef7cdd7b1dc2007c3aa4492ca8b2c0928b48 [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',
krajcevski630598c2014-07-14 12:00:04 -070030 '../src/opts',
bungeman@google.come8f05922012-08-16 16:13:40 +000031 '../src/utils',
epoger@google.comae85aea2011-05-31 13:50:51 +000032 ],
33 'sources': [
egdanielea902d92014-06-04 10:37:06 -070034 'utils.gypi', # Makes the gypi appear in IDEs (but does not modify the build).
epoger@google.comae85aea2011-05-31 13:50:51 +000035 ],
36 'sources!': [
bungeman@google.com63aab2f2011-06-01 16:15:43 +000037 '../src/utils/SDL/SkOSWindow_SDL.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000038 ],
39 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +000040 [ 'skia_os == "mac"', {
epoger@google.comc39f1752011-06-03 17:52:12 +000041 'link_settings': {
42 'libraries': [
43 '$(SDKROOT)/System/Library/Frameworks/AGL.framework',
44 ],
45 },
caryclark@google.com5c83dcc2012-09-26 13:02:37 +000046 }],
47 [ 'skia_os in ["mac", "ios"]', {
bungeman@google.comfe5afe52011-06-24 13:58:17 +000048 'direct_dependent_settings': {
49 'include_dirs': [
50 '../include/utils/mac',
51 ],
52 },
bungeman@google.com55487522012-05-14 14:09:24 +000053 'sources!': [
54 '../src/utils/SkThreadUtils_pthread_other.cpp',
55 ],
epoger@google.com8846cb22011-07-01 20:20:07 +000056 },{ #else if 'skia_os != "mac"'
senorblanco@chromium.org907afca2011-06-01 20:55:45 +000057 'include_dirs!': [
bungeman@google.com9df621d2011-06-23 21:43:52 +000058 '../include/utils/mac',
59 ],
60 'sources!': [
61 '../include/utils/mac/SkCGUtils.h',
62 '../src/utils/mac/SkCreateCGImageRef.cpp',
bungeman@google.com55487522012-05-14 14:09:24 +000063 '../src/utils/SkThreadUtils_pthread_mach.cpp',
senorblanco@chromium.org907afca2011-06-01 20:55:45 +000064 ],
bungeman@google.com63aab2f2011-06-01 16:15:43 +000065 }],
borenet@google.com05d550e2013-06-11 15:52:19 +000066 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
bungeman@google.com55487522012-05-14 14:09:24 +000067 'sources!': [
68 '../src/utils/SkThreadUtils_pthread_other.cpp',
69 ],
borenet@google.com05d550e2013-06-11 15:52:19 +000070 },{ #else if 'skia_os not in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]'
bungeman@google.com9df621d2011-06-23 21:43:52 +000071 'include_dirs!': [
72 '../include/utils/unix',
73 ],
bungeman@google.com55487522012-05-14 14:09:24 +000074 'sources!': [
75 '../src/utils/SkThreadUtils_pthread_linux.cpp',
76 ],
epoger@google.comae85aea2011-05-31 13:50:51 +000077 }],
epoger@google.com8846cb22011-07-01 20:20:07 +000078 [ 'skia_os == "win"', {
bungeman@google.com9df621d2011-06-23 21:43:52 +000079 'direct_dependent_settings': {
80 'include_dirs': [
81 '../include/utils/win',
82 ],
83 },
bungeman@google.com55487522012-05-14 14:09:24 +000084 'sources!': [
85 '../src/utils/SkThreadUtils_pthread.cpp',
86 '../src/utils/SkThreadUtils_pthread.h',
87 '../src/utils/SkThreadUtils_pthread_other.cpp',
88 ],
epoger@google.com8846cb22011-07-01 20:20:07 +000089 },{ #else if 'skia_os != "win"'
bungeman@google.com9df621d2011-06-23 21:43:52 +000090 'include_dirs!': [
91 '../include/utils/win',
92 ],
bsalomon@google.combd7c6412011-12-01 16:34:28 +000093 'sources/': [ ['exclude', '_win.(h|cpp)$'],],
bungeman@google.com9df621d2011-06-23 21:43:52 +000094 'sources!': [
95 '../include/utils/win/SkAutoCoInitialize.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +000096 '../include/utils/win/SkHRESULT.h',
bungeman@google.com9df621d2011-06-23 21:43:52 +000097 '../include/utils/win/SkIStream.h',
98 '../include/utils/win/SkTScopedComPtr.h',
99 '../src/utils/win/SkAutoCoInitialize.cpp',
bungeman@google.com72cf4fc2014-03-21 22:48:32 +0000100 '../src/utils/win/SkDWrite.h',
101 '../src/utils/win/SkDWrite.cpp',
bungeman@google.come8f05922012-08-16 16:13:40 +0000102 '../src/utils/win/SkDWriteFontFileStream.cpp',
103 '../src/utils/win/SkDWriteFontFileStream.h',
104 '../src/utils/win/SkDWriteGeometrySink.cpp',
105 '../src/utils/win/SkDWriteGeometrySink.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000106 '../src/utils/win/SkHRESULT.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000107 '../src/utils/win/SkIStream.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000108 ],
bungeman@google.com3b0a8da2011-06-02 15:38:06 +0000109 }],
commit-bot@chromium.org23a91212013-11-12 17:44:28 +0000110 ['skia_run_pdfviewer_in_gm', {
111 'defines': [
112 'SK_BUILD_NATIVE_PDF_RENDERER',
113 ],
114 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000115 ],
116 'direct_dependent_settings': {
117 'include_dirs': [
118 '../include/utils',
commit-bot@chromium.orgef57b7e2014-02-28 20:31:31 +0000119 '../src/utils',
epoger@google.comae85aea2011-05-31 13:50:51 +0000120 ],
121 },
122 },
tomhudsonf7edcde2015-03-23 12:51:20 -0700123 {
124 'target_name': 'android_utils',
125 'product_name': 'skia_android_utils',
126 'type': 'static_library',
127 'standalone_static_library': 1,
128 'dependencies': [
129 'core.gyp:*',
130 ],
131 'sources': [
132 '../src/utils/android/SkAndroidSDKCanvas.h',
133 '../src/utils/android/SkAndroidSDKCanvas.cpp',
tomhudson573ae012015-03-27 12:22:01 -0700134 '../src/utils/android/SkHwuiRenderer.h',
135 '../src/utils/android/SkHwuiRenderer.cpp',
tomhudsonf7edcde2015-03-23 12:51:20 -0700136 ],
137 'direct_dependent_settings': {
138 'include_dirs': [
139 '../src/utils/android',
140 ],
141 },
142 },
epoger@google.comae85aea2011-05-31 13:50:51 +0000143 ],
144}