blob: 0d541845827d8b9c86b250eaf1a3d9e06ad082f4 [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',
jvanverth94a2fbc2015-07-02 10:40:24 -070021 'libjpeg.gyp:libjpeg',
scroggo6f5e6192015-06-18 12:53:43 -070022 'libwebp.gyp:libwebp',
scroggof24f2242015-03-03 08:59:20 -080023 ],
scroggo05245902015-03-25 11:11:52 -070024 'cflags':[
25 # FIXME: This gets around a longjmp warning. See
26 # http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-x86_64-Release-Trybot/builds/113/steps/build%20most/logs/stdio
27 '-Wno-clobbered',
28 ],
scroggof24f2242015-03-03 08:59:20 -080029 'include_dirs': [
30 '../include/codec',
31 '../src/codec',
msarett9bde9182015-03-25 05:27:48 -070032 '../src/core',
scroggof24f2242015-03-03 08:59:20 -080033 ],
34 'sources': [
35 '../src/codec/SkCodec.cpp',
tomhudson7aa846c2015-03-24 13:47:41 -070036 '../src/codec/SkCodec_libbmp.cpp',
msarett8c8f22a2015-04-01 06:58:48 -070037 '../src/codec/SkCodec_libgif.cpp',
msarett9bde9182015-03-25 05:27:48 -070038 '../src/codec/SkCodec_libico.cpp',
39 '../src/codec/SkCodec_libpng.cpp',
halcanarya096d7a2015-03-27 12:16:53 -070040 '../src/codec/SkCodec_wbmp.cpp',
msarett8c8f22a2015-04-01 06:58:48 -070041 '../src/codec/SkGifInterlaceIter.cpp',
msarette16b04a2015-04-15 07:32:19 -070042 '../src/codec/SkJpegCodec.cpp',
43 '../src/codec/SkJpegDecoderMgr.cpp',
mtklein525e90a2015-06-18 09:58:57 -070044 '../src/codec/SkJpegUtility_codec.cpp',
msarett74114382015-03-16 11:55:18 -070045 '../src/codec/SkMaskSwizzler.cpp',
46 '../src/codec/SkMasks.cpp',
scroggof24f2242015-03-03 08:59:20 -080047 '../src/codec/SkSwizzler.cpp',
scroggo6f5e6192015-06-18 12:53:43 -070048 '../src/codec/SkWebpCodec.cpp',
scroggof24f2242015-03-03 08:59:20 -080049 ],
50 'direct_dependent_settings': {
51 'include_dirs': [
52 '../include/codec',
53 ],
54 },
djsollenb2a6fe72015-04-03 12:35:27 -070055 'conditions': [
56 [ 'skia_android_framework == 1',
57 {
58 # TODO(djsollen): this is a temporary dependency until we can update
59 # the android framework to a more recent version of libpng.
60 'dependencies': [
61 'libpng.gyp:libpng',
62 ],
63 }, { # !skia_android_framework
64 'dependencies': [
65 'libpng.gyp:libpng_static',
66 ],
67 }
68 ]
69 ]
scroggof24f2242015-03-03 08:59:20 -080070 },
71 ],
72}