2015-03-25 14:16:13 +00:00
|
|
|
# Copyright 2015 Google Inc.
|
|
|
|
#
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
2015-03-25 17:22:41 +00:00
|
|
|
# Copyright 2015 Google Inc.
|
|
|
|
#
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
2015-03-25 14:16:13 +00:00
|
|
|
|
2015-03-03 16:59:20 +00:00
|
|
|
# GYP file for codec project.
|
|
|
|
{
|
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'codec',
|
|
|
|
'product_name': 'skia_codec',
|
|
|
|
'type': 'static_library',
|
|
|
|
'standalone_static_library': 1,
|
|
|
|
'dependencies': [
|
|
|
|
'core.gyp:*',
|
2015-04-01 13:58:48 +00:00
|
|
|
'giflib.gyp:giflib',
|
2015-04-15 14:32:19 +00:00
|
|
|
'libjpeg.gyp:libjpeg',
|
2015-03-03 16:59:20 +00:00
|
|
|
],
|
2015-03-25 18:11:52 +00:00
|
|
|
'cflags':[
|
|
|
|
# FIXME: This gets around a longjmp warning. See
|
|
|
|
# http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-x86_64-Release-Trybot/builds/113/steps/build%20most/logs/stdio
|
|
|
|
'-Wno-clobbered',
|
|
|
|
],
|
2015-03-03 16:59:20 +00:00
|
|
|
'include_dirs': [
|
|
|
|
'../include/codec',
|
|
|
|
'../src/codec',
|
2015-03-25 12:27:48 +00:00
|
|
|
'../src/core',
|
2015-03-03 16:59:20 +00:00
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
'../src/codec/SkCodec.cpp',
|
2015-03-24 20:47:41 +00:00
|
|
|
'../src/codec/SkCodec_libbmp.cpp',
|
2015-04-01 13:58:48 +00:00
|
|
|
'../src/codec/SkCodec_libgif.cpp',
|
2015-03-25 12:27:48 +00:00
|
|
|
'../src/codec/SkCodec_libico.cpp',
|
|
|
|
'../src/codec/SkCodec_libpng.cpp',
|
2015-03-27 19:16:53 +00:00
|
|
|
'../src/codec/SkCodec_wbmp.cpp',
|
2015-04-01 13:58:48 +00:00
|
|
|
'../src/codec/SkGifInterlaceIter.cpp',
|
2015-04-15 14:32:19 +00:00
|
|
|
'../src/codec/SkJpegCodec.cpp',
|
|
|
|
'../src/codec/SkJpegDecoderMgr.cpp',
|
|
|
|
'../src/codec/SkJpegUtility.cpp',
|
2015-03-16 18:55:18 +00:00
|
|
|
'../src/codec/SkMaskSwizzler.cpp',
|
|
|
|
'../src/codec/SkMasks.cpp',
|
2015-03-03 16:59:20 +00:00
|
|
|
'../src/codec/SkSwizzler.cpp',
|
|
|
|
],
|
|
|
|
'direct_dependent_settings': {
|
|
|
|
'include_dirs': [
|
|
|
|
'../include/codec',
|
|
|
|
],
|
|
|
|
},
|
2015-04-03 19:35:27 +00:00
|
|
|
'conditions': [
|
|
|
|
[ 'skia_android_framework == 1',
|
|
|
|
{
|
|
|
|
# TODO(djsollen): this is a temporary dependency until we can update
|
|
|
|
# the android framework to a more recent version of libpng.
|
|
|
|
'dependencies': [
|
|
|
|
'libpng.gyp:libpng',
|
|
|
|
],
|
|
|
|
}, { # !skia_android_framework
|
|
|
|
'dependencies': [
|
|
|
|
'libpng.gyp:libpng_static',
|
|
|
|
],
|
|
|
|
}
|
|
|
|
]
|
|
|
|
]
|
2015-03-03 16:59:20 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|