OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 { |
| 6 'variables': { |
| 7 'use_system_libwebp%': 0, |
| 8 }, |
| 9 'conditions': [ |
| 10 ['use_system_libwebp==0', { |
| 11 'targets': [ |
| 12 { |
| 13 'target_name': 'libwebp', |
| 14 'type': '<(library)', |
| 15 'sources': [ |
| 16 'bits.c', |
| 17 'frame.c', |
| 18 'dsp.c', |
| 19 'quant.c', |
| 20 'tree.c', |
| 21 'vp8.c', |
| 22 'webp.c', |
| 23 'yuv.c', |
| 24 ], |
| 25 'direct_dependent_settings': { |
| 26 'include_dirs': [ |
| 27 '.', './webp', |
| 28 ], |
| 29 }, |
| 30 'conditions': [ |
| 31 ['OS!="win"', { |
| 32 'product_name': 'webp', |
| 33 'cflags': [ |
| 34 '-std=c99', |
| 35 ],}, |
| 36 ], |
| 37 ['OS=="win"', { |
| 38 'msvs_settings': { |
| 39 'VCCLCompilerTool': { |
| 40 'AdditionalOptions': ['/TP'], # compile as C++ to get C99 |
| 41 }, |
| 42 }, |
| 43 }], |
| 44 ], |
| 45 }, |
| 46 ], |
| 47 }, { |
| 48 'targets': [ |
| 49 { |
| 50 'target_name': 'libwebp', |
| 51 'type': 'settings', |
| 52 'direct_dependent_settings': { |
| 53 'defines': [ |
| 54 'ENABLE_WEBP', |
| 55 ], |
| 56 }, |
| 57 'link_settings': { |
| 58 'libraries': [ |
| 59 '-lwebp', |
| 60 ], |
| 61 }, |
| 62 } |
| 63 ], |
| 64 }], |
| 65 ], |
| 66 } |
| 67 |
| 68 # Local Variables: |
| 69 # tab-width:2 |
| 70 # indent-tabs-mode:nil |
| 71 # End: |
| 72 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |