blob: 13737739401e1ee62fb30c61b1496c489212b17a [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',
scroggof24f2242015-03-03 08:59:20 -080021 ],
scroggo05245902015-03-25 11:11:52 -070022 'cflags':[
23 # FIXME: This gets around a longjmp warning. See
24 # http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-x86_64-Release-Trybot/builds/113/steps/build%20most/logs/stdio
25 '-Wno-clobbered',
26 ],
scroggof24f2242015-03-03 08:59:20 -080027 'include_dirs': [
28 '../include/codec',
29 '../src/codec',
msarett9bde9182015-03-25 05:27:48 -070030 '../src/core',
scroggof24f2242015-03-03 08:59:20 -080031 ],
32 'sources': [
33 '../src/codec/SkCodec.cpp',
tomhudson7aa846c2015-03-24 13:47:41 -070034 '../src/codec/SkCodec_libbmp.cpp',
msarett8c8f22a2015-04-01 06:58:48 -070035 '../src/codec/SkCodec_libgif.cpp',
msarett9bde9182015-03-25 05:27:48 -070036 '../src/codec/SkCodec_libico.cpp',
37 '../src/codec/SkCodec_libpng.cpp',
halcanarya096d7a2015-03-27 12:16:53 -070038 '../src/codec/SkCodec_wbmp.cpp',
msarett8c8f22a2015-04-01 06:58:48 -070039 '../src/codec/SkGifInterlaceIter.cpp',
msarett74114382015-03-16 11:55:18 -070040 '../src/codec/SkMaskSwizzler.cpp',
41 '../src/codec/SkMasks.cpp',
scroggof24f2242015-03-03 08:59:20 -080042 '../src/codec/SkSwizzler.cpp',
43 ],
44 'direct_dependent_settings': {
45 'include_dirs': [
46 '../include/codec',
47 ],
48 },
djsollenb2a6fe72015-04-03 12:35:27 -070049 'conditions': [
50 [ 'skia_android_framework == 1',
51 {
52 # TODO(djsollen): this is a temporary dependency until we can update
53 # the android framework to a more recent version of libpng.
54 'dependencies': [
55 'libpng.gyp:libpng',
56 ],
57 }, { # !skia_android_framework
58 'dependencies': [
59 'libpng.gyp:libpng_static',
60 ],
61 }
62 ]
63 ]
scroggof24f2242015-03-03 08:59:20 -080064 },
65 ],
66}