Home | History | Annotate | Download | only in gyp
      1 # 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.
      5 # 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.
      9 
     10 # 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:*',
     20         'giflib.gyp:giflib',
     21         'libjpeg.gyp:libjpeg',
     22       ],
     23       'cflags':[
     24         # FIXME: This gets around a longjmp warning. See
     25         # http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-x86_64-Release-Trybot/builds/113/steps/build%20most/logs/stdio
     26         '-Wno-clobbered',
     27       ],
     28       'include_dirs': [
     29         '../include/codec',
     30         '../src/codec',
     31         '../src/core',
     32       ],
     33       'sources': [
     34         '../src/codec/SkCodec.cpp',
     35         '../src/codec/SkCodec_libbmp.cpp',
     36         '../src/codec/SkCodec_libgif.cpp',
     37         '../src/codec/SkCodec_libico.cpp',
     38         '../src/codec/SkCodec_libpng.cpp',
     39         '../src/codec/SkCodec_wbmp.cpp',
     40         '../src/codec/SkGifInterlaceIter.cpp',
     41         '../src/codec/SkJpegCodec.cpp',
     42         '../src/codec/SkJpegDecoderMgr.cpp',
     43         '../src/codec/SkJpegUtility.cpp',
     44         '../src/codec/SkMaskSwizzler.cpp',
     45         '../src/codec/SkMasks.cpp',
     46         '../src/codec/SkSwizzler.cpp',
     47       ],
     48       'direct_dependent_settings': {
     49         'include_dirs': [
     50           '../include/codec',
     51         ],
     52       },
     53       'conditions': [
     54         [ 'skia_android_framework == 1',
     55           {
     56             # TODO(djsollen): this is a temporary dependency until we can update
     57             # the android framework to a more recent version of libpng.
     58             'dependencies': [
     59               'libpng.gyp:libpng',
     60             ],
     61           }, {  # !skia_android_framework
     62             'dependencies': [
     63               'libpng.gyp:libpng_static',
     64             ],
     65           }
     66         ]
     67       ]
     68     },
     69   ],
     70 }
     71