blob: efeb3d2335994b9e52e7646382dd498b43f49ad1 [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.
msarett6d0e7b22015-03-30 07:52:52 -07005
scroggo@google.com73e4d572013-05-20 22:15:32 +00006# GYP file for images project.
scroggo@google.com4c6adf92013-04-17 21:07:55 +00007{
epoger@google.comae85aea2011-05-31 13:50:51 +00008 'targets': [
9 {
10 'target_name': 'images',
borenet@google.comefb1d772012-10-10 19:45:51 +000011 'product_name': 'skia_images',
epoger@google.comae85aea2011-05-31 13:50:51 +000012 'type': 'static_library',
borenet@google.comefb1d772012-10-10 19:45:51 +000013 'standalone_static_library': 1,
bungeman@google.com9df621d2011-06-23 21:43:52 +000014 'dependencies': [
bungeman@google.comb8f36552013-07-22 14:39:45 +000015 'core.gyp:*',
msarettb747b902015-11-06 11:15:49 -080016 'libjpeg-turbo-selector.gyp:libjpeg-turbo-selector',
robertphillips@google.com8cf81e02014-05-22 18:40:29 +000017 'etc1.gyp:libetc1',
krajcevski99ffe242014-06-03 13:04:35 -070018 'ktx.gyp:libSkKTX',
msarett36931c22016-08-16 15:11:24 -070019 'libpng.gyp:libpng',
commit-bot@chromium.orga936e372013-03-14 14:42:18 +000020 'libwebp.gyp:libwebp',
bungeman@google.com9df621d2011-06-23 21:43:52 +000021 'utils.gyp:utils',
22 ],
epoger@google.comae85aea2011-05-31 13:50:51 +000023 'include_dirs': [
epoger@google.comae85aea2011-05-31 13:50:51 +000024 '../include/images',
mtkleincd1f2da2015-07-28 08:55:14 -070025 '../include/private',
halcanary@google.comad04eb42013-11-21 15:32:08 +000026 '../src/lazy',
scroggo@google.com39edf4c2013-04-25 17:33:51 +000027 # for access to SkErrorInternals.h
28 '../src/core/',
scroggo@google.comf8d7d272013-02-22 21:38:35 +000029 # for access to SkImagePriv.h
30 '../src/image/',
epoger@google.comae85aea2011-05-31 13:50:51 +000031 ],
32 'sources': [
msarettc1d03122016-03-25 08:58:55 -070033 '../src/images/SkKTXImageEncoder.cpp',
34 '../src/images/SkWEBPImageEncoder.cpp',
35 '../src/images/SkJPEGImageEncoder.cpp',
36 '../src/images/SkPNGImageEncoder.cpp',
scroggo@google.comd4adfa32014-02-05 16:35:12 +000037
epoger@google.comae85aea2011-05-31 13:50:51 +000038 '../src/images/SkImageEncoder.cpp',
msarettc1d03122016-03-25 08:58:55 -070039 '../src/images/SkJPEGWriteUtility.cpp',
bungeman@google.com242bb892011-06-22 20:42:34 +000040
msarettc1d03122016-03-25 08:58:55 -070041 '../src/ports/SkImageEncoder_CG.cpp',
42 '../src/ports/SkImageEncoder_WIC.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000043 ],
44 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +000045 [ 'skia_os == "win"', {
bsalomon@google.com897e66c2011-11-21 21:04:06 +000046 'link_settings': {
47 'libraries': [
bungeman@google.com24339aa2013-12-02 19:54:33 +000048 '-lwindowscodecs.lib',
bsalomon@google.com897e66c2011-11-21 21:04:06 +000049 ],
50 },
epoger@google.com8846cb22011-07-01 20:20:07 +000051 },{ #else if skia_os != win
bungeman@google.com242bb892011-06-22 20:42:34 +000052 'sources!': [
msarettc1d03122016-03-25 08:58:55 -070053 '../src/ports/SkImageEncoder_WIC.cpp',
bungeman@google.com242bb892011-06-22 20:42:34 +000054 ],
epoger@google.comae85aea2011-05-31 13:50:51 +000055 }],
caryclark@google.com35f5ac92012-09-18 15:41:18 +000056 [ 'skia_os in ["mac", "ios"]', {
epoger@google.com8846cb22011-07-01 20:20:07 +000057 },{ #else if skia_os != mac
bungeman@google.com242bb892011-06-22 20:42:34 +000058 'sources!': [
msarettc1d03122016-03-25 08:58:55 -070059 '../src/ports/SkImageEncoder_CG.cpp',
bungeman@google.com242bb892011-06-22 20:42:34 +000060 ],
epoger@google.comae85aea2011-05-31 13:50:51 +000061 }],
djsollen@google.com58629292011-11-03 13:08:29 +000062 [ 'skia_os == "android"', {
djsollen@google.com528a5562013-02-01 15:57:13 +000063 'include_dirs': [
64 '../src/utils',
djsollen@google.com58629292011-11-03 13:08:29 +000065 ],
msarettb747b902015-11-06 11:15:49 -080066 'dependencies': [
67 'libpng.gyp:libpng',
68 ],
scroggo@google.comd4adfa32014-02-05 16:35:12 +000069 'conditions': [
msarettb747b902015-11-06 11:15:49 -080070 [ 'skia_android_framework == 1', {
djsollen38e44b02014-08-28 05:41:21 -070071 # The android framework disables these decoders as they are of little use to
72 # Java applications that can't take advantage of the compressed formats.
73 'sources!': [
msarettc1d03122016-03-25 08:58:55 -070074 '../src/images/SkKTXImageEncoder.cpp',
scroggo@google.comd4adfa32014-02-05 16:35:12 +000075 ],
76 }],
djsollen@google.combcc6d7d2013-07-23 15:51:12 +000077 ],
djsollen@google.com58629292011-11-03 13:08:29 +000078 }],
caryclark@google.com35f5ac92012-09-18 15:41:18 +000079 [ 'skia_os == "ios"', {
80 'include_dirs': [
81 '../include/utils/mac',
82 ],
83 }],
epoger@google.comae85aea2011-05-31 13:50:51 +000084 ],
85 'direct_dependent_settings': {
86 'include_dirs': [
87 '../include/images',
epoger@google.comae85aea2011-05-31 13:50:51 +000088 ],
89 },
90 },
91 ],
92}