diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-26 00:20:29 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-26 00:20:29 +0000 |
commit | 944cab8c2053844039d0e44ddcdcc489ba2b1d6c (patch) | |
tree | 7a6ce5e91643a7054a6d0509951d8fa9c9007b06 /third_party/libwebp | |
parent | 74f50486fe54b57cb9ac2813aa97ff9e5dda4c94 (diff) | |
download | chromium_src-944cab8c2053844039d0e44ddcdcc489ba2b1d6c.zip chromium_src-944cab8c2053844039d0e44ddcdcc489ba2b1d6c.tar.gz chromium_src-944cab8c2053844039d0e44ddcdcc489ba2b1d6c.tar.bz2 |
Extract use_system_foo logic out of gyp files, patch 2
This removes use_system_foo logic completely from:
* jsoncpp.gyp
* libevent.gyp
* libpng.gyp
* libusb.gyp
* libwebp.gyp
* opus.gyp
* re2.gyp
* zlib.gyp
R=rsleevi
TBR=darin
BUG=226860
Review URL: https://codereview.chromium.org/14203006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196551 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/libwebp')
-rw-r--r-- | third_party/libwebp/libwebp.gyp | 292 |
1 files changed, 131 insertions, 161 deletions
diff --git a/third_party/libwebp/libwebp.gyp b/third_party/libwebp/libwebp.gyp index 10a6615..4fb6175 100644 --- a/third_party/libwebp/libwebp.gyp +++ b/third_party/libwebp/libwebp.gyp @@ -3,176 +3,146 @@ # found in the LICENSE file. { - 'variables': { - 'use_system_libwebp%': 0, - }, - 'conditions': [ - ['use_system_libwebp==0', { - 'targets': [ - { - 'target_name': 'libwebp_dec', - 'type': 'static_library', - 'include_dirs': ['.'], - 'sources': [ - 'dec/alpha.c', - 'dec/buffer.c', - 'dec/frame.c', - 'dec/idec.c', - 'dec/io.c', - 'dec/layer.c', - 'dec/quant.c', - 'dec/tree.c', - 'dec/vp8.c', - 'dec/vp8l.c', - 'dec/webp.c', - ], - }, - { - 'target_name': 'libwebp_demux', - 'type': 'static_library', - 'include_dirs': ['.'], - 'sources': [ - 'demux/demux.c', - ], - }, - { - 'target_name': 'libwebp_dsp', - 'type': 'static_library', - 'include_dirs': ['.'], - 'sources': [ - 'dsp/cpu.c', - 'dsp/dec.c', - 'dsp/dec_sse2.c', - 'dsp/enc.c', - 'dsp/enc_sse2.c', - 'dsp/lossless.c', - 'dsp/upsampling.c', - 'dsp/upsampling_sse2.c', - 'dsp/yuv.c', - ], - 'conditions': [ - ['OS == "android"', { - 'includes': [ '../../build/android/cpufeatures.gypi' ], - }], - ['order_profiling != 0', { - 'target_conditions' : [ - ['_toolset=="target"', { - 'cflags!': [ '-finstrument-functions' ], - }], - ], - }], - ], - }, - { - 'target_name': 'libwebp_dsp_neon', - 'conditions': [ - ['armv7 == 1', { - 'type': 'static_library', - 'include_dirs': ['.'], - 'sources': [ - 'dsp/dec_neon.c', - 'dsp/enc_neon.c', - 'dsp/upsampling_neon.c', - ], - # behavior similar to *.c.neon in an Android.mk - 'cflags!': [ '-mfpu=vfpv3-d16' ], - 'cflags': [ '-mfpu=neon' ], - },{ # "armv7 != 1" - 'type': 'none', - }], - ['order_profiling != 0', { - 'target_conditions' : [ - ['_toolset=="target"', { - 'cflags!': [ '-finstrument-functions' ], - }], - ], + 'targets': [ + { + 'target_name': 'libwebp_dec', + 'type': 'static_library', + 'include_dirs': ['.'], + 'sources': [ + 'dec/alpha.c', + 'dec/buffer.c', + 'dec/frame.c', + 'dec/idec.c', + 'dec/io.c', + 'dec/layer.c', + 'dec/quant.c', + 'dec/tree.c', + 'dec/vp8.c', + 'dec/vp8l.c', + 'dec/webp.c', + ], + }, + { + 'target_name': 'libwebp_demux', + 'type': 'static_library', + 'include_dirs': ['.'], + 'sources': [ + 'demux/demux.c', + ], + }, + { + 'target_name': 'libwebp_dsp', + 'type': 'static_library', + 'include_dirs': ['.'], + 'sources': [ + 'dsp/cpu.c', + 'dsp/dec.c', + 'dsp/dec_sse2.c', + 'dsp/enc.c', + 'dsp/enc_sse2.c', + 'dsp/lossless.c', + 'dsp/upsampling.c', + 'dsp/upsampling_sse2.c', + 'dsp/yuv.c', + ], + 'conditions': [ + ['OS == "android"', { + 'includes': [ '../../build/android/cpufeatures.gypi' ], + }], + ['order_profiling != 0', { + 'target_conditions' : [ + ['_toolset=="target"', { + 'cflags!': [ '-finstrument-functions' ], }], ], - }, - { - 'target_name': 'libwebp_enc', - 'type': 'static_library', - 'include_dirs': ['.'], - 'sources': [ - 'enc/alpha.c', - 'enc/analysis.c', - 'enc/backward_references.c', - 'enc/config.c', - 'enc/cost.c', - 'enc/filter.c', - 'enc/frame.c', - 'enc/histogram.c', - 'enc/iterator.c', - 'enc/layer.c', - 'enc/picture.c', - 'enc/quant.c', - 'enc/syntax.c', - 'enc/token.c', - 'enc/tree.c', - 'enc/vp8l.c', - 'enc/webpenc.c', - ], - }, - { - 'target_name': 'libwebp_utils', + }], + ], + }, + { + 'target_name': 'libwebp_dsp_neon', + 'conditions': [ + ['armv7 == 1', { 'type': 'static_library', 'include_dirs': ['.'], 'sources': [ - 'utils/bit_reader.c', - 'utils/bit_writer.c', - 'utils/color_cache.c', - 'utils/filters.c', - 'utils/huffman.c', - 'utils/huffman_encode.c', - 'utils/quant_levels.c', - 'utils/quant_levels_dec.c', - 'utils/rescaler.c', - 'utils/thread.c', - 'utils/utils.c', + 'dsp/dec_neon.c', + 'dsp/enc_neon.c', + 'dsp/upsampling_neon.c', ], - }, - { - 'target_name': 'libwebp', + # behavior similar to *.c.neon in an Android.mk + 'cflags!': [ '-mfpu=vfpv3-d16' ], + 'cflags': [ '-mfpu=neon' ], + },{ # "armv7 != 1" 'type': 'none', - 'dependencies' : [ - 'libwebp_dec', - 'libwebp_demux', - 'libwebp_dsp', - 'libwebp_dsp_neon', - 'libwebp_enc', - 'libwebp_utils', - ], - 'direct_dependent_settings': { - 'include_dirs': ['.'], - }, - 'conditions': [ - ['OS!="win"', {'product_name': 'webp'}], + }], + ['order_profiling != 0', { + 'target_conditions' : [ + ['_toolset=="target"', { + 'cflags!': [ '-finstrument-functions' ], + }], ], - }, + }], ], - }, { - 'targets': [ - { - 'target_name': 'libwebp', - 'type': 'none', - 'direct_dependent_settings': { - 'defines': [ - 'ENABLE_WEBP', - ], - }, - 'link_settings': { - 'libraries': [ - # Check for presence of webpdemux library, use it if present. - '<!(python <(DEPTH)/tools/compile_test/compile_test.py ' - '--code "int main() { return 0; }" ' - '--run-linker ' - '--on-success "-lwebp -lwebpdemux" ' - '--on-failure "-lwebp" ' - '-- -lwebpdemux)', - ], - }, - } + }, + { + 'target_name': 'libwebp_enc', + 'type': 'static_library', + 'include_dirs': ['.'], + 'sources': [ + 'enc/alpha.c', + 'enc/analysis.c', + 'enc/backward_references.c', + 'enc/config.c', + 'enc/cost.c', + 'enc/filter.c', + 'enc/frame.c', + 'enc/histogram.c', + 'enc/iterator.c', + 'enc/layer.c', + 'enc/picture.c', + 'enc/quant.c', + 'enc/syntax.c', + 'enc/token.c', + 'enc/tree.c', + 'enc/vp8l.c', + 'enc/webpenc.c', + ], + }, + { + 'target_name': 'libwebp_utils', + 'type': 'static_library', + 'include_dirs': ['.'], + 'sources': [ + 'utils/bit_reader.c', + 'utils/bit_writer.c', + 'utils/color_cache.c', + 'utils/filters.c', + 'utils/huffman.c', + 'utils/huffman_encode.c', + 'utils/quant_levels.c', + 'utils/quant_levels_dec.c', + 'utils/rescaler.c', + 'utils/thread.c', + 'utils/utils.c', + ], + }, + { + 'target_name': 'libwebp', + 'type': 'none', + 'dependencies' : [ + 'libwebp_dec', + 'libwebp_demux', + 'libwebp_dsp', + 'libwebp_dsp_neon', + 'libwebp_enc', + 'libwebp_utils', + ], + 'direct_dependent_settings': { + 'include_dirs': ['.'], + }, + 'conditions': [ + ['OS!="win"', {'product_name': 'webp'}], ], - }], + }, ], } |