blob: b34c85e7d94543d355a778eadbc9de6d03cd88f6 [file] [log] [blame]
scroggo648ac532015-03-25 07:16:13 -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.
scroggo3e562272015-03-25 10:22:41 -07005# Copyright 2015 Google Inc.
6#
7# Use of this source code is governed by a BSD-style license that can be
8# found in the LICENSE file.
scroggo648ac532015-03-25 07:16:13 -07009
scroggof24f2242015-03-03 08:59:20 -080010# GYP file for codec project.
11{
12 'targets': [
13 {
14 'target_name': 'codec',
15 'product_name': 'skia_codec',
16 'type': 'static_library',
17 'standalone_static_library': 1,
18 'dependencies': [
19 'core.gyp:*',
msarett8c8f22a2015-04-01 06:58:48 -070020 'giflib.gyp:giflib',
scroggo6f5e6192015-06-18 12:53:43 -070021 'libwebp.gyp:libwebp',
scroggof24f2242015-03-03 08:59:20 -080022 ],
scroggo05245902015-03-25 11:11:52 -070023 'cflags':[
24 # FIXME: This gets around a longjmp warning. See
25 # http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-x86_64-Release-Trybot/builds/113/steps/build%20most/logs/stdio
26 '-Wno-clobbered',
27 ],
scroggof24f2242015-03-03 08:59:20 -080028 'include_dirs': [
29 '../include/codec',
mtkleincd1f2da2015-07-28 08:55:14 -070030 '../include/private',
scroggof24f2242015-03-03 08:59:20 -080031 '../src/codec',
msarett9bde9182015-03-25 05:27:48 -070032 '../src/core',
scroggof24f2242015-03-03 08:59:20 -080033 ],
34 'sources': [
msarettb46e5e22015-07-30 11:36:40 -070035 '../src/codec/SkBmpCodec.cpp',
msarett4ab9d5f2015-08-06 15:34:42 -070036 '../src/codec/SkBmpMaskCodec.cpp',
37 '../src/codec/SkBmpRLECodec.cpp',
38 '../src/codec/SkBmpStandardCodec.cpp',
scroggof24f2242015-03-03 08:59:20 -080039 '../src/codec/SkCodec.cpp',
msarett8c8f22a2015-04-01 06:58:48 -070040 '../src/codec/SkCodec_libgif.cpp',
msarett9bde9182015-03-25 05:27:48 -070041 '../src/codec/SkCodec_libico.cpp',
42 '../src/codec/SkCodec_libpng.cpp',
halcanarya096d7a2015-03-27 12:16:53 -070043 '../src/codec/SkCodec_wbmp.cpp',
msarett8c8f22a2015-04-01 06:58:48 -070044 '../src/codec/SkGifInterlaceIter.cpp',
msarette16b04a2015-04-15 07:32:19 -070045 '../src/codec/SkJpegCodec.cpp',
46 '../src/codec/SkJpegDecoderMgr.cpp',
mtklein525e90a2015-06-18 09:58:57 -070047 '../src/codec/SkJpegUtility_codec.cpp',
msarett74114382015-03-16 11:55:18 -070048 '../src/codec/SkMaskSwizzler.cpp',
49 '../src/codec/SkMasks.cpp',
emmaleer8f4ba762015-08-14 07:44:46 -070050 '../src/codec/SkScaledCodec.cpp',
scroggo1c005e42015-08-04 09:24:45 -070051 '../src/codec/SkScanlineDecoder.cpp',
scroggof24f2242015-03-03 08:59:20 -080052 '../src/codec/SkSwizzler.cpp',
scroggo6f5e6192015-06-18 12:53:43 -070053 '../src/codec/SkWebpCodec.cpp',
scroggof24f2242015-03-03 08:59:20 -080054 ],
55 'direct_dependent_settings': {
56 'include_dirs': [
57 '../include/codec',
58 ],
59 },
djsollenb2a6fe72015-04-03 12:35:27 -070060 'conditions': [
61 [ 'skia_android_framework == 1',
62 {
63 # TODO(djsollen): this is a temporary dependency until we can update
64 # the android framework to a more recent version of libpng.
65 'dependencies': [
66 'libpng.gyp:libpng',
67 ],
msarett55136912015-07-22 09:08:28 -070068 # TODO(msarett): Add libjpeg-turbo to Android so we can compile SkJpegCodec
msarett1c8a5872015-07-07 08:50:01 -070069 # for the framework.
70 'sources!': [
71 '../src/codec/SkJpegCodec.cpp',
72 '../src/codec/SkJpegDecoderMgr.cpp',
73 '../src/codec/SkJpegUtility_codec.cpp',
74 ],
djsollenb2a6fe72015-04-03 12:35:27 -070075 }, { # !skia_android_framework
76 'dependencies': [
msarett55136912015-07-22 09:08:28 -070077 # TODO(msarett): Add libjpeg-turbo to Android so this can be a global
78 # dependency.
79 'libjpeg-turbo.gyp:libjpeg-turbo',
djsollenb2a6fe72015-04-03 12:35:27 -070080 'libpng.gyp:libpng_static',
81 ],
msarett55136912015-07-22 09:08:28 -070082 'export_dependent_settings': [
83 'libjpeg-turbo.gyp:libjpeg-turbo',
84 ],
msarett1c8a5872015-07-07 08:50:01 -070085 'cflags': [
86 '-DTURBO_HAS_SKIP',
87 ],
djsollenb2a6fe72015-04-03 12:35:27 -070088 }
89 ]
90 ]
scroggof24f2242015-03-03 08:59:20 -080091 },
92 ],
93}