blob: 7c22a5dc85dc7b8ead82fbeb7e6e823ac28d965d [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',
msarette16b04a2015-04-15 07:32:19 -070021 'libjpeg.gyp:libjpeg',
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',
30 '../src/codec',
msarett9bde9182015-03-25 05:27:48 -070031 '../src/core',
scroggof24f2242015-03-03 08:59:20 -080032 ],
33 'sources': [
34 '../src/codec/SkCodec.cpp',
tomhudson7aa846c2015-03-24 13:47:41 -070035 '../src/codec/SkCodec_libbmp.cpp',
msarett8c8f22a2015-04-01 06:58:48 -070036 '../src/codec/SkCodec_libgif.cpp',
msarett9bde9182015-03-25 05:27:48 -070037 '../src/codec/SkCodec_libico.cpp',
38 '../src/codec/SkCodec_libpng.cpp',
halcanarya096d7a2015-03-27 12:16:53 -070039 '../src/codec/SkCodec_wbmp.cpp',
msarett8c8f22a2015-04-01 06:58:48 -070040 '../src/codec/SkGifInterlaceIter.cpp',
msarette16b04a2015-04-15 07:32:19 -070041 '../src/codec/SkJpegCodec.cpp',
42 '../src/codec/SkJpegDecoderMgr.cpp',
mtklein525e90a2015-06-18 09:58:57 -070043 '../src/codec/SkJpegUtility_codec.cpp',
msarett74114382015-03-16 11:55:18 -070044 '../src/codec/SkMaskSwizzler.cpp',
45 '../src/codec/SkMasks.cpp',
scroggof24f2242015-03-03 08:59:20 -080046 '../src/codec/SkSwizzler.cpp',
47 ],
48 'direct_dependent_settings': {
49 'include_dirs': [
50 '../include/codec',
51 ],
52 },
djsollenb2a6fe72015-04-03 12:35:27 -070053 'conditions': [
54 [ 'skia_android_framework == 1',
55 {
56 # TODO(djsollen): this is a temporary dependency until we can update
57 # the android framework to a more recent version of libpng.
58 'dependencies': [
59 'libpng.gyp:libpng',
60 ],
61 }, { # !skia_android_framework
62 'dependencies': [
63 'libpng.gyp:libpng_static',
64 ],
65 }
66 ]
67 ]
scroggof24f2242015-03-03 08:59:20 -080068 },
69 ],
70}