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-06-18 19:53:43 +00:00
|
|
|
'libwebp.gyp:libwebp',
|
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',
|
2015-07-28 15:55:14 +00:00
|
|
|
'../include/private',
|
2015-03-03 16:59:20 +00:00
|
|
|
'../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',
|
2015-06-18 16:58:57 +00:00
|
|
|
'../src/codec/SkJpegUtility_codec.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',
|
2015-06-18 19:53:43 +00:00
|
|
|
'../src/codec/SkWebpCodec.cpp',
|
2015-03-03 16:59:20 +00:00
|
|
|
],
|
|
|
|
'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',
|
|
|
|
],
|
2015-07-22 16:08:28 +00:00
|
|
|
# TODO(msarett): Add libjpeg-turbo to Android so we can compile SkJpegCodec
|
2015-07-07 15:50:01 +00:00
|
|
|
# for the framework.
|
|
|
|
'sources!': [
|
|
|
|
'../src/codec/SkJpegCodec.cpp',
|
|
|
|
'../src/codec/SkJpegDecoderMgr.cpp',
|
|
|
|
'../src/codec/SkJpegUtility_codec.cpp',
|
|
|
|
],
|
2015-04-03 19:35:27 +00:00
|
|
|
}, { # !skia_android_framework
|
|
|
|
'dependencies': [
|
2015-07-22 16:08:28 +00:00
|
|
|
# TODO(msarett): Add libjpeg-turbo to Android so this can be a global
|
|
|
|
# dependency.
|
|
|
|
'libjpeg-turbo.gyp:libjpeg-turbo',
|
2015-04-03 19:35:27 +00:00
|
|
|
'libpng.gyp:libpng_static',
|
|
|
|
],
|
2015-07-22 16:08:28 +00:00
|
|
|
'export_dependent_settings': [
|
|
|
|
'libjpeg-turbo.gyp:libjpeg-turbo',
|
|
|
|
],
|
2015-07-07 15:50:01 +00:00
|
|
|
'cflags': [
|
|
|
|
'-DTURBO_HAS_SKIP',
|
|
|
|
],
|
2015-04-03 19:35:27 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
]
|
2015-03-03 16:59:20 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|